{"id":"CVE-2022-42920","summary":"Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","details":"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.","aliases":["GHSA-97xg-phpr-rg8q"],"modified":"2026-08-12T03:51:19.903448336Z","published":"2022-11-07T00:00:00Z","related":["ALSA-2023:0005","SUSE-SU-2022:4306-1","SUSE-SU-2022:4331-1","openSUSE-SU-2024:12498-1","openSUSE-SU-2024:12530-1"],"database_specific":{"cna_assigner":"apache","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42920.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"Apache Commons BCEL"},{"fixed":"6.6.0"}]}]},"references":[{"type":"WEB","url":"https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42920.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42920"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202401-25"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/11/07/2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/commons-bcel","events":[{"introduced":"0"},{"fixed":"cf520ef45064c8fa4f43717ecc789d5a4f6b0d57"}],"database_specific":{"cpe":"cpe:2.3:a:apache:commons_bcel:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"6.6.0"}],"source":"CPE_RANGE"}}],"versions":["commons-bcel-6.6.0-RC1","rel/commons-bcel-6.5.0","commons-bcel-6.5.0-RC1","rel/commons-bcel-6.4.1","commons-bcel-6.4.1-RC1","rel/commons-bcel-6.4.0","commons-bcel-6.4.0-RC2","commons-bcel-6.4.0-RC1","commons-bcel-6.3.1","commons-bcel-6.3.1-RC1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42920.json"}}],"schema_version":"1.9.0"}