Every CVE Search/ Get API key

CVE-2011-1938

Stack-based buffer overflow in the socket_connect function in ext/sockets/sockets.c in PHP 5.3.3...

7.5 HighPublic exploitFix available

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

23.1%Down 4.9 points since Feb 4, 2022
90%50%10%1%

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 HighAV: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

Affected packages
PackageAffectedFixed
php5
Debian: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
php5
Debian: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 less
5.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
php53
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-bcmath
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-cli
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-common
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-dba
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-gd
Red 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
Affected packages
PackageAffectedFixed
php53-imap
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-intl
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-ldap
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-mbstring
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-mysql
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-odbc
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-pdo
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-pgsql
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-process
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-pspell
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-snmp
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-soap
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-xml
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-xmlrpc
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-bcmath
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-cli
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-common
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-dba
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-debuginfo
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-devel
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-gd
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-imap
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-intl
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-ldap
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-mbstring
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-mysql
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-odbc
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-pdo
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-pgsql
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-process
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-pspell
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-snmp
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-soap
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-xml
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php53-xmlrpc
Red Hat:enterprise_linux:5::server
before 0:5.3.3-1.el5_7.3
0:5.3.3-1.el5_7.3
php
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-cli
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-common
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-debuginfo
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-gd
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-ldap
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-mysql
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-odbc
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-pdo
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-pgsql
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-soap
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-xml
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-xmlrpc
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-bcmath
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-dba
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-devel
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-embedded
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-enchant
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-imap
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-intl
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-mbstring
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-process
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-pspell
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-recode
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-snmp
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-tidy
Red Hat:enterprise_linux:6::server
before 0:5.3.3-3.el6_1.3
0:5.3.3-3.el6_1.3
php-zts
Red 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.

Public exploits
SourceLinkDate
Exploit-DBPHP 5.3.5 - 'socket_connect()' Local Buffer Overflow2011-05-25
Exploit-DBPHP 5.3.6 - Local Buffer Overflow (ROP)2011-07-04

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 53 moreShow less
MoveEnter Open