VDB

CVE-2025-8058

CVE-2025-8058 PUBLISHED CVSS 5.9 MEDIUM

Reported by glibc · Published July 23, 2025

The regcomp function in the GNU C library version from 2.4 to 2.41 is subject to a double free if some previous allocation fails. It can be accomplished either by a malloc failure or by using an interposed malloc that injects random malloc failures. The double free can allow buffer manipulation depending of how the regex is constructed. This issue affects all architectures and ABIs supported by the GNU C library.

Fixed versions

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

PackageEcosystemFixed in
glibc-langpack-msAmazon Linux2.34-231.amzn2023.0.1, 2.26-64.amzn2.0.5
glibc-langpack-ocAmazon Linux2.34-231.amzn2023.0.1
glibc-locale-sourceAmazon Linux2.34-231.amzn2023.0.1, 2.26-64.amzn2.0.5
glibc-langpack-huAmazon Linux2.34-231.amzn2023.0.1, 2.26-64.amzn2.0.5
glibc-langpack-quzAmazon Linux2.34-231.amzn2023.0.1
glibc-langpack-omAmazon Linux2.26-64.amzn2.0.5
glibc-langpack-anpAmazon Linux2.26-64.amzn2.0.5
glibc-langpack-cyAmazon Linux2.34-231.amzn2023.0.1, 2.26-64.amzn2.0.5
glibc-langpack-hiAmazon Linux2.34-231.amzn2023.0.1
glibc-langpack-skAmazon Linux2.34-231.amzn2023.0.1
glibc-langpack-aaAmazon Linux2.26-64.amzn2.0.5
glibc-langpack-tiAmazon Linux2.26-64.amzn2.0.5

71 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
5.9
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

Affected products

VendorProductVersions
The GNU C Libraryglibc2.4
amazon:2023glibc-langpack-ms0
amazon:2023glibc-langpack-oc0
amazon:2023glibc-locale-source0
amazon:2glibc-langpack-hu0
amazon:2023glibc-langpack-quz0
amazon:2glibc-langpack-om0
amazon:2glibc-langpack-anp0
amazon:2023glibc-langpack-cy0
amazon:2023glibc-langpack-hi0
amazon:2023glibc-langpack-sk0
amazon:2glibc-langpack-aa0
amazon:2glibc-langpack-ti0
amazon:2023glibc-langpack-agr0
amazon:2023glibc-langpack-xh0
amazon:2glibc-langpack-bem0
amazon:2023glibc-langpack-fo0
amazon:2023glibc-langpack-pl0
amazon:2glibc-langpack-lo0
amazon:2023glibc-langpack-hy0

…and 401 more

Timeline

  • Jul 23, 2025 CVE Published
  • Jul 24, 2025 EPSS Score (30 in total, the first dated here)
  • Nov 4, 2025 CVE Updated
  • Dec 9, 2025 PoC Published (3 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (15 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Oct 10, 2026 Distribution Patch (10 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-8058
vulnetix vdb fixes CVE-2025-8058

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-2025-8058/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 ›