CVE-2007-4658: 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…
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 2% (FIRST EPSS); higher than 81.3% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: php5 (Debian:4.0) 5.2.0-8+etch9; php5 (Debian:5.0) 5.2.3-1+lenny1; php (Red Hat:enterprise_linux:3::as) 0:4.3.2-43.ent.
Low priority for now. Upgrade to php5 (Debian:4.0) 5.2.0-8+etch9; php5 (Debian:5.0) 5.2.3-1+lenny1; php (Red Hat:enterprise_linux:3::as) 0:4.3.2-43.ent or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Sep 4, 2007
- Updated
- Jun 16, 2026
- EPSS
- 2.0% · 81th percentile
- CWE
- —
Report tools
Action score
31
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.0%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php4.0
- php php4.0.0
- php php4.0.1
- php php4.0.2
- php php4.0.3
- php php4.0.4
- php php4.0.5
- php php4.0.6
+12 more rows
- php php4.0.7
- php php4.1.0
- php php4.1.1
- php php4.1.2
- php php4.2.0
- php php4.2.1
- php php4.2.2
- php php4.2.3
- php php4.3.0
- php php4.3.1
- php php4.3.10
- php php4.3.11
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:4.0 | php5 | before 5.2.0-8+etch9 | 5.2.0-8+etch9 |
| Debian:5.0 | php5 | before 5.2.3-1+lenny1 | 5.2.3-1+lenny1 |
| Red Hat:enterprise_linux:3::as | php | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-debuginfo | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-devel | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-imap | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-ldap | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-mysql | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-odbc | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:3::as | php-pgsql | before 0:4.3.2-43.ent | 0:4.3.2-43.ent |
| Red Hat:enterprise_linux:4::as | php | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-debuginfo | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-devel | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-domxml | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-gd | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-imap | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-ldap | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-mbstring | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-mysql | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-ncurses | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-odbc | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-pear | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-pgsql | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
| Red Hat:enterprise_linux:4::as | php-snmp | before 0:4.3.9-3.22.9 | 0:4.3.9-3.22.9 |
+61
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2007-4652Sep 4, 2007 · The session extension in PHP before 5.2.4 might allow local users to bypass open_basedir restrictions via a session file that is a symlink.17Monitor
- ← EarlierCVE-2007-4657Sep 4, 2007 · Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive information (memory…31Monitor
- Later →CVE-2007-4659Sep 4, 2007 · The zend_alter_ini_entry function in PHP before 5.2.4 does not properly handle an interruption to the flow of execution triggered by a…31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:php5 | 5.2.0-8+etch9 · Debian:4.0 | Package registry (OSV) |
| red hat:php | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-debuginfo | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-devel | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-domxml | 0:4.3.9-3.22.9 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-gd | 0:4.3.9-3.22.9 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-imap | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ldap | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-mbstring | 0:4.3.9-3.22.9 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-mysql | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ncurses | 0:4.3.9-3.22.9 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-odbc | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-pgsql | 0:4.3.2-43.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
—
CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- rhn.redhat.com/errata/RHSA-2007-0889.html
- secunia.com/advisories/26642
- secunia.com/advisories/26822
- secunia.com/advisories/26838
- secunia.com/advisories/26871
- secunia.com/advisories/26895
- secunia.com/advisories/26930
- secunia.com/advisories/26967
- secunia.com/advisories/27102
- secunia.com/advisories/27377
- secunia.com/advisories/27545
- secunia.com/advisories/27864
- secunia.com/advisories/28249
- secunia.com/advisories/28658
- secunia.com/advisories/28936
- slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136
- support.avaya.com/elmodocs2/security/ASA-2007-449.htm
- www.debian.org/security/2008/dsa-1444
- www.gentoo.org/security/en/glsa/glsa-200710-02.xml
Vendor advisories and official records. Exploit/PoC links are deliberately left out.