Back to CVE catalog
CVE-2007-1884

Signedness errors in the printf function family in PHP

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityMedium
ConfidentialityPartial
IntegrityPartial
AvailabilityPartial

CVSS summary v2.0

6.8Medium
Published:
Updated:
EPSS:
3.18%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Related CWE

Not specified

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:phpphpAffected versions:
4.0Show full version range for php
4.0.04.0.14.0.24.0.34.0.44.0.54.0.64.0.74.1.04.1.14.1.24.24.2.04.2.14.2.24.2.34.3.04.3.14.3.104.3.114.3.24.3.34.3.44.3.54.3.64.3.74.3.84.3.94.4.04.4.14.4.24.4.34.4.4
Vendor:phpphp
Environments (5)
  • cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*
  • cpe:2.3:o:apple:mac_os_x_server:10.4.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:*:*:ia32_64-bit:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_vista:*:*:64_bit:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_xp:*:*:64-bit:*:*:*:*:*
Affected versions:
5.0Show full version range for php
5.0.05.0.15.0.25.0.35.0.45.0.55.1.05.1.15.1.25.1.35.1.45.1.55.1.65.2.0

1–2 of 2 · Page 1 of 1

CVSS scores and metrics2
[email protected] · NVD (Primary)Primary6.8 / 10MediumCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:M/Au:N/C:P/I:P/A:P
nvd · Wazuh CTI (cna)6.8 / 10MediumCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories16

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences