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

# CVE-2007-4658

Publication date 4 September 2007

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

The money\_format function in PHP 5 before 5.2.4, and PHP 4 before 4.4.8,
permits multiple (1) %i and (2) %n tokens, which has unknown impact and
attack vectors, possibly related to a format string vulnerability.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 7.10 gutsy | Fixed 5.2.3-1ubuntu6.1 |
| 7.04 feisty | Fixed 5.2.1-0ubuntu1.5 |
| 6.10 edgy | Fixed 5.1.6-1ubuntu2.7 |
| 6.06 LTS dapper | Fixed 5.1.2-1ubuntu3.10 |

---

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

## Notes

---

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

from Line 7667, http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.640&r2=1.641
202-money-format-abuse.patch

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-549-1](https://usn.ubuntu.com/USN-549-1)
+ PHP vulnerabilities
+ 29 November 2007

### Other references

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