XML Injection Vulnerability in plexus-utils2 Package

plexus-utils2 Updated 02 Oct 2025

Summary

25/09/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-4245: A flaw was found in codehaus-plexus. Affects plexus-utils2 versions < 3.0.24-1. Fixed in 3.0.24-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The plexus-utils2 package is a utility library from the Codehaus Plexus project, primarily used for XML processing in Java applications. It provides various functionalities, including XML manipulation and comment handling. However, a flaw in its comment sanitization can lead to security vulnerabilities, particularly XML injection, which can compromise the integrity of applications relying on this library.

Vulnerability Detail

A flaw was found in the org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment method of the plexus-utils2 package. This method fails to properly sanitize comments that contain the sequence '-->', which is a valid XML comment delimiter. As a result, an attacker could craft a command string that, when processed, could be interpreted as XML, leading to potential XML injection attacks. This vulnerability could allow unauthorized access or manipulation of XML data, posing significant security risks to applications using this library.

How To Fix

Minimum fixed version

3.0.24-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade plexus-utils2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid using the affected method for writing comments in XML until the package is updated. Alternatively, ensure that any user input is thoroughly sanitized before being processed by the XML writer.

Conclusion

The plexus-utils2 package has a significant vulnerability related to XML comment handling, which can lead to XML injection attacks. It is crucial for users of this package to update to the patched version 3.0.24-1 to mitigate risks. For real-time monitoring of open-source vulnerabilities, consider using Vulert, which can help you stay informed about potential threats without requiring code access.

See every vulnerability recorded for plexus-utils2 →

Share this vulnerability

FAQ

The vulnerability is an XML injection flaw due to improper comment sanitization in the plexus-utils2 package.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The risks include unauthorized access to XML data, data manipulation, and potential exploitation of the application by attackers.

Yes, a patched version 3.0.24-1 of the plexus-utils2 package is available to fix this vulnerability.

If immediate updates are not possible, consider implementing input sanitization and avoiding the use of the affected method until the package can be updated.

Related vulnerabilities

Recent vulnerabilities recorded for plexus-utils2.

How To Fix

Minimum fixed version

3.0.24-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade plexus-utils2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback