Integer Truncation Vulnerability in Apache Xalan Java XSLT Library Affecting BCEL and OpenJDK Packages

bcel Updated 02 Oct 2025

Summary

19/07/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-34169: The Apache Xalan Java XSLT library is vulnerable to an integer truncation issue when processing malicious XSLT stylesheets. Affects bcel versions < 6.5.0-1+deb11u1. Fixed in 6.5.0-1+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Apache Xalan Java XSLT library is a powerful tool used for transforming XML documents into various formats using XSLT stylesheets. It is widely integrated into Java runtimes, including OpenJDK, which repackages Xalan for its users. The library's functionality is critical for applications that rely on XML processing, making it essential for developers. However, a recently discovered integer truncation vulnerability poses significant risks, allowing attackers to exploit the library's processing of malicious XSLT stylesheets.

Vulnerability Detail

The vulnerability arises from an integer truncation issue within the Apache Xalan library when it processes specially crafted XSLT stylesheets. This flaw can lead to the corruption of Java class files generated by the internal XSLTC compiler, potentially enabling the execution of arbitrary Java bytecode. If exploited, this vulnerability could allow attackers to execute malicious code within the context of the affected application, leading to severe security breaches.

How To Fix

Minimum fixed version

6.5.0-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bcel

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid processing untrusted or malicious XSLT stylesheets until the package is updated. This can help mitigate the risk of exploitation while waiting for a patch.

Conclusion

The integer truncation vulnerability in the Apache Xalan Java XSLT library poses significant risks to applications using the affected BCEL and OpenJDK packages. Users are strongly advised to update to the patched versions to safeguard their systems against potential exploitation.

See every vulnerability recorded for bcel →

Share this vulnerability

FAQ

The Apache Xalan library is a Java-based tool for transforming XML documents using XSLT stylesheets, widely used in Java applications.

The vulnerability allows attackers to exploit the processing of malicious XSLT stylesheets, leading to the corruption of Java class files and potential execution of arbitrary code.

The affected packages include BCEL and OpenJDK versions 11 and 17 across various Debian releases.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

If immediate updates are not possible, avoid processing untrusted XSLT stylesheets to mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for bcel.

How To Fix

Minimum fixed version

6.5.0-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bcel

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback