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.
Published: 2026-06-18
Score: 8.3 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OneDev versions 15.0.6 and earlier allow a malicious user with CI job write permissions to create symbolic links during archive extraction that point to absolute paths. The vulnerability arises because the TarUtils.untar() method accepts the link name from the TAR entry without validation and follows it on extraction. As a result, an archive can contain a symlink that points to an arbitrary server‑side location; a subsequent file entry in the same archive will be written through that link, overwriting any file the user can target. This flaw can compromise confidentiality or integrity of critical files and, if essential scripts or configuration files are overwritten, can even lead to remote code execution. The weakness is a classic CWE‑61: improper validation of escape sequences (absolute path referencing), exemplified by unfiltered symbolic link handling.

Affected Systems

The affected software is OneDev, described as a Git server with CI/CD, Kanban, and package management features, developed by TheOneDev. Only versions 15.0.6 and below are vulnerable. The issue was addressed in snapshot 15.0.7, which introduced checks to prevent absolute link creation during extraction. Affected users were advised to upgrade to at least 15.0.7.

Risk and Exploitability

The CVSS score of this issue is 8.3, indicating high severity. EPSS is not available; therefore, no published exploitation probability can be quoted at the moment. The vulnerability is not listed in the CISA KEV catalog. Attack requires only authenticated access with job write permissions, a role normally granted to developers or contributors, meaning the potential attackers are plentiful. Because the exploitation path is straightforward—upload a crafted TAR archive in a CI job—this flaw carries a high operational risk, especially in environments where job privileges are too permissive.

Generated by OpenCVE AI on June 18, 2026 at 22:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OneDev to version 15.0.7 or later, which validates symlink targets.
  • Restrict CI job write permissions to a minimal set of trusted users to reduce the number of accounts that can craft malicious archives.
  • If an upgrade cannot be performed immediately, implement file‑system level controls such as ACL restrictions or isolated chroot environments for job artifact extraction to block absolute symlink creation.

Generated by OpenCVE AI on June 18, 2026 at 22:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 18 Jun 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Theonedev
Theonedev onedev
Vendors & Products Theonedev
Theonedev onedev

Thu, 18 Jun 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title OneDev: RCE through absolute-path symlink following allows low-privileged users to overwrite arbitrary server via TarUtils.untar
Weaknesses CWE-61
References
Metrics cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N'}


Subscriptions

Theonedev Onedev
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-18T19:54:01.665Z

Reserved: 2026-05-28T14:33:01.178Z

Link: CVE-2026-49248

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-18T22:15:04Z

Weaknesses
  • CWE-61

    UNIX Symbolic Link (Symlink) Following