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

# CVE-2004-0958

Publication date 3 November 2004

Last updated 17 July 2025

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

php\_variables.c in PHP before 5.0.2 allows remote attackers to read
sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC
variables that end in an open bracket character, which causes PHP to
calculate an incorrect string length.

## 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-0958)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2004-0958)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2004-0958)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2004-0958)

### Other references

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