Skip to content
OpenAdvisories
Unscored Public exploit CVE-2011-1938 EUVD-2011-1936GHSA-wxhc-rwm9-xjjx

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-dependen…

Published May 31, 2011 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 6.0 php5 5.3.3-7+squeeze5 DSA-2399-1
Debian 5.0 php5 5.2.6.dfsg.1-1+lenny14 DSA-2399-1
ReleasePackageFixed inAdvisory
RHEL 6 php +25 5.3.3-3.el6_1.3 RHSA-2011:1423
RHEL 5 php53 +20 5.3.3-1.el5_7.3 RHSA-2011:1423

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 2

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References