CVE-2020-2305: XEE

Published Nov 4, 2020
·
Updated

A flaw was found in the mercurial plugin in Jenkins. The XML changelog parser is not configured to prevent an XML external entity (XXE) attack allowing an attacker the ability to control an agent process to have Jenkins parse a crafted changelog file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery. The highest threat from this vulnerability is to data confidentiality.

Other sources

Jenkins Mercurial Plugin 2.11 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks.

Jenkins Mercurial Plugin prior to 2.12, 2.10.1, 2.9.1, and 2.8.1 does not configure its XML changelog parser to prevent XML external entity (XXE) attacks.

This allows attackers able to control an agent process to have Jenkins parse a crafted changelog file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery.

Mercurial Plugin 2.12, 2.10.1, 2.9.1, and 2.8.1 disables external entity resolution for its XML parser.

Mercurial Plugin 2.11 and earlier does not configure its XML changelog parser to prevent XML external entity (XXE) attacks.

This allows attackers able to control an agent process to have Jenkins parse a crafted changelog file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery.

Red Hat

Affected Software

10 affected componentsFixes available
redhat/jenkins<2-plugins-0:3.11.1612862361-1.el7
2-plugins-0:3.11.1612862361-1.el7
redhat/jenkins<2-plugins-0:4.4.1611203637-1.el7
2-plugins-0:4.4.1611203637-1.el7
redhat/jenkins<2-plugins-0:4.5.1610108899-1.el7
2-plugins-0:4.5.1610108899-1.el7
redhat/jenkins<2-plugins-0:4.6.1609853716-1.el8
2-plugins-0:4.6.1609853716-1.el8
maven/org.jenkins-ci.plugins:mercurial<2.8.1
2.8.1
maven/org.jenkins-ci.plugins:mercurial=2.9
2.9.1
maven/org.jenkins-ci.plugins:mercurial=2.10
2.10.1
maven/org.jenkins-ci.plugins:mercurial=2.11
2.12
redhat/mercurial<2.12
2.12
Jenkins Mercurial Jenkins<=2.11

Remediation

Information

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update as soon as possible.

Event History

Nov 4, 2020
CVE Published
12:00 AM
CVE Published
via MITRE·02:35 PM
Data Sourced
via MITRE·02:35 PM
Description
May 24, 2022
Advisory Published
05:33 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2020-2305?

CVE-2020-2305 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2020-2305?

To resolve CVE-2020-2305, update the Jenkins Mercurial plugin to a version that is not vulnerable, specifically versions 2.9 or higher.

3

What specific plugin is affected by CVE-2020-2305?

CVE-2020-2305 affects the Mercurial plugin in Jenkins.

4

What type of attack does CVE-2020-2305 expose Jenkins to?

CVE-2020-2305 exposes Jenkins to XML External Entity (XXE) attacks.

5

In which environments does CVE-2020-2305 affect Jenkins installations?

CVE-2020-2305 affects Jenkins installations running on the specified versions of the Mercurial plugin across various operating systems including EL7 and EL8.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203