cve.bz

CVE-2022-42920 Out-of-bounds Write

9.8 criticalEPSS 3.5%Fix available

Critical (9.8). EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.bcel:bcel 6.6.0.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-42920 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-42920?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-42920?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-42920 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Commons BCELfrom Apache Commons BCEL before 6.6.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-97xg-phpr-rg8qMavenorg.apache.bcel:bcel<6.6.06.6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14bcel6.5.0-2DEBIAN-CVE-2022-42920
Ubuntu22.04:LTSbcel6.5.0-1ubuntu0.1UBUNTU-CVE-2022-42920 USN-7208-1
UbuntuPro:16.04:LTSbcel6.0~rc3-2ubuntu1+esm1UBUNTU-CVE-2022-42920 USN-7208-1
UbuntuPro:18.04:LTSbcel6.2-1ubuntu0.1~esm1UBUNTU-CVE-2022-42920 USN-7208-1
UbuntuPro:20.04:LTSbcel6.4.1-1ubuntu0.1~esm1UBUNTU-CVE-2022-42920 USN-7208-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morebcel, bcel-javadoc0:5.2-19.el7_9RHSA-2022:8958
Red Hatenterprise_linux:9::appstreambcel0:6.4.1-9.el9_1RHSA-2023:0005
Red Hatrhel_eus:9.0::appstreambcel0:6.4.1-9.el9_0RHSA-2023:0004
Red Hatrhel_software_collections:3::el7rh-maven36-bcel, rh-maven36-bcel-javadoc0:6.3.1-2.3.el7RHSA-2022:8959
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Basesystem 15 SP4bcel5.2-150200.11.3.1SUSE-SU-2022:4306-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5bcel5.2-28.3.1SUSE-SU-2022:4331-1
openSUSELeap 15.3, Leap 15.4bcel5.2-150200.11.3.1SUSE-SU-2022:4306-1
openSUSETumbleweedbcel5.2-37.1openSUSE-SU-2024:12530-1
AlmaLinux9bcel6.4.1-9.el9_1ALSA-2023:0005
Rocky Linux9bcel0:6.4.1-9.el9_1RLSA-2023:0005
Azure Linux3bcelno fix listedAZL-109475

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Fuse 7 ships the code in question but does not utilize it in the product, so it is affected at a reduced impact of Moderate.

ProductPackageStateAdvisory
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-operator-bundle:1.0-30Fixed 2023-01-26RHSA-2023:0470
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-rhel8-operator:1.0-10Fixed 2023-01-26RHSA-2023:0470
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-web-container-rhel8:1.0-15Fixed 2023-01-26RHSA-2023:0470
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-web-executor-container-rhel8:1.0-14Fixed 2023-01-26RHSA-2023:0470
Migration Toolkit for Runtimes 1 on RHEL 8org.jboss.windup-windup-parentFixed 2023-01-26RHSA-2023:0471
MTA-6.0-RHEL-8mta/mta-ui-rhel8:6.0.1-10Fixed 2023-02-28RHSA-2023:0934
Red Hat AMQ Streams 2.7.0Fixed 2024-05-30RHSA-2024:3527
Red Hat Enterprise Linux 7bcel-0:5.2-19.el7_9Fixed 2022-12-13RHSA-2022:8958
Red Hat Enterprise Linux 9bcel-0:6.4.1-9.el9_1Fixed 2023-01-02RHSA-2023:0005
Red Hat Enterprise Linux 9.0 Extended Update Supportbcel-0:6.4.1-9.el9_0Fixed 2023-01-02RHSA-2023:0004
Migration Toolkit for Applications 6org.jboss.windup-windup-cli-parentAffected
Migration Toolkit for Runtimesorg.jboss.windup.plugin-windup-maven-pluginAffected
Migration Toolkit for Runtimesorg.jboss.windup.plugin-windup-maven-plugin-parentAffected
Migration Toolkit for Runtimesorg.jboss.windup.rules-windup-rulesetsAffected
Migration Toolkit for Runtimesorg.jboss.windup.rules-windup-rulesets-parentAffected
Migration Toolkit for Runtimesorg.jboss.windup.web-windup-web-parentAffected
Migration Toolkit for Runtimesorg.jboss.windup-windup-cli-parentAffected
Red Hat Data Grid 8apache-bcelNot affected
Red Hat Integration Camel K 1apache-bcelNot affected
Red Hat JBoss Data Grid 7apache-bcelOut of support scope
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-42920.

References

Check your stackJSON