CVE-2026-49248 - OneDev: RCE through absolute-path symlink following allows low-privileged users to overwrite arbitrary server via TarUtils.untar
Summary
This entry details a vulnerability found in the target system. The exploit was published on 2026-06-18 and has garnered 110 views from the community. It is classified under the local category. Users are advised to review the source code in the Detail tab for technical specifics.
Zafiyet Ozet Bilgileri
Zafiyet Detayi (Turkce)
OneDev, CI/CD, kanban ve paketlere sahip bir Git sunucusudur. 15.0.6 ve önceki sürümlerde, TarUtils.untar(), hedefin mutlak bir yol olup olmadığını doğrulamadan, getLinkName() TAR girişinden kelimesi kelimesine sembolik bağlantılar oluşturur. Aynı arşivdeki sonraki bir dosya girişi, sembolik bağlantıyı geçerek rastgele sunucu tarafı konumlarına yazar. Bu, CI İşi yazma erişimi olan kimliği doğrulanmış herhangi bir kullanıcı tarafından kullanılabilir; yönetici etkileşimi gerekmez. Bu, CVE-2021-21251'in (GHSA-2w6j-wc8c-9mq2) eksik bir düzeltme bypass'ıdır: bu yama .. yol bölümlerini bloke etti ancak mutlak sembolik bağlantı hedeflerini ele almadı. Bu sorun 15.0.7 sürümünde düzeltildi.
Orijinal Aciklama (Ingilizce)
OneDev is a Git server with CI/CD, kanban, and packages. In versions 15.0.6 and below, TarUtils.untar() creates symbolic links verbatim from TAR entry getLinkName() without validating whether the target is an absolute path. A subsequent file entry in the same archive traverses the symlink, writing to arbitrary server-side locations. This is exploitable by any authenticated user with CI Job write access — no admin interaction required. This is an incomplete fix bypass of CVE-2021-21251 (GHSA-2w6j-wc8c-9mq2): that patch blocked .. path segments but did not address absolute symlink targets. This issue has been fixed in version 15.0.7.
Download Source
Download the exploit source code for offline analysis and testing.
Download NowFile Size: ~3.3 KB | MD5: f810609b6d5924932f8443797da64788
No gallery images available.
No discussion yet.