{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.bcel:bcel. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-42920 in the wild and no public exploit code.","fix":"Upgrade org.apache.bcel:bcel to 6.6.0 or later.","what":"CVE-2022-42920 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 7 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-42920 and fix it if it is affected.\n\nWhat it is: CVE-2022-42920 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 7 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-42920 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.bcel:bcel (Maven): affected all versions; fixed in 6.6.0\n- org.apache.bcel:bcel (Maven): affected all versions; fixed in 6.6.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-42920/ (Markdown: https://insights.sbomify.com/CVE-2022-42920/index.md)","id":"CVE-2022-42920","markdown":"https://insights.sbomify.com/CVE-2022-42920/index.md","name":"CVE-2022-42920","record":{"aliases":["ALSA-2023:0005","AZL-109475","DEBIAN-CVE-2022-42920","GHSA-97xg-phpr-rg8q","RHSA-2022:8958","RHSA-2022:8959","RHSA-2023:0004","RHSA-2023:0005","RLSA-2023:0005","SUSE-SU-2022:4306-1","SUSE-SU-2022:4331-1","UBUNTU-CVE-2022-42920","USN-7208-1","openSUSE-SU-2024:12498-1","openSUSE-SU-2024:12530-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java bytecode library","requires_auth":"none","summary":"An out-of-bounds write in Apache Commons BCEL allows attackers to produce arbitrary bytecode, potentially leading to code execution in applications processing untrusted data.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"commons_bcel","vendor":"apache"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"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.","ecosystems":["AlmaLinux:9","Maven","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_software_collections:3::el7","Rocky Linux:9","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing","id":"CVE-2022-42920","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"memory_corruption","year":"2022"},"n_packages":23,"n_references":6,"next":{"headline":"SQL injection in Forma LMS","id":"CVE-2022-42923"},"packages":[{"ecosystem":"Maven","fixed":["6.6.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.bcel:bcel","purl":null,"source":"GHSA-97xg-phpr-rg8q"},{"ecosystem":"Maven","fixed":["6.6.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.bcel:bcel","purl":"pkg:maven/org.apache.bcel/bcel","source":"GHSA-97xg-phpr-rg8q"},{"ecosystem":"AlmaLinux:9","fixed":["6.4.1-9.el9_1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/almalinux/bcel","source":"ALSA-2023:0005"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/redhat/bcel","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel-javadoc","purl":"pkg:rpm/redhat/bcel-javadoc","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/redhat/bcel","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel-javadoc","purl":"pkg:rpm/redhat/bcel-javadoc","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/redhat/bcel","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel-javadoc","purl":"pkg:rpm/redhat/bcel-javadoc","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/redhat/bcel","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2-19.el7_9"],"introduced":["0"],"last_affected":[],"package":"bcel-javadoc","purl":"pkg:rpm/redhat/bcel-javadoc","source":"RHSA-2022:8958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.4.1-9.el9_1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/redhat/bcel","source":"RHSA-2023:0005"},{"ecosystem":"Red Hat:rhel_eus:9.0::appstream","fixed":["0:6.4.1-9.el9_0"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/redhat/bcel","source":"RHSA-2023:0004"},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","fixed":["0:6.3.1-2.3.el7"],"introduced":["0"],"last_affected":[],"package":"rh-maven36-bcel","purl":"pkg:rpm/redhat/rh-maven36-bcel","source":"RHSA-2022:8959"},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","fixed":["0:6.3.1-2.3.el7"],"introduced":["0"],"last_affected":[],"package":"rh-maven36-bcel-javadoc","purl":"pkg:rpm/redhat/rh-maven36-bcel-javadoc","source":"RHSA-2022:8959"},{"ecosystem":"Rocky Linux:9","fixed":["0:6.4.1-9.el9_1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/rocky-linux/bcel?distro=rocky-linux-9-aarch64\u0026epoch=0","source":"RLSA-2023:0005"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["5.2-150200.11.3.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/suse/bcel\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:4306-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["5.2-150200.11.3.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/suse/bcel\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2022:4306-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["5.2-28.3.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/suse/bcel\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2022:4331-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["5.2-28.3.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/suse/bcel\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2022:4331-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["5.2-150200.11.3.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/opensuse/bcel\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:4306-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["5.2-150200.11.3.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/opensuse/bcel\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:4306-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.2-37.1"],"introduced":["0"],"last_affected":[],"package":"bcel","purl":"pkg:rpm/opensuse/bcel\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12530-1"}],"prev":{"headline":"Deserialization in n/a","id":"CVE-2022-42919"},"products":["Apache Commons BCEL"],"published":"2022-11-07","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Apache Software Foundation"]},"summary":"An out-of-bounds write in Apache Commons BCEL allows attackers to produce arbitrary bytecode, potentially leading to code execution in applications processing untrusted data.","url":"https://insights.sbomify.com/CVE-2022-42920/"}