Skip to main content

OneDev CVE-2026-49248

| EUVDEUVD-2026-37942 HIGH
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-06-18 GitHub_M
8.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to OneDev with CI Job write role
  2. Delivery
    Craft TAR with absolute-path symlink + follow-up file entry
  3. Exploit
    Submit archive to a job that invokes TarUtils.untar()
  4. Install
    Symlink created verbatim, file write follows link
  5. C2
    Overwrite OneDev config, JAR, or authorized_keys
  6. Execute
    Trigger reload or reconnect
  7. Impact
    Code execution as OneDev service account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
Exploitation Conditions

Exploitation requires (1) a reachable OneDev instance at version 15.0.6 or earlier, (2) valid credentials for an account that has been granted CI Job write permission on at least one project - admin is explicitly NOT required, but anonymous access is insufficient - and (3) the ability to supply a TAR archive that OneDev's TarUtils.untar() will extract during CI/job processing, with a symlink entry whose linkName is an absolute path and a following file entry that writes through it. Limiting factors: authentication is mandatory (PR:L), the target user must hold the CI Job write role, the OneDev process must have OS-level write permission to the chosen absolute target path (so non-root deployments cannot overwrite system files like /etc/passwd, only paths writable by the OneDev service UID, which still typically includes its own install/config tree), and the attack requires a code path that invokes TarUtils.untar() on attacker-supplied bytes.

Impact

Real-world risk is meaningful but bounded by the authentication requirement. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VI:H and SI:H scores 8.3 and correctly captures that any low-privileged authenticated user with CI Job write access can trigger network-reachable, integrity-impacting writes without user interaction; confidentiality (VC:N) and availability (VA:N) are appropriately rated since the primitive is file-write, not direct read or crash. SSVC framing: exploitation is none publicly observed, but the primitive is fully automatable (a single crafted TAR), and technical impact is total because arbitrary file write on a CI/CD server trivially escalates to RCE via on-disk job scripts, SSH authorized_keys, or OneDev's own configuration files. No EPSS or CISA KEV signal is provided in the input - absence of KEV does not mean safety here; this is the type of bug typically weaponized within days of disclosure given that the patch commit publicly identifies the root cause. Trust boundary nuance: in many OneDev deployments CI Job write access is granted to most developers, effectively collapsing PR:L to PR:N in practice.

Exploit ScenarioDerived

An internal developer or compromised low-privilege account with CI Job write access uploads or references a malicious TAR archive (for example as a build artifact or job dependency) whose first entry is a symlink such as payload -> /opt/onedev/site/lib/somelib.jar and whose second entry writes attacker-controlled bytes to payload. When OneDev calls TarUtils.untar() during job execution, the symlink is created verbatim and the subsequent write follows it, overwriting a server-side JAR, an SSH authorized_keys file, or a cron drop-in, which on next load yields code execution as the OneDev service account. No public exploit is identified at time of analysis, but the patch diff and advisory make the bypass trivial to reconstruct.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 18, 2026

Arbitrary file write in OneDev 15.0.6 and earlier allows any authenticated user with CI Job write access to overwrite files anywhere on the server filesystem by uploading a crafted TAR archive whose symbolic link entries point to absolute paths outside the extraction directory. The flaw is an incomplete-fix bypass of CVE-2021-21251, which only blocked .. path traversal in TAR entry names but never validated symlink targets. No public exploit has been identified at time of analysis, but the official patch commit and GitHub Security Advisory GHSA-55g8-94r5-cj37 publicly describe the bypass mechanism.

RemediationAI

Vendor-released patch: OneDev 15.0.7 - upgrade immediately via the standard OneDev upgrade procedure; the fix is delivered through bumped internal module versions (commons 3.3.1 and agent 2.5.9) per commit 4f8684a, so a partial component update will not suffice and the full 15.0.7 release should be deployed. Where an immediate upgrade is not possible, the most effective compensating control is to restrict CI Job write access to a minimal trusted set of users via OneDev's role/permission system, since exploitation requires that specific permission rather than admin; the trade-off is that legitimate pipeline authors temporarily lose self-service. As a secondary mitigation, run the OneDev server process under a dedicated unprivileged UID with strict filesystem ACLs on its install directory, configuration files, and any mounted CI workspace, and consider AppArmor/SELinux confinement that denies writes outside the OneDev data directory - this blunts the impact of arbitrary file writes but does not prevent overwrite of OneDev's own config or job scripts. Refer to https://github.com/theonedev/onedev/security/advisories/GHSA-55g8-94r5-cj37 for vendor guidance.

