CVE-2021-21250 Post-Auth External Entity Expansion (XXE)

High 7.7 Published Updated

Authenticated attackers can exploit XML external entity injection in OneDev to read arbitrary files from the server filesystem.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-21250?

CVE-2021-21250 is a high-severity vulnerability in theonedev onedev, published on 15 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-538

Which versions are affected by CVE-2021-21250?

It affects 1 product.

Products include Onedev Project Onedev.

How do I fix CVE-2021-21250?

No fix has been published for CVE-2021-21250 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-21250 being exploited?

There is no known exploitation of CVE-2021-21250 in the wild and no public exploit code.

Sources

Also known as GHSA-9pph-8gfc-6w2r.

Is CVE-2021-21250 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free