VDB

CVE-2022-42920

CVE-2022-42920 PUBLISHED CVSS 9.800000190734863 CRITICAL

Apache Commons BCEL vulnerable to out-of-bounds write

Reported by apache · Published November 7, 2022

bcel is fixed in 6.6.0 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.apache.bcel:bcelMaven Central6.6.0
bcelAmazon Linux6.5.0-3.amzn2023.0.2, 5.2-18.amzn2.0.1
bcel-javadocAmazon Linux6.5.0-3.amzn2023.0.2, 5.2-18.amzn2.0.1
commons_bcelapache6.6.0
Apache Commons BCELApache Software Foundation6.6.0

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
Apache Software FoundationApache Commons BCELApache Commons BCEL
amazon:2023bcel0
amazon:2023bcel-javadoc0
amazon:2bcel-javadoc0
Apache Software FoundationApache Commons BCEL*
amazon:2bcel0
Mavenorg.apache.bcel:bcel0

Timeline

  • Nov 6, 2022 CVE Published
  • Nov 8, 2022 EPSS Score (30 in total, the first dated here)
  • Feb 13, 2025 PoC Published (2 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (14 in total, the first dated here)
  • Jun 14, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (11 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-42920
vulnetix vdb fixes CVE-2022-42920

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-42920/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›