{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-8058 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-8058 is a medium-severity use after free vulnerability in The GNU C Library glibc, published on 23 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-8058 and fix it if it is affected.\n\nWhat it is: CVE-2025-8058 is a medium-severity use after free vulnerability in The GNU C Library glibc, published on 23 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-8058 in the wild and no public exploit code.\n\nAffected product: The GNU C Library glibc. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-8058/ (Markdown: https://insights.sbomify.com/CVE-2025-8058/index.md)","id":"CVE-2025-8058","markdown":"https://insights.sbomify.com/CVE-2025-8058/index.md","name":"CVE-2025-8058","record":{"aliases":["ALSA-2025:12980","ALSA-2025:13240","AZL-68609","BELL-CVE-2025-8058","CLSA-2025-1755005189","CLSA-2025-1755007232","CLSA-2025-1756930773","DEBIAN-CVE-2025-8058","ECHO-086f-bae8-9025","GHSA-8xjp-c72j-67q8","MGASA-2025-0220","MINI-97x6-gw34-4w84","MINI-j2q3-3cmf-f92w","MINI-rpf9-4p9f-qx57","OESA-2025-2043","OESA-2025-2044","OESA-2025-2045","OESA-2025-2046","OESA-2025-2047","OESA-2025-2064","RHSA-2025:12748","RHSA-2025:12980","RHSA-2025:13240","RLSA-2025:12748","RLSA-2025:12980","RLSA-2025:13240","SUSE-SU-2025:02964-1","UBUNTU-CVE-2025-8058","USN-7760-1","openSUSE-SU-2025:15459-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU C library","requires_auth":"low_privilege","summary":"A double free vulnerability in glibc's regcomp function allows attackers to manipulate buffers and potentially execute code via crafted regex inputs.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"glibc","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:H","version":"4.0"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"description":"The regcomp function in the GNU C library version from 2.4 to 2.41 is \nsubject to a double free if some previous allocation fails. It can be \naccomplished either by a malloc failure or by using an interposed malloc\n that injects random malloc failures. The double free can allow buffer \nmanipulation depending of how the regex is constructed. This issue \naffects all architectures and ABIs supported by the GNU C library.","ecosystems":["AlmaLinux:10","AlmaLinux:8","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP7","openSUSE:Leap 15.6","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":"Use after free in glibc","id":"CVE-2025-8058","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2025"},"n_packages":947,"n_references":2,"next":{"headline":"B Blocks \u003c= 2.0.6 - Missing Authorization to Unauthenticated Privilege Escalation via rgfr_registration Function","id":"CVE-2025-8059"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["2.39-46.el10_0.alma.1"],"introduced":["0"],"last_affected":[],"package":"glibc-doc","purl":"pkg:rpm/almalinux/glibc-doc","source":"ALSA-2025:13240"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"compat-libpthread-nonshared","purl":"pkg:rpm/almalinux/compat-libpthread-nonshared","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc","purl":"pkg:rpm/almalinux/glibc","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-all-langpacks","purl":"pkg:rpm/almalinux/glibc-all-langpacks","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-benchtests","purl":"pkg:rpm/almalinux/glibc-benchtests","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-common","purl":"pkg:rpm/almalinux/glibc-common","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-devel","purl":"pkg:rpm/almalinux/glibc-devel","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-doc","purl":"pkg:rpm/almalinux/glibc-doc","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-gconv-extra","purl":"pkg:rpm/almalinux/glibc-gconv-extra","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-headers","purl":"pkg:rpm/almalinux/glibc-headers","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-aa","purl":"pkg:rpm/almalinux/glibc-langpack-aa","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-af","purl":"pkg:rpm/almalinux/glibc-langpack-af","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-agr","purl":"pkg:rpm/almalinux/glibc-langpack-agr","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ak","purl":"pkg:rpm/almalinux/glibc-langpack-ak","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-am","purl":"pkg:rpm/almalinux/glibc-langpack-am","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-an","purl":"pkg:rpm/almalinux/glibc-langpack-an","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-anp","purl":"pkg:rpm/almalinux/glibc-langpack-anp","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ar","purl":"pkg:rpm/almalinux/glibc-langpack-ar","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-as","purl":"pkg:rpm/almalinux/glibc-langpack-as","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ast","purl":"pkg:rpm/almalinux/glibc-langpack-ast","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ayc","purl":"pkg:rpm/almalinux/glibc-langpack-ayc","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-az","purl":"pkg:rpm/almalinux/glibc-langpack-az","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-be","purl":"pkg:rpm/almalinux/glibc-langpack-be","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bem","purl":"pkg:rpm/almalinux/glibc-langpack-bem","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ber","purl":"pkg:rpm/almalinux/glibc-langpack-ber","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bg","purl":"pkg:rpm/almalinux/glibc-langpack-bg","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bhb","purl":"pkg:rpm/almalinux/glibc-langpack-bhb","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bho","purl":"pkg:rpm/almalinux/glibc-langpack-bho","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bi","purl":"pkg:rpm/almalinux/glibc-langpack-bi","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bn","purl":"pkg:rpm/almalinux/glibc-langpack-bn","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bo","purl":"pkg:rpm/almalinux/glibc-langpack-bo","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-br","purl":"pkg:rpm/almalinux/glibc-langpack-br","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-brx","purl":"pkg:rpm/almalinux/glibc-langpack-brx","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-bs","purl":"pkg:rpm/almalinux/glibc-langpack-bs","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-byn","purl":"pkg:rpm/almalinux/glibc-langpack-byn","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ca","purl":"pkg:rpm/almalinux/glibc-langpack-ca","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-ce","purl":"pkg:rpm/almalinux/glibc-langpack-ce","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-chr","purl":"pkg:rpm/almalinux/glibc-langpack-chr","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-cmn","purl":"pkg:rpm/almalinux/glibc-langpack-cmn","source":"ALSA-2025:12980"},{"ecosystem":"AlmaLinux:8","fixed":["2.28-251.el8_10.25"],"introduced":["0"],"last_affected":[],"package":"glibc-langpack-crh","purl":"pkg:rpm/almalinux/glibc-langpack-crh","source":"ALSA-2025:12980"}],"prev":{"headline":"IDOR in Patika Global Technologies' HumanSuite","id":"CVE-2025-8057"},"products":["glibc"],"published":"2025-07-23","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["The GNU C Library"]},"summary":"A double free vulnerability in glibc's regcomp function allows attackers to manipulate buffers and potentially execute code via crafted regex inputs.","url":"https://insights.sbomify.com/CVE-2025-8058/"}