CVE-2022-42920Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | bcel | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | bcel | Fixed | 6.5.0-1ubuntu0.1 | UBUNTU-CVE-2022-42920 |
| Ubuntu 20.04 | bcel | Fix pending | 6.4.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-42920 |
| Ubuntu 18.04 | bcel | Fix pending | 6.2-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-42920 |
| Ubuntu 16.04 | bcel | Fix pending | 6.0~rc3-2ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-42920 |
| Ubuntu 14.04 | bcel | Fix pending | ||
| Debian 14 | bcel | Fixed | 6.5.0-2 | DEBIAN-CVE-2022-42920 |
| Debian 13 | bcel | Fixed | 6.5.0-2 | DEBIAN-CVE-2022-42920 |
| Debian 12 | bcel | Fixed | 6.5.0-2 | DEBIAN-CVE-2022-42920 |
| Red Hat Enterprise Linux 9 | bcel | Fixed | 0:6.4.1-9.el9_1 | RHSA-2023:0005 |
| Red Hat Enterprise Linux 7 | bcel | Fixed | 0:5.2-19.el7_9 | RHSA-2022:8958 |
| Red Hat Enterprise Linux 7 | bcel-javadoc | Fixed | 0:5.2-19.el7_9 | RHSA-2022:8958 |
| AlmaLinux 9 | bcel | Fixed | 6.4.1-9.el9_1 | ALSA-2023:0005 |
| Rocky Linux 9 | bcel | Fixed | 0:6.4.1-9.el9_1 | RLSA-2023:0005 |
| Maven library | org.apache.bcel:bcel | Fixed | 6.6.0 | GHSA-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.
- Apache Software Foundation Apache Commons BCEL: affected: Apache Commons BCEL to before 6.6.0; fixed in
6.6.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202401-25 (vendor-advisory)
References
- https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4
- http://www.openwall.com/lists/oss-security/2022/11/07/2
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/
- https://security.gentoo.org/glsa/202401-25
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.