CVE-2011-1938
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
23.129%
chance of exploitation in the next 30 days
higher than 97.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 2
Weakness
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Timeline
- 2011-05-25First Exploit-DB entry (EDB-ID 17318)6 days before publication
- 2011-05-31Published by the CNA20:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 17486 | local | multiple | 2011-07-04 | yes |
| EDB-ID 17318 | local | multiple | 2011-05-25 | yes |
Affected products
| Vendor | Product |
|---|---|
| php | php |
References
- http://openwall.com/lists/oss-security/2011/05/24/1
- http://openwall.com/lists/oss-security/2011/05/24/9
- http://svn.php.net/viewvc/php/php-src/trunk/ext/sockets/sockets.c?r1=311369&r2=311368&pathrev=311369
- http://svn.php.net/viewvc?view=revision&revision=311369
- http://lists.apple.com/archives/security-announce/2012/Feb/msg00000.html
- http://marc.info/?l=bugtraq&m=133469208622507&w=2
- http://www.debian.org/security/2012/dsa-2399
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:165
- http://www.redhat.com/support/errata/RHSA-2011-1423.html
- http://www.exploit-db.com/exploits/17318/
- http://osvdb.org/72644
- http://securityreason.com/securityalert/8262
- http://securityreason.com/securityalert/8294
- http://support.apple.com/kb/HT5130
- http://www.php.net/ChangeLog-5.php#5.3.7
- http://www.php.net/archive/2011.php#id2011-08-18-1
- http://www.securityfocus.com/bid/49241
- https://exchange.xforce.ibmcloud.com/vulnerabilities/67606
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2011-1938'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2011-1938'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2011-1938'curl 'https://api.contrastcyber.com/cve_products/CVE-2011-1938'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).