Buffer overflow in Apache Commons Bcel
CVE-2022-42920
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.035, 89.4th percentile (last changed ); up from 0.028 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.028 · newest: 0.035 · change: +0.007
Affected products
- Apache Commons Bcel
- Apache Software Foundation Commons Bcel — versions Apache Commons BCEL
- Fedoraproject Fedora — versions 35, 36, 37
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, binkley/modern-java-practices). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4 (Mailing List, Vendor Advisory)
- [oss-security] 20221107 Re: CVE-2022-42920: Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing (mailing-list, Mailing List, Third Party Advisory)
- FEDORA-2022-01a56f581c (vendor-advisory)
- FEDORA-2022-0e358addb8 (vendor-advisory)
- FEDORA-2022-f60a52e054 (vendor-advisory)
- GLSA-202401-25 (vendor-advisory)