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

7 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

Event History

Sep 25, 2023
CVE Published
via MITRE·07:20 PM
Data Sourced
via MITRE·07:20 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 PM
Feb 18, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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