{"id":"CVE-2021-21250","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-21250","generatedAt":"2026-10-27T22:33:14.304Z","title":"In OneDev before version 4.0.3, there is a critical vulnerability which may lead to arbitrary file read.","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.","published":"2021-01-15T21:15:14.000Z","lastModified":"2026-06-17T03:35:08.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},"cwe":["CWE-538"],"affected":["onedev project/onedev"],"epss":{"score":0.00943,"percentile":0.60786,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.94%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://github.com/theonedev/onedev/commit/9196fd795e87dab069b4260a3590a0ea886e770f","tags":["Patch","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/theonedev/onedev/security/advisories/GHSA-9pph-8gfc-6w2r","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/theonedev/onedev/commit/9196fd795e87dab069b4260a3590a0ea886e770f","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/theonedev/onedev/security/advisories/GHSA-9pph-8gfc-6w2r","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21250","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}