CVE-2022-42920
Apache-Commons-BCEL: arbitrary bytecode produced via out-of-bounds writing
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), AlmaLinux (high), Amazon (high), Oracle (high), Rocky Linux (high), Ubuntu (medium).
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.bcel:bcel | 6.6.0 |
| alma 9 | bcel | 6.4.1-9.el9_1 |
| amazon linux 1 | bcel, bcel-javadoc, bcel-manual | 5.2-7.2.10.amzn1 |
| amazon linux 2 | bcel, bcel-javadoc | 5.2-18.amzn2.0.1 |
| amazon linux 2022 | bcel, bcel-javadoc | 6.5.0-3.amzn2022.0.1 |
| amazon linux 2023 | bcel, bcel-javadoc | 6.5.0-3.amzn2023.0.2 |
| debian 10 | bcel | 6.2-1+deb10u1 |
| debian 11 | bcel | 6.5.0-1+deb11u1 |
| debian 12 | bcel | 6.5.0-2 |
| debian 13 | bcel | 6.5.0-2 |
| debian 14 | bcel | 6.5.0-2 |
| echo | bcel | 6.5.0-2 |
Show all 27 entries from 21 sources
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.bcel:bcel | 6.6.0 |
| alma 9 | bcel | 6.4.1-9.el9_1 |
| amazon linux 1 | bcel | 5.2-7.2.10.amzn1 |
| amazon linux 1 | bcel-javadoc | 5.2-7.2.10.amzn1 |
| amazon linux 1 | bcel-manual | 5.2-7.2.10.amzn1 |
| amazon linux 2 | bcel | 5.2-18.amzn2.0.1 |
| amazon linux 2 | bcel-javadoc | 5.2-18.amzn2.0.1 |
| amazon linux 2022 | bcel | 6.5.0-3.amzn2022.0.1 |
| amazon linux 2022 | bcel-javadoc | 6.5.0-3.amzn2022.0.1 |
| amazon linux 2023 | bcel | 6.5.0-3.amzn2023.0.2 |
| amazon linux 2023 | bcel-javadoc | 6.5.0-3.amzn2023.0.2 |
| debian 10 | bcel | 6.2-1+deb10u1 |
| debian 11 | bcel | 6.5.0-1+deb11u1 |
| debian 12 | bcel | 6.5.0-2 |
| debian 13 | bcel | 6.5.0-2 |
| debian 14 | bcel | 6.5.0-2 |
| echo | bcel | 6.5.0-2 |
| Oracle Linux 7 | bcel | 5.2-19.el7_9 |
| Oracle Linux 7 | bcel-javadoc | 5.2-19.el7_9 |
| Oracle Linux 9 | bcel | 6.4.1-9.el9_1 |
| rapidfort Oracle Linux 9 | bcel | 0:6.4.1-9.el9_1 |
| Red Hat | apache-bcel | no fix listed |
| rocky 9 | bcel | 6.4.1-9.el9_1 |
| ubuntu 16.04-ESM | bcel | 6.0~rc3-2ubuntu1+esm1 |
| ubuntu 18.04-ESM | bcel | 6.2-1ubuntu0.1~esm1 |
| ubuntu 20.04-ESM | bcel | 6.4.1-1ubuntu0.1~esm1 |
| ubuntu 22.04 | bcel | 6.5.0-1ubuntu0.1 |
References
- http://www.openwall.com/lists/oss-security/2022/11/07/2
- https://access.redhat.com/errata/RHSA-2023:0005
- https://access.redhat.com/security/cve/CVE-2022-42920
- https://bugzilla.redhat.com/2142707
- https://bugzilla.redhat.com/show_bug.cgi?id=2142707
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-42920
- https://errata.almalinux.org/9/ALSA-2023-0005.html
All 28 references
- https://errata.rockylinux.org/RLSA-2023:0005
- https://github.com/apache/commons-bcel
- https://github.com/apache/commons-bcel/commit/f3267cbcc900f80851d561bdd16b239d936947f5
- https://github.com/apache/commons-bcel/pull/147
- https://issues.apache.org/jira/browse/BCEL-363
- https://linux.oracle.com/cve/CVE-2022-42920.html
- https://linux.oracle.com/errata/ELSA-2023-0005.html
- https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/
- https://nvd.nist.gov/vuln/detail/CVE-2022-42920
- https://security.gentoo.org/glsa/202401-25
- https://ubuntu.com/security/notices/USN-7208-1
- https://www.cve.org/CVERecord?id=CVE-2022-42920
- https://www.openwall.com/lists/oss-security/2022/11/04/6
- https://www.openwall.com/lists/oss-security/2022/11/04/8