Apache Xalan-J: Incorrect Conversion between Numeric Types
CVE-2022-34169 is a high-severity incorrect conversion between numeric types vulnerability in Apache Xalan-J from Apache, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Apache Xalan-J versions: Xalan-J through 2.7.2. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 81.8% chance of exploitation within 30 days, which is in the top 0.35% of all scored CVEs.
Exploitation in the next 30 days is more likely than not, according to EPSS.
What to do
- Check which version of Apache Xalan-J you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on lists.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache Xalan-J | Xalan-J through 2.7.2 | Not stated |
| Apache | Xalan-java | 2.7.2 and earlier | Not stated |
| Debian | Debian Linux | 10.0; 11.0 | Not stated |
| Oracle | Graalvm | 20.3.6; 21.3.2; 22.1.0 | Not stated |
| Oracle | JDK | 1.7.0; 1.8.0; 11.0.15.1; 17.0.3.1; 18.0.1.1 | Not stated |
| Oracle | JRE | 1.7.0; 1.8.0; 11.0.15.1; 17.0.3.1; 18.0.1.1 | Not stated |
| Oracle | Openjdk | 11 through 11.0.15; 13 through 13.0.11; 15 through 15.0.7; 17 through 17.0.3; 7; 8; 18 | Not stated |
| Fedora Project | Fedora | 35; 36 | Not stated |
| NetApp | 7-mode Transition Tool | Not specified in the record | Not stated |
| NetApp | Active Iq Unified Manager | Not specified in the record | Not stated |
| NetApp | Cloud Insights Acquisition Unit | Not specified in the record | Not stated |
| NetApp | Cloud Secure Agent | Not specified in the record | Not stated |
| NetApp | Hci Management Node | Not specified in the record | Not stated |
| NetApp | Oncommand Insight | Not specified in the record | Not stated |
| NetApp | Solidfire | Not specified in the record | Not stated |
| NetApp | Hci Compute Node | Not specified in the record | Not stated |
| Azul | Zulu | 6.47; 7.54; 8.62; 11.56; 13.48; 15.40; 17.34; 18.30 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 3.1 | 7.5 | High | CISA (ADP) |
Official description
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. Users are recommended to update to version 2.7.3 or later. Note: Java runtimes (such as OpenJDK) include repackaged copies of Xalan.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: 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 developers prevent this class of flaw
- Avoid making conversion between numeric types. Always check for the allowed ranges.
More Incorrect Conversion between Numeric Types vulnerabilities (CWE-681)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- lists.apache.org/thread/12pxy4phsry6c34x2ol4fft6xlho4kywIssue Tracking, Mailing List
- lists.apache.org/thread/2qvl7r43wb4t8p9dd9om1bnkssk07sn8Issue Tracking, Mailing List
Patches and release notes
- openwall.com/lists/oss-security/2022/07/20/3Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2022/10/18/2Mailing List, Third Party Advisory
- oracle.com/security-alerts/cpujul2022.htmlThird Party Advisory
Third-party and government advisories
- packetstormsecurity.com/files/168186/Xalan-J-XSLTC-Integer-Truncation.htmlThird Party Advisory, VDB Entry
- openwall.com/lists/oss-security/2022/07/19/5Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2022/07/19/6Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2022/07/20/2Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2022/11/04/8Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2022/11/07/2Mailing List, Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/10/msg00024.htmlMailing List, Third Party Advisory
- security.netapp.com/advisory/ntap-20220729-0009/Third Party Advisory
- debian.org/security/2022/dsa-5188Third Party Advisory
- debian.org/security/2022/dsa-5192Third Party Advisory
- debian.org/security/2022/dsa-5256Third Party Advisory
Other references
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H4YNJSJ64NPCNKFPNBYI…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I5OZNAZJ4YHLOKRRRZSW…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3EVGR7FD3ZLV5SBTJX…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KO3DXNKZ4EU3UZBT6AAR…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L3XPOTPPBZIPFBZHQE5E…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YULPNO3PAWMEQQZV2C54…
- security.gentoo.org/glsa/202401-25
- security.netapp.com/advisory/ntap-20240621-0006/
Recent Incorrect Conversion between Numeric Types vulnerabilities
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.