Live threats

All CVEs / Apache

CVE-2022-42920Apache Commons Bcel

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.9%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Nov 7, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Apache Commons BCEL has a number of APIs that would normally only allow changing specific class characteristics. However, due to an out-of-bounds writing issue, these APIs can be used to produce arbitrary bytecode. This could be abused in applications that pass attacker-controllable data to those APIs, giving the attacker more control over the resulting bytecode than otherwise expected. Update to Apache Commons BCEL 6.6.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Commons Bcel.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.bcel:bcel < 6.6.0 6.6.0 —

Per OSV / GitHub Advisories (GHSA-97xg-phpr-rg8q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachecommons_bcel< 6.6.0
fedoraprojectfedora35
fedoraprojectfedora36
fedoraprojectfedora37

Official sources

References

Links published by the sources. Open them with care.