Multiple integer signedness errors in the printf function family in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 on 64 bit machines allow context-dependent attackers to execute arbitrary code via (1) certain negative argument numbers that arise in the php_formatted_print function because of 64 to 32 bit truncation, and bypass a check for the maximum allowable value; and (2) a width and precision of -1, which make it possible for the php_sprintf_appendstring function to place an internal buffer at an arbitrary memory location
Published Apr 6, 2007
6.8
MEDIUMCVSS 2.0
EPSS 3.14%
Description
Multiple integer signedness errors in the printf function family in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 on 64 bit machines allow context-dependent attackers to execute arbitrary code via (1) certain negative argument numbers that arise in the php_formatted_print function because of 64 to 32 bit truncation, and bypass a check for the maximum allowable value; and (2) a width and precision of -1, which make it possible for the php_sprintf_appendstring function to place an internal buffer at an arbitrary memory location.
Affected products
No data.
Configuration 1
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.1
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.3
- 4.0.4
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.0.7
- 4.0.7
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.3.10
- 4.3.11
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
Configuration 2
Running on/with
- n/a
- 10.4.9
- n/a
- n/a
- n/a
- 5.0
- 5.0
- 5.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.5
- 5.1.6
- 5.2.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
The PHP interpreter does not offer a reliable "sandboxed" security layer (as found in, say, a JVM) in which untrusted scripts can be run; any script run by the PHP interpreter must be trusted with the privileges of the interpreter itself. We therefore do not classify this issue as security-sensitive since no trust boundary is crossed.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 3.14% (0.03135) | 87.45th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.14% (0.03135) | 86.17th | v5 (v2026.06.15) |
| Dec 10, 2025 | 2.13% (0.02129) | 83.65th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.77% (0.00773) | 71.86th | v4 (v2025.03.14) |
| Dec 12, 2024 | 2.31% (0.02312) | 90.11th | v3 (v2023.03.01) |
| Feb 7, 2024 | 2.31% (0.02312) | 88.63th | v3 (v2023.03.01) |
| Dec 31, 2023 | 2.24% (0.02239) | 88.41th | v3 (v2023.03.01) |
| Nov 23, 2023 | 2.61% (0.02610) | 89.18th | v3 (v2023.03.01) |
| Sep 7, 2023 | 2.51% (0.02509) | 88.78th | v3 (v2023.03.01) |
| Apr 11, 2023 | 2.41% (0.02413) | 88.30th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.22% (0.02219) | 87.71th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.42% (0.04421) | 88.21th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.42% (0.04421) | 87.03th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.42% (0.04421) | 70.83th | v2 (v2022.01.01) |
No CWE recorded.
References (15)
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506 vendor-advisoryx_refsource_HP
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137 vendor-advisoryx_refsource_HP
- http://secunia.com/advisories/25423 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/25850 third-party-advisoryx_refsource_SECUNIA
- http://www.osvdb.org/33955 vdb-entryx_refsource_OSVDB
- http://www.osvdb.org/34767 vdb-entryx_refsource_OSVDB
- http://www.php-security.org/MOPB/MOPB-38-2007.html x_refsource_MISCVendor Advisory
- http://www.php.net/releases/5_2_1.php x_refsource_CONFIRMPatch
- http://www.securityfocus.com/bid/23219 vdb-entryx_refsource_BID
- http://www.vupen.com/english/advisories/2007/1991 vdb-entryx_refsource_VUPEN
- http://www.vupen.com/english/advisories/2007/2374 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2007-1884 Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/33755 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2007-1884
- https://www.cve.org/CVERecord?id=CVE-2007-1884
Change history (0)
No recorded changes yet.