Path traversal in OneDev - CVE-2021-21251

 

Path traversal in OneDev - CVE-2021-21251

Published: January 12, 2021 / Updated: May 5, 2026


Vulnerability identifier: #VU129779
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2021-21251
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
OneDev
Software vendor:
OneDev

Description

The vulnerability allows a remote user to overwrite arbitrary files.

The vulnerability exists due to path traversal in TarUtils untar processing within the KubernetesResource upload-outcomes REST endpoint when extracting user-controlled tar archive data from the request body. A remote user can send a specially crafted tar archive to overwrite arbitrary files.

Exploitation requires a valid JobToken.


Remediation

Install security update from vendor's website.

External links