Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Commons BCEL | Apache Commons BCEL – < 6.6.0 | 6.6.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | bcel | 6.5.0-2 | — |
| Debian 13 | bcel | 6.5.0-2 | — |
| Debian 12 | bcel | 6.5.0-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | bcel | 6.5.0-1ubuntu0.1 | USN-7208-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | bcel | 6.4.1-1ubuntu0.1~esm1 | USN-7208-1 |
| Ubuntu Pro 18.04 LTS | bcel | 6.2-1ubuntu0.1~esm1 | USN-7208-1 |
| Ubuntu Pro 16.04 LTS | bcel | 6.0~rc3-2ubuntu1+esm1 | USN-7208-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | bcel | 6.4.1-9.el9_1 | RHSA-2023:0005 |
| RHEL 7 | bcel +1 | 5.2-19.el7_9 | RHSA-2022:8958 |
| RHEL 3 | rh-maven36-bcel +1 | 6.3.1-2.3.el7 | RHSA-2022:8959 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.0 EUS | bcel | 6.4.1-9.el9_0 | RHSA-2023:0004 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | bcel | 6.4.1-9.el9_1 | ALSA-2023:0005 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | bcel | 6.4.1-9.el9_1 | RLSA-2023:0005 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | bcel | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| SLES 15 SP3 | bcel | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| SLES 12 SP5 | bcel | 5.2-28.3.1 | SUSE-SU-2022:4331-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | bcel | 5.2-28.3.1 | SUSE-SU-2022:4331-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | bcel | 5.2-37.1 | openSUSE-SU-2024:12530-1 |
| openSUSE Leap 15.4 | bcel | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| openSUSE Leap 15.3 | bcel | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | bcel +1 | 6.5.0-3.amzn2023.0.2 | ALAS2023-2023-105 |
| Amazon Linux 2 | bcel +1 | 5.2-18.amzn2.0.1 | ALAS2-2023-1916 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | bcel | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | bcel | 6.4.1-9.el9_1 | ELSA-2023-0005 |
| Oracle Linux 7 | bcel +1 | 5.2-19.el7_9 | ELSA-2022-8958 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.bcel:bcel | < 6.6.0 | 6.6.0 | GHSA-97xg-phpr-rg8q |
Advisories 30
- ALSA-2023:0005 Important: bcel security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2023:0005 Red Hat Security Advisory: bcel security update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2023:0004 Red Hat Security Advisory: bcel security update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2022:8959 Red Hat Security Advisory: rh-maven36-bcel security update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2022:8958 Red Hat Security Advisory: bcel security update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- USN-7208-1 bcel vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- RLSA-2023:0005 Important: bcel security update Rocky Linux Security Advisories · Feb 5, 2026
- openSUSE-SU-2024:12530-1 bcel-5.2-37.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4306-1 Security update for bcel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4331-1 Security update for bcel SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1961 Apache Commons: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · May 29, 2025
- WID-SEC-2024-0892 Oracle Retail Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 16, 2024
- WID-SEC-2024-0888 Oracle Systems: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 16, 2024
- WID-SEC-2024-0874 Oracle Enterprise Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 16, 2024
- WID-SEC-2024-0124 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 16, 2024
- WID-SEC-2024-0117 Oracle Retail Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 16, 2024
- WID-SEC-2024-0107 Oracle Communications Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 16, 2024
- WID-SEC-2023-1807 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 26, 2023
- WID-SEC-2023-2674 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 26, 2023
- WID-SEC-2023-2693 Oracle Insurance Applications: Schwachstelle gefährdet Vertraulichkeit, Integrität und Verfügbarkeit BSI CERT-Bund (WID) · Oct 17, 2023
- WID-SEC-2023-2689 Oracle PeopleSoft: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 17, 2023
- WID-SEC-2023-2688 Oracle Retail Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 17, 2023
- WID-SEC-2023-2684 Oracle Utilities Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 17, 2023
- WID-SEC-2023-2680 Oracle Communications Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 17, 2023
- WID-SEC-2023-2679 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 17, 2023
- WID-SEC-2023-0132 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 1, 2023
- ALAS2023-2023-105 Important: bcel security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
- ALAS2-2023-1916 Important: bcel security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jan 20, 2023
- ELSA-2023-0005 Important: bcel security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jan 3, 2023
- ELSA-2022-8958 Important: bcel security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Dec 14, 2022
References
- https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4
- [oss-security] 20221107 Re: CVE-2022-42920: Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing mailing-list
- FEDORA-2022-01a56f581c vendor-advisory
- FEDORA-2022-0e358addb8 vendor-advisory
- FEDORA-2022-f60a52e054 vendor-advisory
- GLSA-202401-25 vendor-advisory