CVE-2011-1938 Memory corruption in n/a

High 7.5 Published Updated

A stack-based buffer overflow in PHP's socket_connect function allows attackers to execute arbitrary code via a long UNIX socket pathname.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2011-1938?

CVE-2011-1938 is a high-severity memory corruption vulnerability in Php Php, published on 31 May 2011. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-119

Which versions are affected by CVE-2011-1938?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2011-1938?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2011-1938 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2011-1938 exists.

Public exploit code: 2 Exploit-DB entries.

All Php Php vulnerabilities

Sources

Also known as GHSA-wxhc-rwm9-xjjx.

Is CVE-2011-1938 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free