CVEfocus › CVE database › CVE-2022-42920

CVE-2022-42920Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds…

EPSS 2.9% (higher than 88% of CVEs)Published 2022-11-07Updated 2024-08-03Assigner: apache

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.

CWE-787

What to do

Fixed builds are available from AlmaLinux, Debian, Maven, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
4Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04bcelNot affected
vulnerable_code_not_present
Ubuntu 22.04bcelFixed6.5.0-1ubuntu0.1UBUNTU-CVE-2022-42920
Ubuntu 20.04bcelFix pending6.4.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-42920
Ubuntu 18.04bcelFix pending6.2-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-42920
Ubuntu 16.04bcelFix pending6.0~rc3-2ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-42920
Ubuntu 14.04bcelFix pending
Debian 14bcelFixed6.5.0-2DEBIAN-CVE-2022-42920
Debian 13bcelFixed6.5.0-2DEBIAN-CVE-2022-42920
Debian 12bcelFixed6.5.0-2DEBIAN-CVE-2022-42920
Red Hat Enterprise Linux 9bcelFixed0:6.4.1-9.el9_1RHSA-2023:0005
Red Hat Enterprise Linux 7bcelFixed0:5.2-19.el7_9RHSA-2022:8958
Red Hat Enterprise Linux 7bcel-javadocFixed0:5.2-19.el7_9RHSA-2022:8958
AlmaLinux 9bcelFixed6.4.1-9.el9_1ALSA-2023:0005
Rocky Linux 9bcelFixed0:6.4.1-9.el9_1RLSA-2023:0005
Maven libraryorg.apache.bcel:bcelFixed6.6.0GHSA-97xg-phpr-rg8q

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.