Affected VersionsENISA

onedev < 15.0.7

Affected Packages

euvd onedev fix: 15.0.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OneDev is a self-hosted Git server with integrated CI/CD, kanban, and package registries written in Java. The vulnerable code path is TarUtils.untar(), which iterates TAR entries and, for entries flagged as symbolic links, creates a symlink on disk using the raw value returned by Apache Commons Compress's TarArchiveEntry.getLinkName() without normalizing or sandboxing the link target. When a later file entry in the same archive is written through that symlink, the write follows the link to an attacker-chosen absolute path. This is a textbook CWE-61 (UNIX Symbolic Link Following) issue and a classic TAR-slip variant: the 2021 fix only sanitized entry names for .. traversal, leaving absolute symlink targets (e.g. /etc/cron.d/x, /opt/onedev/conf/hibernate.properties) unvalidated. The vulnerable CPE is cpe:2.3:a:theonedev:onedev:*:*:*:*:*:*:*:* up through 15.0.6, and the patch commit 4f8684a bumps internal commons and agent module versions to 3.3.1 / 2.5.9 respectively, indicating the hardening lives in those shared utility modules.

Know when Onedev gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.3 HIGH
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
vuln.today AI 6.5 MEDIUM

Network-reachable HTTP API, low complexity, requires authenticated user with CI Job write role (PR:L), no user interaction; primitive is arbitrary file write so I:H, with C:N and A:N as direct impacts.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 18, 2026 - 22:16 EUVD

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OneDev versions 15.0.6 and earlier contain an arbitrary file-write vulnerability affecting any authenticated user with CI Job access, enabling unauthorized overwriting of system files through a symbolic-link bypass. This incomplete fix to a prior vulnerability (CVE-2021-21251) could allow compromised or malicious CI accounts to alter application code, exfiltrate data, or achieve remote code execution. Organizations running OneDev must immediately audit affected deployments and restrict CI permissions to trusted personnel.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict CI Job write access via role-based access control to minimal set of trusted accounts; (2) Enforce MFA on all accounts with CI permissions; (3) Implement application-level audit logging and alerting for TAR archive uploads and file writes; (4) Deploy file integrity monitoring (HIDS/FIM tools) on critical system directories; (5) Network segmentation to limit OneDev server connectivity to trusted build agents; (6) Disable TAR-based artifact uploads if operationally feasible, substitute with signed binary formats.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Onedev

View all
CVE-2022-39206 CRITICAL POC
9.9 Sep 13

Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. Rated critical severity (CVSS 9.9), this vulnera

CVE-2022-39205 CRITICAL POC
9.8 Sep 13

Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. Rated critical severity (CVSS 9.8), this vulnera

CVE-2022-38301 HIGH POC
8.8 Sep 14

Onedev v7.4.14 contains a path traversal vulnerability which allows attackers to access restricted files and directories

CVE-2024-45309 HIGH POC
8.7 Oct 21

OneDev is a Git server with CI/CD, kanban, and packages. Rated high severity (CVSS 8.7), this vulnerability is remotely

CVE-2022-39208 HIGH POC
7.5 Sep 13

Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. Rated high severity (CVSS 7.5), this vulnerabili

CVE-2021-21246 HIGH POC
7.5 Jan 15

OneDev is an all-in-one devops platform. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no

CVE-2021-21245 CRITICAL
9.8 Jan 15

OneDev is an all-in-one devops platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2021-21242 CRITICAL
9.8 Jan 15

OneDev is an all-in-one devops platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2021-21244 CRITICAL
9.8 Jan 15

OneDev is an all-in-one devops platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2021-21243 CRITICAL
9.8 Jan 15

OneDev is an all-in-one devops platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2022-39207 MEDIUM POC
5.4 Sep 13

Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. Rated medium severity (CVSS 5.4), this vulnerabi

CVE-2023-24828 HIGH
8.8 Feb 08

Onedev is a self-hosted Git Server with CI/CD and Kanban. Rated high severity (CVSS 8.8), this vulnerability is remotely

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy