THREATPORT/VULNERABILITY/CVE-2021-21251
HIGH SEVERITY

CVE-2021-21251

Onedev vulnerability

CVSS
7.7
EPSS
12.2%
EPSS pct
96th
Exploited
No known
OneDev is an all-in-one devops platform. In OneDev before version 4.0.3 there is a critical "zip slip" vulnerability. This issue may lead to arbitrary file write. The KubernetesResource REST endpoint untars user controlled data from the request body using TarUtils. TarUtils is a custom library method leveraging Apache Commons Compress. During the untar process, there are no checks in place to prevent an untarred file from traversing the file system and overriding an existing file. For a successful exploitation, the attacker requires a valid __JobToken__ which may not be possible to get without using any of the other reported vulnerabilities. But this should be considered a vulnerability in `io.onedev.commons.utils.TarUtils` since it lives in a different artifact and can affect other projects using it. This issue was addressed in 4.0.3 by validating paths in tar archive to only allow them to be in specified folder when extracted.
Affected vendor
Onedev Project
Affected product
Onedev
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Weakness type (CWE)
Published
2021-01-15

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring low privileges, no user interaction. Successful exploitation leads to high impact to integrity.

Its EPSS score of 12.2% reflects a moderate probability of exploitation activity in the wild over the next 30 days, placing it above 96% of all scored CVEs.

Check your external exposure to CVE-2021-21251

  • Confirm whether Onedev Project Onedev is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2021-21251.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2021-21251

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2021-21251 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2021-21251?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2021-21251.

Start free scan

No credit card. Agentless.