XML Signature Spoofing Vulnerability in libxml-security-java

libxml-security-java Updated 02 Oct 2025

Summary

20/08/2013
N/A
Yes i
Unrated
Not published

CVE-2013-2172: jcp/xml/dsig/internal/dom/DOMCanonicalizationMethod.java in Apache Santuario XML Security for Java 1.4.x before 1.4.8 and 1.5.x before 1.5.5 allows context-dependent attackers to spoof an XML Signature by using the Canon... Affects libxml-security-java versions < 1.5.5-2. Fixed in 1.5.5-2. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libxml-security-java is a Java library that provides XML security features, including XML signature and encryption. It is widely used in applications that require secure data transmission and integrity verification. The library implements various standards for XML security, making it a critical component for applications handling sensitive information. However, certain versions of this library are vulnerable to a spoofing attack that can compromise the integrity of XML signatures.

Vulnerability Detail

The vulnerability, identified as CVE-2013-2172, exists in the DOMCanonicalizationMethod.java file of Apache Santuario XML Security for Java. It allows context-dependent attackers to spoof an XML Signature by manipulating the CanonicalizationMethod parameter to apply a weak canonicalization algorithm to the SignedInfo part of the Signature. This flaw can lead to unauthorized access or data manipulation, posing significant risks to applications relying on XML signatures for security.

How To Fix

Minimum fixed version

1.5.5-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libxml-security-java

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

Workaround

If upgrading is not immediately possible, consider implementing input validation to restrict the CanonicalizationMethod parameter to only trusted algorithms. This can help mitigate the risk of spoofing until a proper fix is applied.

Conclusion

The CVE-2013-2172 vulnerability in libxml-security-java poses a significant risk to applications that utilize XML signatures for security. It is crucial for users to upgrade to the patched version to safeguard against potential spoofing attacks. Additionally, using tools like Vulert can help monitor and identify vulnerabilities in your software.

See every vulnerability recorded for libxml-security-java →

Share this vulnerability

FAQ

CVE-2013-2172 is a vulnerability in the libxml-security-java library that allows attackers to spoof XML signatures by exploiting weak canonicalization methods.

Versions 1.4.x before 1.4.8 and 1.5.x before 1.5.5 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing your manifest file. Visit Vulert Scanner to check your application without any signup.

If exploited, this vulnerability can lead to unauthorized access, data manipulation, and a breach of data integrity in applications that rely on XML signatures.

Yes, implementing strict input validation for the CanonicalizationMethod parameter can help mitigate the risk until an upgrade is performed.

Related vulnerabilities

Recent vulnerabilities recorded for libxml-security-java.

How To Fix

Minimum fixed version

1.5.5-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libxml-security-java

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