CVE-2009-0217 — xmlsec
CVE-2009-0217 is a security vulnerability in org.apache.santuario:xmlsec. A fix is available for org.apache.santuario:xmlsec — see the affected versions and patch details below.
Apache XML Security For Java vulnerable to authentication bypass by HMAC truncation
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
org.apache.santuario:xmlsecReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The design of the W3C XML Signature Syntax and Processing (XMLDsig) recommendation, as implemented in multiple products.
The Apache XML Security (Java) is affected by the vulnerability published in US-Cert VU #466161. See: http://www.kb.cert.org/vuls/id/466161 for more information. This bug can allow an attacker to bypass authentication by inserting/modifying a small HMAC truncation length parameter in the XML Signature HMAC based SignatureMethod algorithms.
An inexhaustive list of additional affected products includes:
- the Oracle Security Developer Tools component in Oracle Application Server 10.1.2.3, 10.1.3.4, and 10.1.4.3IM;
- the WebLogic Server component in BEA Product Suite 10.3, 10.0 MP1, 9.2 MP3, 9.1, 9.0, and 8.1 SP6;
- Mono before 2.4.2.2;
- XML Security Library before 1.2.12;
- IBM WebSphere Application Server Versions 6.0 through 6.0.2.33, 6.1 through 6.1.0.23, and 7.0 through 7.0.0.1;
- Sun JDK and JRE Update 14 and earlier;
- Microsoft .NET Framework 3.0 through 3.0 SP2, 3.5, and 4.0; and other products uses a parameter that defines an HMAC truncation length (HMACOutputLength) but does not require a minimum for this length, which allows attackers to spoof HMAC-based signatures and bypass authentication by specifying a truncation length with a small number of bits.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.santuario:xmlsec | ≥ 1.4.0&&< 1.4.3 | 1.4.3org.apache.santuario:xmlsec:1.4.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.santuario:xmlsec, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.santuario:xmlsec to 1.4.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2009-0217 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2009-0217 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2009-0217. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Extras for RHEL 4 | java-1.6.0-sun-1:1.6.0.15-1jpp.1.el4 | RHSA-2009:1200 |
| Extras for RHEL 4 | java-1.6.0-ibm-1:1.6.0.7-1jpp.3.el4 | RHSA-2009:1694 |
| JBEAP 4.2.0 for RHEL 4 | glassfish-javamail-0:1.4.2-0jpp.ep1.5.el4 | RHSA-2009:1637 |
| JBEAP 4.2.0 for RHEL 5 | glassfish-jsf-0:1.2_13-2.1.ep1.el5 | RHSA-2009:1650 |
| Red Hat Enterprise Linux 4 | xmlsec1-0:1.2.6-3.1 | RHSA-2009:1428 |
| Red Hat Enterprise Linux 5 | java-1.6.0-openjdk-1:1.6.0.0-1.2.b09.el5 | RHSA-2009:1201 |
| Red Hat JBoss Enterprise Application Platform 4.3 for RHEL 4 | glassfish-javamail-0:1.4.2-0jpp.ep1.5.el4 | RHSA-2009:1636 |
| Red Hat JBoss Enterprise Application Platform 4.3 for RHEL 5 | glassfish-jaxb-0:2.1.4-1.12.patch03.1.ep1.el5 | RHSA-2009:1649 |
Frequently Asked Questions
Is CVE-2009-0217 in your dependencies?
O3 Security finds CVE-2009-0217 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.