Skip to content
XXE Advisory Intermediate CVE-2021-43576

Jenkins pom2config XML External Entity Processing Information Disclosure Vulnerability

The Pom2Config class in Jenkins did not properly restrict XML External Entity references, so a crafted document containing a URI caused the XML parser to fetch that URI and embed its contents back into the document. An authenticated attacker could use this to disclose sensitive information in the context of the service account.

Adith Sudhakar Follow

Originally disclosed on Zero Day Initiative

Medium 6.5 View original

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Jenkins pom2config. Authentication is required to exploit this vulnerability.

Adith Sudhakar, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The XML parser in the Pom2Config class was configured to resolve external entities instead of disabling them.

Impact

An authenticated attacker could disclose sensitive information readable by the service account; the text does not say whether any defence limited the exploit.

What the attacker needed

Authentication to Jenkins

The fix

Jenkins issued an update to correct the vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Some programs read XML, a text format that can include references to outside files or web addresses. If the program follows those references without checking them, an attacker can make it read a file or address it should not, and the contents end up in the output the attacker sees. Here that let a logged-in user read sensitive data that the Jenkins service account could reach.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

More by Adith Sudhakar

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.