---
title: "CVE-2004-1018\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-2004-1018?format=md
keywords: index, follow
---

# CVE-2004-1018

Publication date 10 January 2005

Last updated 17 July 2025

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

Multiple integer handling errors in PHP before 4.3.10 allow attackers to
bypass safe mode restrictions, cause a denial of service, or execute
arbitrary code via (1) a negative offset value to the shmop\_write function,
(2) an "integer overflow/underflow" in the pack function, or (3) an
"integer overflow/underflow" in the unpack function. NOTE: this issue was
originally REJECTed by its CNA before publication, but that decision is in
active dispute. This candidate may change significantly in the future as a
result of further discussion.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php4 | 7.04 feisty | Not in release |
| 6.10 edgy | Fixed 4.4.2-1build1 |
| 6.06 LTS dapper | Fixed 4.4.2-1build1 |
| php5 | 7.04 feisty | Fixed 5.2.1-0ubuntu1.4 |
| 6.10 edgy | Fixed 5.1.6-1ubuntu2.6 |
| 6.06 LTS dapper | Fixed 5.1.2-1ubuntu3.9 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-99-1](https://usn.ubuntu.com/USN-99-1)
+ PHP4 vulnerabilities
+ 18 March 2005

### Other references

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