{"id":"CVE-2022-42920","state":"PUBLISHED","title":"Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","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.","publishedAt":"2022-11-07T00:00:00.000Z","updatedAt":"2024-08-03T13:19:05.457Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache Commons BCEL"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Commons BCEL","versions":[{"version":"Apache Commons BCEL","status":"affected","lessThan":"6.6.0","versionType":"custom"}]}],"references":["https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4","http://www.openwall.com/lists/oss-security/2022/11/07/2","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/","https://security.gentoo.org/glsa/202401-25"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T19:50:40.706Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/42xxx/CVE-2022-42920.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-42920","state":"PUBLISHED","datePublished":"2022-11-07T00:00:00.000Z","dateUpdated":"2024-08-03T13:19:05.457Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2022-10-14T00:00:00.000Z"},"containers":{"cna":{"title":"Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","descriptions":[{"lang":"en","value":"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":[{"vendor":"Apache Software Foundation","product":"Apache Commons BCEL","versions":[{"version":"Apache Commons BCEL","status":"affected","lessThan":"6.6.0","versionType":"custom"}]}],"references":[{"url":"https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4"},{"url":"http://www.openwall.com/lists/oss-security/2022/11/07/2","name":"[oss-security] 20221107 Re: CVE-2022-42920: Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/","name":"FEDORA-2022-01a56f581c","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/","name":"FEDORA-2022-0e358addb8","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/","name":"FEDORA-2022-f60a52e054","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202401-25","name":"GLSA-202401-25","tags":["vendor-advisory"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","type":"CWE","lang":"en","description":"CWE-787 Out-of-bounds Write"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2024-01-17T15:06:37.552Z"},"credits":[{"lang":"en","value":"Reported by Felix Wilhelm (Google); GitHub pull request to Apache Commons BCEL #147 by Richard Atkins (https://github.com/rjatkins); PR derived from OpenJDK (https://github.com/openjdk/jdk11u/) commit 13bf52c8d876528a43be7cb77a1f452d29a21492 by Aleksei Voitylov and RealCLanger (Christoph Langer https://github.com/RealCLanger)"}],"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"defect":["BCEL-363"],"discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/07/2","name":"[oss-security] 20221107 Re: CVE-2022-42920: Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","tags":["mailing-list","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4/","name":"FEDORA-2022-01a56f581c","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ/","name":"FEDORA-2022-0e358addb8","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD/","name":"FEDORA-2022-f60a52e054","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202401-25","name":"GLSA-202401-25","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T13:19:05.457Z"}}]}}}