CVE-2022-42920
publishedApache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Commons BCELApache Commons BCEL to < 6.6.0 | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-1916 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-105 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | bcel | Advisory build | 6.4.1-9.el9_1 | ALSA-2023:0005 |
| Oracle Linux | 7 | bcelaarch64 | Advisory build | 0:5.2-19.el7_9 | ELSA-2022-8958 |
| Red Hat Enterprise Linux | RHEL-7 | bcelnoarch | Advisory build | 5.2-19.el7_9 | RHSA-2022:8958 |
| SUSE / openSUSE | SLE-12-SP5 | bcelnoarch | Advisory build | 5.2-28.3.1 | SUSE-SU-2022:4331-1 |
| Ubuntu | bionic | bcel | Advisory build | 6.2-1ubuntu0.1~esm1 | USN-7208-1 |
Show 43 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | bcelnoarch | Listed in advisory | Not stated | ALAS2-2023-1916 |
| Rocky Linux | 9 | bcelnoarch | Listed in advisory | Not stated | RLSA-2023:0005 |
| Oracle Linux | 7 | bcelx86_64 | Advisory build | 0:5.2-19.el7_9 | ELSA-2022-8958 |
| Oracle Linux | 7 | bcel-javadocaarch64 | Advisory build | 0:5.2-19.el7_9 | ELSA-2022-8958 |
| Oracle Linux | 7 | bcel-javadocx86_64 | Advisory build | 0:5.2-19.el7_9 | ELSA-2022-8958 |
| Oracle Linux | 9 | bcelaarch64 | Advisory build | 0:6.4.1-9.el9_1 | ELSA-2023-0005 |
| Oracle Linux | 9 | bcelx86_64 | Advisory build | 0:6.4.1-9.el9_1 | ELSA-2023-0005 |
| Red Hat Enterprise Linux | RHEL-7 | bcelsrc | Advisory build | 5.2-19.el7_9 | RHSA-2022:8958 |
| Red Hat Enterprise Linux | RHEL-7 | bcel-javadocnoarch | Advisory build | 5.2-19.el7_9 | RHSA-2022:8958 |
| Red Hat Enterprise Linux | RHEL-7 | rh-maven36-bcelnoarch | Advisory build | 6.3.1-2.3.el7 | RHSA-2022:8959 |
| Red Hat Enterprise Linux | RHEL-7 | rh-maven36-bcelsrc | Advisory build | 6.3.1-2.3.el7 | RHSA-2022:8959 |
| Red Hat Enterprise Linux | RHEL-7 | rh-maven36-bcel-javadocnoarch | Advisory build | 6.3.1-2.3.el7 | RHSA-2022:8959 |
| Red Hat Enterprise Linux | RHEL-9 | bcelnoarch | Advisory build | 6.4.1-9.el9_0 | RHSA-2023:0004 |
| Red Hat Enterprise Linux | RHEL-9 | bcelnoarch | Advisory build | 6.4.1-9.el9_1 | RHSA-2023:0005 |
| Red Hat Enterprise Linux | RHEL-9 | bcelsrc | Advisory build | 6.4.1-9.el9_0 | RHSA-2023:0004 |
| Red Hat Enterprise Linux | RHEL-9 | bcelsrc | Advisory build | 6.4.1-9.el9_1 | RHSA-2023:0005 |
| SUSE / openSUSE | SLE-15-SP3 | bcelnoarch | Advisory build | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| SUSE / openSUSE | SLE-15-SP4 | bcelnoarch | Advisory build | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | bcelnoarch | Advisory build | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | bcelnoarch | Advisory build | 5.2-150200.11.3.1 | SUSE-SU-2022:4306-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcelaarch64 | Advisory build | 5.2-37.1 | OPENSUSE-SU-2024:12530-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcelppc64le | Advisory build | 5.2-37.1 | OPENSUSE-SU-2024:12530-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcels390x | Advisory build | 5.2-37.1 | OPENSUSE-SU-2024:12530-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcelx86_64 | Advisory build | 5.2-37.1 | OPENSUSE-SU-2024:12530-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3aarch64 | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3ppc64le | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3s390x | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3x86_64 | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3-javadocaarch64 | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3-javadocppc64le | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3-javadocs390x | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bcel5_3-javadocx86_64 | Advisory build | 5.3-21.1 | OPENSUSE-SU-2024:12498-1 |
| Ubuntu | bionic | libbcel-java | Advisory build | 6.2-1ubuntu0.1~esm1 | USN-7208-1 |
| Ubuntu | focal | bcel | Advisory build | 6.4.1-1ubuntu0.1~esm1 | USN-7208-1 |
| Ubuntu | focal | libbcel-java | Advisory build | 6.4.1-1ubuntu0.1~esm1 | USN-7208-1 |
| Ubuntu | jammy | bcel | Advisory build | 6.5.0-1ubuntu0.1 | USN-7208-1 |
| Ubuntu | jammy | libbcel-java | Advisory build | 6.5.0-1ubuntu0.1 | USN-7208-1 |
| Ubuntu | xenial | bcel | Advisory build | 6.0~rc3-2ubuntu1+esm1 | USN-7208-1 |
| Ubuntu | xenial | libbcel-java | Advisory build | 6.0~rc3-2ubuntu1+esm1 | USN-7208-1 |
| Amazon Linux | AL2 | bcelsrc | Listed in advisory | Not stated | ALAS2-2023-1916 |
| Amazon Linux | AL2023 | bcelnoarch | Listed in advisory | Not stated | ALAS2023-2023-105 |
| Amazon Linux | AL2023 | bcelsrc | Listed in advisory | Not stated | ALAS2023-2023-105 |
| Rocky Linux | 9 | bcelsrc | Listed in advisory | Not stated | RLSA-2023:0005 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Commons BCEL | Apache Commons BCEL to < 6.6.0 (affected · custom) | apache · cna |
Weaknesses
1- CWE-787 CWE-787 Out-of-bounds Write
References
6- [oss-security] 20221107 Re: CVE-2022-42920: Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing http://www.openwall.com/lists/oss-security/2022/11/07/2
- https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4
- FEDORA-2022-01a56f581c https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/
- FEDORA-2022-f60a52e054 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/
- FEDORA-2022-0e358addb8 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/
- GLSA-202401-25 https://security.gentoo.org/glsa/202401-25
Provider assertions
2apache · cna
Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8a62225c9b473cac236a9aa4267c885ce480bb813b63f491fa8d204d0612a4ad
- Ingested
- 23 Sep 2026, 08:02:53 UTC
- Source record
- Official CVE record