CVE-2011-1938
Stack-based buffer overflow in the socket_connect function in ext/sockets/sockets.c in PHP 5.3.3...
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2011-1938- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2011-1938- Updated
- 2026-11-02
EUVDEUVD-2011-1936 No score
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.
- Record
EUVD-2011-1936- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-wxhc-rwm9-xjjx No score
Stack-based buffer overflow in the socket_connect function in ext/sockets/sockets.c in PHP 5.3.3...
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.
- Record
GHSA-wxhc-rwm9-xjjx- Weakness
- CWE-119
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php5Debian:6.0 |
before 5.3.3-7+squeeze5, plus listed versions 5.3.3-75.3.3-7+squeeze15.3.3-7+squeeze25.3.3-7+squeeze3 |
5.3.3-7+squeeze5 |
php5Debian:5.0 |
before 5.2.6.dfsg.1-1+lenny14, plus listed versions 5.2.6.dfsg.1-1+lenny105.2.6.dfsg.1-1+lenny115.2.6.dfsg.1-1+lenny125.2.6.dfsg.1-1+lenny135.2.6.dfsg.1-1+lenny2 Show 5 moreShow less5.2.6.dfsg.1-1+lenny35.2.6.dfsg.1-1+lenny45.2.6.dfsg.1-1+lenny65.2.6.dfsg.1-1+lenny85.2.6.dfsg.1-1+lenny9 |
5.2.6.dfsg.1-1+lenny14 |
php53Red Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-bcmathRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-cliRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-commonRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-dbaRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-debuginfoRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-develRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-gdRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
Show 63 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php53-imapRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-intlRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-ldapRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-mbstringRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-mysqlRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-odbcRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-pdoRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-pgsqlRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-processRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-pspellRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-snmpRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-soapRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-xmlRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-xmlrpcRed Hat:enterprise_linux:5::client_workstation |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53Red Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-bcmathRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-cliRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-commonRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-dbaRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-debuginfoRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-develRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-gdRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-imapRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-intlRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-ldapRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-mbstringRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-mysqlRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-odbcRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-pdoRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-pgsqlRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-processRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-pspellRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-snmpRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-soapRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-xmlRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
php53-xmlrpcRed Hat:enterprise_linux:5::server |
before 0:5.3.3-1.el5_7.3 | 0:5.3.3-1.el5_7.3 |
phpRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-cliRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-commonRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-debuginfoRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-gdRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-ldapRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-mysqlRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-odbcRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-pdoRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-pgsqlRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-soapRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-xmlRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-xmlrpcRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-bcmathRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-dbaRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-develRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-embeddedRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-enchantRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-imapRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-intlRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-mbstringRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-processRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-pspellRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-recodeRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-snmpRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-tidyRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
php-ztsRed Hat:enterprise_linux:6::server |
before 0:5.3.3-3.el6_1.3 | 0:5.3.3-3.el6_1.3 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 5.3.5 - 'socket_connect()' Local Buffer Overflow | 2011-05-25 |
| Exploit-DB | PHP 5.3.6 - Local Buffer Overflow (ROP) | 2011-07-04 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2011-1938 is a high vulnerability (CVSS 7.5) in Php, published May 31, 2011. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 23.1%, the 97th percentile. Fixed in php5 5.3.3-7+squeeze5.
References
svn.php.net/viewvc?view=revision&revision=311369
marc.info?l=bugtraq&m=133469208622507&w=2
support.apple.com/kb/HT5130
securityfocus.com/bid/49241
mandriva.com/security/advisories?name=MDVSA-2011:165
openwall.com/lists/oss-security/2011/05/24/9
Show 53 moreShow less
debian.org/security/2012/dsa-2399
svn.php.net/viewvc/php/php-src/trunk/ext/sockets/sockets.c?r1=311369&r2=311368&pathrev=311369
lists.apple.com/archives/security-announce/2012/Feb/msg00000.html
osvdb.org/72644
securityreason.com/securityalert/8294
exploit-db.com/exploits/17318
redhat.com/support/errata/RHSA-2011-1423.html
php.net/ChangeLog-5.php
securityreason.com/securityalert/8262
php.net/archive/2011.php
openwall.com/lists/oss-security/2011/05/24/1
exchange.xforce.ibmcloud.com/vulnerabilities/67606
nvd.nist.gov/vuln/detail/CVE-2011-1938
github.com/advisories/GHSA-wxhc-rwm9-xjjx
access.redhat.com/errata/RHSA-2011:1423
access.redhat.com/security/updates/classification
php.net/security/crypt_blowfish.php
bugzilla.redhat.com/show_bug.cgi?id=680972
bugzilla.redhat.com/show_bug.cgi?id=688958
bugzilla.redhat.com/show_bug.cgi?id=689386
bugzilla.redhat.com/show_bug.cgi?id=690899
bugzilla.redhat.com/show_bug.cgi?id=690905
bugzilla.redhat.com/show_bug.cgi?id=690915
bugzilla.redhat.com/show_bug.cgi?id=709067
bugzilla.redhat.com/show_bug.cgi?id=713194
bugzilla.redhat.com/show_bug.cgi?id=715025
security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_1423.json
access.redhat.com/security/cve/CVE-2011-0708
cve.org/CVERecord?id=CVE-2011-0708
nvd.nist.gov/vuln/detail/CVE-2011-0708
access.redhat.com/security/cve/CVE-2011-1148
cve.org/CVERecord?id=CVE-2011-1148
nvd.nist.gov/vuln/detail/CVE-2011-1148
access.redhat.com/security/cve/CVE-2011-1466
cve.org/CVERecord?id=CVE-2011-1466
nvd.nist.gov/vuln/detail/CVE-2011-1466
access.redhat.com/security/cve/CVE-2011-1468
cve.org/CVERecord?id=CVE-2011-1468
nvd.nist.gov/vuln/detail/CVE-2011-1468
access.redhat.com/security/cve/CVE-2011-1469
cve.org/CVERecord?id=CVE-2011-1469
nvd.nist.gov/vuln/detail/CVE-2011-1469
access.redhat.com/security/cve/CVE-2011-1471
cve.org/CVERecord?id=CVE-2011-1471
nvd.nist.gov/vuln/detail/CVE-2011-1471
access.redhat.com/security/cve/CVE-2011-1938
cve.org/CVERecord?id=CVE-2011-1938
access.redhat.com/security/cve/CVE-2011-2202
cve.org/CVERecord?id=CVE-2011-2202
nvd.nist.gov/vuln/detail/CVE-2011-2202
access.redhat.com/security/cve/CVE-2011-2483
cve.org/CVERecord?id=CVE-2011-2483
nvd.nist.gov/vuln/detail/CVE-2011-2483