---
title: "CVE-2011-1938\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2011-1938?format=md
keywords: index, follow
---

# CVE-2011-1938

Publication date 31 May 2011

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

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

[Read the notes from the security team](https://ubuntu.com/security/CVE-2011-1938?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 11.10 oneiric | Not affected |
| 11.04 natty | Fixed 5.3.5-1ubuntu7.3 |
| 10.10 maverick | Fixed 5.3.3-1ubuntu9.6 |
| 10.04 LTS lucid | Fixed 5.3.2-1ubuntu4.10 |
| 8.04 LTS hardy | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2011-1938?format=md#patch-details)

## Notes

---

### [jdstrand](https://launchpad.net/~jdstrand)

PoC in http://www.exploit-db.com/exploits/17318/
stack-protector should reduce to DoS, downgrading to low

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

says 5.3.3, but reproducer works on lucid also
another PoC: http://www.exploit-db.com/exploits/17486/

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Upstream:   <http://svn.php.net/viewvc?view=revision&revision=311369> * Upstream:   <http://svn.php.net/viewvc?view=revision&revision=311370> * Debdiff:   <https://launchpad.net/bugs/813110> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1938)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2011-1938)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2011-1938)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2011-1938)

### Related Ubuntu Security Notices (USN)

+ [USN-1231-1](https://usn.ubuntu.com/USN-1231-1)
+ PHP Vulnerabilities
+ 18 October 2011

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2011-1938>
