{"id":"CVE-2022-42920","published":"2022-11-07T00:00:00Z","modified":"2024-08-03T13:19:05Z","title":"Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","vendor":"Apache","product":"Apache Commons BCEL","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03501,"percentile":0.89446,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/07/2","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202401-25","tags":["vendor-advisory"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":17.89}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Commons BCEL","versions":[">= Apache Commons BCEL, < 6.6.0"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.bcel:bcel","vulnerableRanges":["<6.6.0"],"patched":["6.6.0"],"from":["GHSA-97xg-phpr-rg8q"],"provenance":"source"}],"summary":{"text":"Apache Commons BCEL, prior to 6.6.0, has an out-of-bounds write flaw in several APIs that are meant only to change specific class characteristics, and these APIs can be misused to produce arbitrary bytecode.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:49Z"},"euvd":{"id":"EUVD-2022-7295","exploited":false,"provenance":"source"}}