CVE-2022-34169: Xalan Apache Xalan Java XSLT Library Vulnerability
HIGHCVE-2022-34169 is a HIGH (CVSS 7.5) apache xalan java xslt library vulnerability (CWE-681: Incorrect Conversion between Numeric Types) affecting Xalan libraries in the Maven ecosystem. The issue involves apache xalan java xslt library integer truncation issue when processing malicious xslt stylesheets. Remediation is available by upgrading affected packages to version 2.7.3.
CVE-2022-34169 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2022-34169
To remediate this vulnerability, upgrade all affected Xalan dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=xalan
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-34169, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=xalan
Analyze the terminal output to locate any version of Xalan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.3), your application is affected.
Note: The mvn dependency:tree -Dincludes=xalan command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-681: Incorrect Conversion between Numeric Types, where when converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. if the resulting values are used in a sensitive context, then dangerous behaviors may occur. In Xalan, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-34169 Affected Xalan Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
xalan:xalan
|
Maven |
< 2.7.3
|
2.7.3
|
References
Frequently Asked Questions
What is CVE-2022-34169?
Which Xalan versions are affected?
What version fixes CVE-2022-34169?
Is xalan affected?
What is the CVSS score of CVE-2022-34169?
What CWE is associated with CVE-2022-34169?
How can I check Maven dependencies for CVE-2022-34169?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9339-86wc-4qgf",
"modified" : "2024-06-24T21:23:11Z",
"published" : "2022-07-20T00:00:18Z",
"aliases" : [ "CVE-2022-34169" ],
"summary" : "Apache Xalan Java XSLT library integer truncation issue when processing malicious XSLT stylesheets",
"details" : "The Apache Xalan Java XSLT library is vulnerable to an integer truncation issue when processing malicious XSLT stylesheets. This can be used to corrupt Java class files generated by the internal XSLTC compiler and execute arbitrary Java bytecode.\n\nA fix for this issue was published in September 2022 as part of an anticipated 2.7.3 release.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "xalan:xalan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.7.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-34169"
}, {
"type" : "WEB",
"url" : "https://xalan.apache.org"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2022.html"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2022/dsa-5256"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2022/dsa-5192"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2022/dsa-5188"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240621-0006"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220729-0009"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202401-25"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YULPNO3PAWMEQQZV2C54I3H3ZOXFZUTB"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L3XPOTPPBZIPFBZHQE5E7OW6PDACUMCJ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KO3DXNKZ4EU3UZBT6AAR4XRKCD73KLMO"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JN3EVGR7FD3ZLV5SBTJXUIDCMSK4QUE2"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I5OZNAZJ4YHLOKRRRZSWRT5OJ25E4XLM"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4YNJSJ64NPCNKFPNBYITNZU5H3L4D6L"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YULPNO3PAWMEQQZV2C54I3H3ZOXFZUTB"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L3XPOTPPBZIPFBZHQE5E7OW6PDACUMCJ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KO3DXNKZ4EU3UZBT6AAR4XRKCD73KLMO"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3EVGR7FD3ZLV5SBTJXUIDCMSK4QUE2"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I5OZNAZJ4YHLOKRRRZSWRT5OJ25E4XLM"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H4YNJSJ64NPCNKFPNBYITNZU5H3L4D6L"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/10/msg00024.html"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/x3f7xv3p1g32qj2hlg8wd57pwcpld471"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/2qvl7r43wb4t8p9dd9om1bnkssk07sn8"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/12pxy4phsry6c34x2ol4fft6xlho4kyw"
}, {
"type" : "WEB",
"url" : "https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=commit;h=da3e0d06b467247643ce04e88d3346739d119f21"
}, {
"type" : "WEB",
"url" : "https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=commit;h=ab57211e5d2e97cbed06786f919fa9b749c83573"
}, {
"type" : "WEB",
"url" : "https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=commit;h=2e60d0a9a5b822c4abf9051857973b1c6babfe81"
}, {
"type" : "PACKAGE",
"url" : "https://gitbox.apache.org/repos/asf?p=xalan-java.git"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/168186/Xalan-J-XSLTC-Integer-Truncation.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/07/19/5"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/07/19/6"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/07/20/2"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/07/20/3"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/10/18/2"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/11/04/8"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/11/07/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-681" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-21T22:28:36Z",
"nvd_published_at" : "2022-07-19T18:15:00Z"
}
}