← Vulnerability feed

Vulnerability record · CVE-2010-4052 · published 13 January 2011

CVE-2010-4052: glibc regcomp stack exhaustion via adjacent repetition operators

Gnu · Glibc

The regcomp implementation in GNU C Library (glibc) through 2.11.3 and 2.12.x through 2.12.2 consumes excessive stack when compiling a regular expression containing adjacent repetition operators, such as {10,}{10,}{10,}{10,}. A context-dependent attacker can trigger resource exhaustion and crash processes that compile attacker-influenced regexes, as demonstrated against ProFTPD.

5.0 CVSS 2.0 Medium EPSS 51% · top 1.1% CWE-399 · CWE-399
5.0CVSS 2.0 base score
51%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
22References, 10 tagged exploit
16 Jun 2026Last modified by NVD

Description

Stack consumption vulnerability in the regcomp implementation in the GNU C Library (aka glibc or libc6) through 2.11.3, and 2.12.x through 2.12.2, allows context-dependent attackers to cause a denial of service (resource exhaustion) via a regular expression containing adjacent repetition operators, as demonstrated by a {10,}{10,}{10,}{10,} sequence in the proftpd.gnu.c exploit for ProFTPD.

AV:N/AC:L/Au:N/C:N/I:N/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

medium priorityNetwork-reachable denial of service with public exploit code and high EPSS, but only availability impact and no KEV listing.

What it is

The regcomp implementation in GNU C Library (glibc) through 2.11.3 and 2.12.x through 2.12.2 consumes excessive stack when compiling a regular expression containing adjacent repetition operators, such as {10,}{10,}{10,}{10,}. A context-dependent attacker can trigger resource exhaustion and crash processes that compile attacker-influenced regexes, as demonstrated against ProFTPD.

Impact

An attacker can cause a denial of service by exhausting stack in the process that compiles the crafted regular expression, crashing or hanging that service. There is no confidentiality or integrity impact per the CVSS vector.

Attack surface

Reached over the network (AV:N) with no authentication (Au:N) and no user interaction, but only where an application passes attacker-controlled input into regcomp, such as a regex-based configuration or matching feature. The flaw is in the regex compiler, not in glibc's network stack itself.

Exploitation

Public exploit code exists, including the proftpd.gnu.c exploit and multiple Exploit-tagged references, and EPSS is high at roughly 0.51 (98.9th percentile), though the CVE is not listed in CISA KEV.

What to do

  • Upgrade glibc to a version newer than 2.11.3 / 2.12.2 that contains the regcomp fix, then restart affected services.
  • Where glibc cannot be updated immediately, avoid passing untrusted input into regcomp; validate or reject regexes containing adjacent repetition operators.
  • Apply vendor patches for downstream applications such as ProFTPD that expose regex compilation to remote input.
  • Limit exposure of services that compile user-supplied regexes and monitor them for repeated crashes or restarts.

Detection

  • Monitor for abnormal process crashes, restarts or stack-exhaustion signals in services that compile regular expressions, especially ProFTPD.
  • Alert on regex input containing repeated adjacent repetition operators such as {10,}{10,} in request or configuration logs.
  • Track glibc versions across hosts and flag systems still running 2.11.3 or 2.12.x through 2.12.2.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2010-4052 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

7.8CVE-2023-4911GNU C Library ld.so GLIBC_TUNABLES heap buffer overflowThe GNU C Library dynamic loader ld.so mishandles the GLIBC_TUNABLES environment variable, causing a heap-based buffer overflow and out-of-bounds wri…KEVEPSS 81%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed9.8CVE-2026-5450Gnu glibc heap-based buffer overflow vulnerabilityCalling the scanf family of functions with a %mc (malloc'd character match) in the GNU C Library version 2.7 to version 2.43 with a format width spec…EPSS 0.72%9.8CVE-2023-0687Gnu glibc classic buffer overflow vulnerabilityA vulnerability was found in GNU C Library 2.38. It has been declared as critical. This vulnerability affects the function __monstartup of the file g…EPSS 1.1%9.8CVE-2023-25139Gnu glibc out-of-bounds write vulnerabilitysprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some situations with a correct buffer size. This is unrelate…EPSS 1.4%9.8CVE-2022-23218Gnu glibc classic buffer overflow vulnerabilityThe deprecated compatibility function svcunix_create in the sunrpc module of the GNU C Library (aka glibc) through 2.34 copies its path argument on t…EPSS 4.8%9.8CVE-2022-23219Gnu glibc classic buffer overflow vulnerabilityThe deprecated compatibility function clnt_create in the sunrpc module of the GNU C Library (aka glibc) through 2.34 copies its hostname argument on …EPSS 4.3%9.8CVE-2021-33574Gnu glibc use after free vulnerabilityThe mq_notify function in the GNU C Library (aka glibc) versions 2.32 and 2.33 has a use-after-free. It may use the notification thread attributes ob…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2010-4052), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.