Skip to main content
VulnerabilityPublished Updated

CVE-2025-8058: Glibc · The regcomp function in the GNU C library version from 2.4 to 2.41 is subject to a double free

Affects glibcSource GCVE Database

0
Compare
Authoritative record:CVE-2025-8058· Medium 5.9

Not known to be exploited · CVSS 5.9 Medium : upgrade to 2.39 when convenient.

Data as of 18 Nov 2026, 17:49 UTC

CVSS 4.0 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (glibc)CVSS 4.05.9
Patch
Available – fixed in 2.39
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.

What to do

Upgrade glibc to 2.39.

Affected software

ProductAffectedFixed in
Homebrewglibcpkg:brew/glibcOther threatsAffected
  • <2.39
Fixed in
  • 2.39

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…