XML External Entity injection in OneDev - CVE-2021-21250
Published: January 12, 2021 / Updated: May 5, 2026
OneDev
OneDev
Description
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper restriction of XML external entity reference in XmlBuildSpecMigrator.migrate() when processing BuildSpec provided in XML format. A remote user can supply a specially crafted XML BuildSpec to disclose sensitive information.
Exploitation may allow reading arbitrary files from the file system, and file contents may also be exfiltrated out of band.