{"answers":{"affected":"3 open source packages ship an affected version, including java, java-min and jre. It affects 20 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6021 exists.","fix":"Upgrade java to a fixed version for your release line: 1.8.0 or 8.0.481.","what":"CVE-2025-6021 is a high-severity vulnerability in Redhat Enterprise Linux, published on 12 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-6021 and fix it if it is affected.\n\nWhat it is: CVE-2025-6021 is a high-severity vulnerability in Redhat Enterprise Linux, published on 12 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6021 exists.\n\nAffected packages and fixed versions:\n- java (Bitnami): affected all versions; fixed in 1.8.0, 8.0.481\n- java-min (Bitnami): affected all versions; fixed in 1.8.0, 8.0.481\n- jre (Bitnami): affected all versions; fixed in 1.8.0, 8.0.481\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-2025-6021/ (Markdown: https://insights.sbomify.com/CVE-2025-6021/index.md)","id":"CVE-2025-6021","markdown":"https://insights.sbomify.com/CVE-2025-6021/index.md","name":"CVE-2025-6021","record":{"aliases":["ALPINE-CVE-2025-6021","AZL-64101","AZL-64124","BELL-CVE-2025-6021","BIT-java-2025-6021","BIT-java-min-2025-6021","BIT-jre-2025-6021","CLSA-2025-1752747463","CLSA-2025-1757015069","CLSA-2025-1757015164","CLSA-2025-1757522880","CLSA-2025-1759332050","CLSA-2025-1759336759","DEBIAN-CVE-2025-6021","ECHO-48b5-0c84-55da","GHSA-32vr-5hxf-x93f","JLSEC-2025-196","MINI-cfgm-mrw2-qcq3","OESA-2025-1701","OESA-2025-1702","OESA-2025-1703","OESA-2025-1704","OESA-2025-1716","UBUNTU-CVE-2025-6021"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"XML parsing library","requires_auth":"none","summary":"Integer overflow in libxml2's xmlBuildQName function causes stack buffer overflow, allowing attackers to execute code or crash applications via crafted input.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems_eus","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian_eus","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"in-vehicle_operating_system","vendor":"redhat"},{"product":"jboss_core_services","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"},{"product":"openshift_container_platform_for_arm64","vendor":"redhat"},{"product":"openshift_container_platform_for_ibm_z","vendor":"redhat"},{"product":"openshift_container_platform_for_linuxone","vendor":"redhat"},{"product":"openshift_container_platform_for_power","vendor":"redhat"},{"product":"libxml2","vendor":"xmlsoft"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2","id":"CVE-2025-6021","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"redhat:enterprise_linux","products":["redhat:enterprise_linux","redhat:enterprise_linux_eus","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_ibm_z_systems_eus","redhat:enterprise_linux_for_power_little_endian","redhat:enterprise_linux_for_power_little_endian_eus","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","redhat:enterprise_linux_server_tus","redhat:openshift_container_platform","xmlsoft:libxml2"],"type":"integer_overflow","year":"2025"},"n_packages":3,"n_references":26,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2025-6022"},"packages":[{"ecosystem":"Bitnami","fixed":["1.8.0","8.0.481"],"introduced":["0","1.9.0"],"last_affected":[],"package":"java","purl":"pkg:bitnami/java","source":"BIT-java-2025-6021"},{"ecosystem":"Bitnami","fixed":["1.8.0","8.0.481"],"introduced":["0","1.9.0"],"last_affected":[],"package":"java-min","purl":"pkg:bitnami/java-min","source":"BIT-java-min-2025-6021"},{"ecosystem":"Bitnami","fixed":["1.8.0","8.0.481"],"introduced":["0","1.9.0"],"last_affected":[],"package":"jre","purl":"pkg:bitnami/jre","source":"BIT-jre-2025-6021"}],"prev":{"headline":"Linux-pam: linux-pam directory traversal","id":"CVE-2025-6020"},"products":["Red Hat Discovery 2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7 Extended Lifecycle Support","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.2 Advanced Update Support","Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On","Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.6 Telecommunications Update Service","Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.8 Telecommunications Update Service","Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.4 Extended Update Support","Red Hat Hardened Images","Red Hat Insights proxy 1.5","Red Hat JBoss Core Services 2.4.62.SP2","Red Hat OpenShift Container Platform 4.12","Red Hat OpenShift Container Platform 4.13","Red Hat OpenShift Container Platform 4.14","Red Hat OpenShift Container Platform 4.15","Red Hat OpenShift Container Platform 4.16","Red Hat OpenShift Container Platform 4.17","Red Hat OpenShift Container Platform 4.18","Red Hat OpenShift Container Platform 4.19"],"published":"2025-06-12","related":[{"cvss_score":9.8,"headline":"Red Hat JBoss RichFaces Framework Expression Language Injection","id":"CVE-2018-14667","kev_date_added":"2023-09-28","published":"2018-11-06"},{"cvss_score":9.8,"headline":"Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit","id":"CVE-2021-20325","kev_date_added":null,"published":"2022-02-18"},{"cvss_score":9.8,"headline":"Memory corruption in libwebp","id":"CVE-2018-25011","kev_date_added":null,"published":"2021-05-21"},{"cvss_score":9.8,"headline":"Other in libwebp","id":"CVE-2018-25014","kev_date_added":null,"published":"2021-05-21"},{"cvss_score":9.8,"headline":"Supply chain in redhat-upgrade-tool","id":"CVE-2014-3585","kev_date_added":null,"published":"2019-11-22"},{"cvss_score":9.3,"headline":"Squid: request/response smuggling in http/1.1 and icap","id":"CVE-2023-46846","kev_date_added":null,"published":"2023-11-03"},{"cvss_score":9.1,"headline":"Memory corruption in libwebp","id":"CVE-2018-25009","kev_date_added":null,"published":"2021-05-21"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-12","vendors":["Red Hat"]},"summary":"Integer overflow in libxml2's xmlBuildQName function causes stack buffer overflow, allowing attackers to execute code or crash applications via crafted input.","url":"https://insights.sbomify.com/CVE-2025-6021/"}