CVE-2022-42920

published 7 Nov 2022 · updated 3 Aug 2024

Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing

5.0MediumEPSS 4%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 4%. Fixed in 6.6.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Apache Software Foundation>=Apache Commons BCEL <6.6.06.6.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-42920 severity on Zeptric[![CVE-2022-42920](https://zeptric.io/badge/cve/CVE-2022-42920.svg)](https://zeptric.io/cve/CVE-2022-42920)