CVE-2021-21250
CVE-2021-21250 is a high-severity vulnerability in Onedev Project Onedev with a CVSS 3.x base score of 7.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-538.
Key facts
- Severity: High (CVSS 3.x base score 7.7)
- CVSS v2: 4.0
- EPSS exploit prediction: 1% (56th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-538
- Affected product: Onedev Project Onedev
- Published:
- Last modified:
Description
OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which may lead to arbitrary file read. When BuildSpec is provided in XML format, the spec is processed by XmlBuildSpecMigrator.migrate(buildSpecString); which processes the XML document without preventing the expansion of external entities. These entities can be configured to read arbitrary files from the file system and dump their contents in the final XML document to be migrated. If the files are dumped in properties included in the YAML file, it will be possible for an attacker to read them. If not, it is possible for an attacker to exfiltrate the contents of these files Out Of Band. This issue was addressed in 4.0.3 by ignoring ENTITY instructions in xml file.
Frequently asked questions
- What is CVE-2021-21250?
- OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which may lead to arbitrary file read. When BuildSpec is provided in XML format, the spec is processed by XmlBuildSpecMigrator.migrate(buildSpecString); which processes the XML document without preventing the expansion of external entities. These entities can be configured to read arbitrary files from the file system and dump their contents in the final XML document to be migrated. If the files are dumped in properties included in the YAML file, it will be possible for an attacker to read them. If not, it is possible for an attacker to exfiltrate the contents of these files Out Of Band. This issue was addressed in 4.0.3 by ignoring ENTITY instructions in xml file.
- How severe is CVE-2021-21250?
- CVE-2021-21250 has a CVSS 3.x base score of 7.7, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-21250 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (56th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21250?
- CVE-2021-21250 affects Onedev Project Onedev. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-21250?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-21250 published?
- CVE-2021-21250 was published on 2021-01-15 and last updated on 2026-06-17.
References
- https://github.com/theonedev/onedev/commit/9196fd795e87dab069b4260a3590a0ea886e770f
- https://github.com/theonedev/onedev/security/advisories/GHSA-9pph-8gfc-6w2r
Affected products (1)
- cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*
More vulnerabilities in Onedev Project Onedev
- CVE-2021-21245 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, AttachmentUploadServlet also saves user…
- CVE-2021-21242 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which can…
- CVE-2021-21244 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth…
- CVE-2021-21243 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, a Kubernetes REST endpoint exposes two methods…
- CVE-2022-39206 — Critical (CVSS 9.9): Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. When using Docker-based job executors, the…
- CVE-2021-21249 — Critical (CVSS 9.6): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is an issue involving YAML parsing which…
All CVEs affecting Onedev Project Onedev →
Other CWE-538 vulnerabilities
- CVE-2016-20024 — Critical (CVSS 9.8): ZKTeco ZKTime.Net 3.0.1.6 contains an insecure file permissions vulnerability that allows unprivileged users to…
- CVE-2025-12059 — Critical (CVSS 9.8): Insertion of Sensitive Information into Externally-Accessible File or Directory vulnerability in Logo Software Industry…
- CVE-2023-46723 — High (CVSS 8.9): lte-pic32-writer is a writer for PIC32 devices. In versions 0.0.1 and prior, those who use `sendto.txt` are vulnerable…
- CVE-2026-49298 — High (CVSS 8.8): A bug in Apache Airflow's KubernetesExecutor caused JWT tokens used by worker pods to authenticate against the…
- CVE-2026-21672 — High (CVSS 8.8): A vulnerability allowing local privilege escalation on Windows-based Veeam Backup & Replication servers.
- CVE-2023-7062 — High (CVSS 8.8): The Advanced File Manager Shortcodes plugin for WordPress is vulnerable to Directory Traversal in all versions up to,…