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

# CVE-2007-1885

Publication date 6 April 2007

Last updated 17 July 2025

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

Integer overflow in the str\_replace function in PHP 4 before 4.4.5 and PHP
5 before 5.2.1 allows context-dependent attackers to execute arbitrary code
via a single character search string in conjunction with a long replacement
string, which overflows a 32 bit length counter. NOTE: this is probably
the same issue as CVE-2007-0906.6.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 7.04 feisty | Not affected |
| 6.10 edgy | Not affected |
| 6.06 LTS dapper | 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)

## References

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

### Other references

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