CVE-20XX-?
agent?

CVE-2021-21251

7.7 HIGH 13% exploit odds Fix listed Disclosure Library

What it is

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.

At a glance

Exploitability
Can be exploited over the network with a low-privilege account. High risk of data tampering.
Exploit odds
12.7% chance of exploitation in the next 30 days (EPSS). Higher than most.
Fix
A patch, advisory or fixed version is referenced. Upgrade or apply it.

Timeline

  1. PublishedDisclosed publicly on CVE.org and NVD
  2. Last updatedMost recent change to the record

Why it ranks here

Details

Published
Last modified
Exploit probability
12.7% · EPSS, next 30 days
Weakness
CWE-22 · Path traversal
Record status
Modified

Affected

Attack profile CVSS 3.1 · 7.7

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
Raw vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Is it in your code?

Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.

Read https://cve-list.com/agent/cve/CVE-2021-21251.md and follow it. Check whether this project is affected by CVE-2021-21251. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.

· More options · Status badge

Meme: I wake up, CVE-2021-21251
Download Square Reddit

Fix and advisories

References

NVD record · CVE.org record