CVE-2022-4245: Codehaus-plexus: xml external entity (xxe) injection

Published Dec 1, 2022
·
Updated

A flaw was found in codehaus-plexus. The org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment fails to sanitize comments for a --> sequence. This issue means that text contained in the command string could be interpreted as XML and allow for XML injection.

Other sources

A flaw was found in codehaus-plexus. The org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment fails to sanitize comments for a --> sequence. This issue means that text contained in the command string could be interpreted as XML and allow for XML injection.

— MITRE

org.codehaus.plexus:plexus-utils is a collection of various utility classes to ease working with strings, files, command lines, XML and more.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment fails to sanitize comments for a --> sequence. This means that text contained in the command string could be interpreted as XML and allow for XML injection.

https://security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102

— Red Hat

Plexus-Utils could allow a remote authenticated attacker to obtain sensitive information, caused by an XML injection vulnerability in the XmlWriterUtil.java script. By sending a specially-crafted request to XMLWriter using a "-->" sequence, an attacker could exploit this vulnerability to obtain sensitive information, and use this information to launch further attacks against the affected system.

— IBM

Affected Software

13 affected componentsFixes available
redhat/codehaus-plexus<3.0.24
3.0.24
maven/org.codehaus.plexus:plexus-utils<3.0.24
3.0.24
Codehaus-plexus Project Codehaus-plexus<3.0.24
redhat Integration Camel K<1.10.1
Codehaus-plexus Plexus-utils<3.0.24
IBM Cognos Controller<=11.0.0 - 11.0.1 FP3
IBM Controller<=11.1.0
debian/plexus-utils2<3.0.24-1
3.0.24-1
debian/plexus-utils2<3.0.24-1
3.0.24-1
debian/plexus-utils2<3.0.24-1
3.0.24-1
debian/plexus-utils2
3.0.24-1
ubuntu/plexus-utils2*
ubuntu/plexus-utils2*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/codehaus-plexus to a version that resolves this vulnerability.

    Fixed in 3.0.24
  2. Upgrade

    Upgrade maven/org.codehaus.plexus:plexus-utils to a version that resolves this vulnerability.

    Fixed in 3.0.24
  3. Upgrade

    Upgrade debian/plexus-utils2 to a version that resolves this vulnerability.

    Fixed in 3.0.24-1

Event History

Dec 1, 2022
Data Sourced
06:45 AM
DescriptionSeverityAffected Software
Sep 22, 2023
Data Sourced
via Red Hat·02:13 PM
DescriptionSeverityAffected Software
Updated
02:13 PM
Affected Software
Sep 25, 2023
CVE Published
via MITRE·07:20 PM
Data Sourced
via MITRE·07:20 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Advisory Published
09:30 PM
Oct 2, 2023
Data Sourced
07:27 PM
Weakness
Updated
07:27 PM
Severity
May 3, 2024
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:15 PM
WeaknessAffected Software
Advisory Published
via GitHub·08:26 PM
Data Sourced
via GitHub·08:26 PM
DescriptionSeverityWeaknessAffected Software
Oct 10, 2024
Updated
via NVD·08:02 PM
Affected Software
Feb 18, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 20, 2025
Updated
via IBM·12:00 AM
Affected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Nov 25, 2026
Updated
via OSV·09:30 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-4245?

CVE-2022-4245 is a vulnerability found in codehaus-plexus that allows for XML injection.

2

How does CVE-2022-4245 affect codehaus-plexus?

CVE-2022-4245 affects codehaus-plexus by failing to sanitize comments for a `-->` sequence, allowing for potential XML injection.

3

What is the severity of CVE-2022-4245?

The severity of CVE-2022-4245 is medium (CVSS score of 4).

4

How can I fix CVE-2022-4245?

To fix CVE-2022-4245, update codehaus-plexus to version 3.0.24 or higher.

5

Where can I find more information about CVE-2022-4245?

You can find more information about CVE-2022-4245 at the following references: [Link 1](https://security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102), [Link 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2157638), [Link 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2157639).

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