Vulnerabilities / CVE-2022-42920

critical

CVE-2022-42920

Apache-Commons-BCEL: arbitrary bytecode produced via out-of-bounds writing

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

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

SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.bcel:bcel6.6.0
alma 9bcel6.4.1-9.el9_1
amazon linux 1bcel, bcel-javadoc, bcel-manual5.2-7.2.10.amzn1
amazon linux 2bcel, bcel-javadoc5.2-18.amzn2.0.1
amazon linux 2022bcel, bcel-javadoc6.5.0-3.amzn2022.0.1
amazon linux 2023bcel, bcel-javadoc6.5.0-3.amzn2023.0.2
debian 10bcel6.2-1+deb10u1
debian 11bcel6.5.0-1+deb11u1
debian 12bcel6.5.0-2
debian 13bcel6.5.0-2
debian 14bcel6.5.0-2
echobcel6.5.0-2
Show all 27 entries from 21 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.bcel:bcel6.6.0
alma 9bcel6.4.1-9.el9_1
amazon linux 1bcel5.2-7.2.10.amzn1
amazon linux 1bcel-javadoc5.2-7.2.10.amzn1
amazon linux 1bcel-manual5.2-7.2.10.amzn1
amazon linux 2bcel5.2-18.amzn2.0.1
amazon linux 2bcel-javadoc5.2-18.amzn2.0.1
amazon linux 2022bcel6.5.0-3.amzn2022.0.1
amazon linux 2022bcel-javadoc6.5.0-3.amzn2022.0.1
amazon linux 2023bcel6.5.0-3.amzn2023.0.2
amazon linux 2023bcel-javadoc6.5.0-3.amzn2023.0.2
debian 10bcel6.2-1+deb10u1
debian 11bcel6.5.0-1+deb11u1
debian 12bcel6.5.0-2
debian 13bcel6.5.0-2
debian 14bcel6.5.0-2
echobcel6.5.0-2
Oracle Linux 7bcel5.2-19.el7_9
Oracle Linux 7bcel-javadoc5.2-19.el7_9
Oracle Linux 9bcel6.4.1-9.el9_1
rapidfort Oracle Linux 9bcel0:6.4.1-9.el9_1
Red Hatapache-bcelno fix listed
rocky 9bcel6.4.1-9.el9_1
ubuntu 16.04-ESMbcel6.0~rc3-2ubuntu1+esm1
ubuntu 18.04-ESMbcel6.2-1ubuntu0.1~esm1
ubuntu 20.04-ESMbcel6.4.1-1ubuntu0.1~esm1
ubuntu 22.04bcel6.5.0-1ubuntu0.1

References

All 28 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.