CyberSecBulletin
CVE-2022-34169NVD status: Modified

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.

Patch now

Exploitation in the next 30 days is more likely than not, according to EPSS.

What to do

  1. Check which version of Apache Xalan-J you run against the affected versions below, and install the vendor's latest release.
  2. Read the advisory on lists.apache.org for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
ApacheApache Xalan-JXalan-J through 2.7.2Not stated
ApacheXalan-java2.7.2 and earlierNot stated
DebianDebian Linux10.0; 11.0Not stated
OracleGraalvm20.3.6; 21.3.2; 22.1.0Not stated
OracleJDK1.7.0; 1.8.0; 11.0.15.1; 17.0.3.1; 18.0.1.1Not stated
OracleJRE1.7.0; 1.8.0; 11.0.15.1; 17.0.3.1; 18.0.1.1Not stated
OracleOpenjdk11 through 11.0.15; 13 through 13.0.11; 15 through 15.0.7; 17 through 17.0.3; 7; 8; 18Not stated
Fedora ProjectFedora35; 36Not stated
NetApp7-mode Transition ToolNot specified in the recordNot stated
NetAppActive Iq Unified ManagerNot specified in the recordNot stated
NetAppCloud Insights Acquisition UnitNot specified in the recordNot stated
NetAppCloud Secure AgentNot specified in the recordNot stated
NetAppHci Management NodeNot specified in the recordNot stated
NetAppOncommand InsightNot specified in the recordNot stated
NetAppSolidfireNot specified in the recordNot stated
NetAppHci Compute NodeNot specified in the recordNot stated
AzulZulu6.47; 7.54; 8.62; 11.56; 13.48; 15.40; 17.34; 18.30Not 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 systemScoreSeverityScored by
CVSS 3.17.5HighNVD
CVSS 3.17.5HighCISA (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

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Patches and release notes

Third-party and government advisories

Recent Incorrect Conversion between Numeric Types vulnerabilities

Spotted an error? Tell us.