CVE-2022-34169: Xalan Apache Xalan Java XSLT Library Vulnerability

HIGH
Advisory Identifier: GHSA-9339-86wc-4qgf
CVSS 7.5
CWE-681
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-34169
GHSA Identifier GHSA-9339-86wc-4qgf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-681: Incorrect Conversion between Numeric Types
Affected Product Xalan
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

xalan:xalan fixed: 2.7.3
<dependency>
    <groupId>xalan</groupId>
    <artifactId>xalan</artifactId>
    <version>2.7.3</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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. A fix for this issue was published in September 2022 as part of an anticipated 2.7.3 release.

CVE-2022-34169 Affected Xalan Versions

1 component(s)
Fixed Versions:
2.7.3
Product / Package Ecosystem Affected Versions Fixed Version
xalan:xalan
Maven
< 2.7.3
2.7.3

References

NVD — CVE-2022-34169 NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-34169
Xalan Security Information SECURITY
https://xalan.apache.org
Xalan Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2022.html
Xalan Security Information SECURITY
https://www.debian.org/security/2022/dsa-5256
Xalan Security Information SECURITY
https://www.debian.org/security/2022/dsa-5192
Xalan Security Information SECURITY
https://www.debian.org/security/2022/dsa-5188
Xalan Security Information SECURITY
https://security.netapp.com/advisory/ntap-20240621-0006
Xalan Security Information SECURITY
https://security.netapp.com/advisory/ntap-20220729-0009
Xalan Security Information SECURITY
https://security.gentoo.org/glsa/202401-25
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YULPNO3PAWMEQQZV2C54I3H3ZOXFZUTB
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L3XPOTPPBZIPFBZHQE5E7OW6PDACUMCJ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KO3DXNKZ4EU3UZBT6AAR4XRKCD73KLMO
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JN3EVGR7FD3ZLV5SBTJXUIDCMSK4QUE2
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I5OZNAZJ4YHLOKRRRZSWRT5OJ25E4XLM
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4YNJSJ64NPCNKFPNBYITNZU5H3L4D6L
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YULPNO3PAWMEQQZV2C54I3H3ZOXFZUTB
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L3XPOTPPBZIPFBZHQE5E7OW6PDACUMCJ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KO3DXNKZ4EU3UZBT6AAR4XRKCD73KLMO
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3EVGR7FD3ZLV5SBTJXUIDCMSK4QUE2
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I5OZNAZJ4YHLOKRRRZSWRT5OJ25E4XLM
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H4YNJSJ64NPCNKFPNBYITNZU5H3L4D6L
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2022/10/msg00024.html
lists.apache.org/thread/x3f7xv3p1g32... WEB
https://lists.apache.org/thread/x3f7xv3p1g32qj2hlg8wd57pwcpld471
lists.apache.org/thread/2qvl7r43wb4t... WEB
https://lists.apache.org/thread/2qvl7r43wb4t8p9dd9om1bnkssk07sn8
lists.apache.org/thread/12pxy4phsry6... WEB
https://lists.apache.org/thread/12pxy4phsry6c34x2ol4fft6xlho4kyw
gitbox.apache.org/repos/asf WEB
https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=commit;h=da3e0d06b467247643ce04e88d3346739d119f21
gitbox.apache.org/repos/asf WEB
https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=commit;h=ab57211e5d2e97cbed06786f919fa9b749c83573
gitbox.apache.org/repos/asf WEB
https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=commit;h=2e60d0a9a5b822c4abf9051857973b1c6babfe81
gitbox.apache.org/repos/asf PACKAGE
https://gitbox.apache.org/repos/asf?p=xalan-java.git
Xalan Security Information SECURITY
http://packetstormsecurity.com/files/168186/Xalan-J-XSLTC-Integer-Truncation.html
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/07/19/5
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/07/19/6
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/07/20/2
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/07/20/3
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/10/18/2
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/11/04/8
Xalan Security Information SECURITY
http://www.openwall.com/lists/oss-security/2022/11/07/2

Frequently Asked Questions

What is CVE-2022-34169?
CVE-2022-34169 is a security vulnerability in Xalan involving Apache Xalan Java XSLT library integer truncation issue when processing malicious XSLT stylesheets under CWE-681: Incorrect Conversion between Numeric Types.
Which Xalan versions are affected?
Affected versions include releases prior to 2.7.3 across affected packages: xalan:xalan.
What version fixes CVE-2022-34169?
Upgrading to 2.7.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xalan affected?
Yes, xalan:xalan is affected in releases prior to 2.7.3. Upgrade your dependency to 2.7.3 or later.
What is the CVSS score of CVE-2022-34169?
CVE-2022-34169 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-34169?
CVE-2022-34169 is classified under CWE-681: Incorrect Conversion between Numeric Types (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.).
How can I check Maven dependencies for CVE-2022-34169?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=xalan'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}