CVE-2026-49248 Path traversal in onedev
Authenticated users with CI write access can overwrite arbitrary server files via symlink traversal in TAR extraction, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-49248?
CVE-2026-49248 is a high-severity path traversal vulnerability in theonedev onedev, published on 18 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-61
Which versions are affected by CVE-2026-49248?
How do I fix CVE-2026-49248?
No fix has been published for CVE-2026-49248 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-49248 being exploited?
There is no known exploitation of CVE-2026-49248 in the wild and no public exploit code.
Sources
Also known as GHSA-55g8-94r5-cj37.