CVE-2021-21250
Summary
| CVE | CVE-2021-21250 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-01-15 21:15:00 UTC |
| Updated | 2021-01-21 14:28:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-538
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Onedev Project | Onedev | All | All | All | All |
| Application | Onedev Project | Onedev | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Fix XXE injection attack by disabling XML DTD handling · theonedev/onedev@9196fd7 · GitHub | MISC | github.com | Patch, Third Party Advisory |
| Post-Auth External Entity Expansion (XXE) · Advisory · theonedev/onedev · GitHub | CONFIRM | github.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.