Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-21251

7.7 · HIGH
Published Jan 15, 2021 onedev_project CWE-22 EPSS 12.68% (96th pctl)

Overview

CVE-2021-21251 is a high-severity vulnerability affecting onedev_project onedev. It was published on January 15, 2021 and has a CVSS 3.1 base score of 7.7 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.7, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from onedev_project. Update onedev to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
onedev_project onedev >= 0, < 4.0.3 Affected

Frequently Asked Questions

What is CVE-2021-21251?

CVE-2021-21251 is a high-severity vulnerability affecting onedev_project onedev. It was published on January 15, 2021 and has a CVSS 3.1 base score of 7.7 (HIGH).

How severe is CVE-2021-21251?

This vulnerability has a CVSS 3.1 base score of 7.7, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-21251?

Check the references section for vendor advisories and patches from onedev_project. Update onedev to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-21251?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21251 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.