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

Medium 4.3 Published Updated

An attacker can inject XML via unsanitized comments in Plexus XML utilities, potentially reading sensitive data or causing denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-4245?

CVE-2022-4245 is a medium-severity vulnerability in Red Hat A-MQ Clients 2, published on 25 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-611, CWE-91

Which versions are affected by CVE-2022-4245?

2 open source packages ship an affected version, including org.codehaus.plexus:plexus-utils. It affects 2 products.

PackageAffectedFixed in
org.codehaus.plexus:plexus-utils MavenAll versions3.0.24
org.codehaus.plexus:plexus-utils MavenAll versions3.0.24

Products include Codehaus-Plexus Plexus-Utils, Redhat Integration Camel K.

How do I fix CVE-2022-4245?

Upgrade org.codehaus.plexus:plexus-utils to 3.0.24 or later.

Is CVE-2022-4245 being exploited?

There is no known exploitation of CVE-2022-4245 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1791965617, CLSA-2026-1791965620, CLSA-2026-1791965626, CLSA-2026-1791965636, CLSA-2026-1791965637, CLSA-2026-1793136969 and 6 more.

Is CVE-2022-4245 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free