Vulnerabilities

CVE-2026-7568

High 7.5 CVSS 3.1

Description

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the metaphone() function in ext/standard/metaphone.c uses a signed int variable to track the current position within the input string. If a string longer than 2,147,483,647 bytes is passed, a signed integer overflow occurs, resulting in undefined behavior. This can lead to an out-of-bounds read, causing a segmentation fault or access to unrelated memory, and may affect the availability of the PHP process.

Description as published by the source, in English.

Key facts

Published
2026-05-10
Last modified
2026-07-24
Assigned by
security@php.net
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.5 % higher than 37 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Php Php ≥ 8.2.0, < 8.2.31 Affected
Php Php ≥ 8.3.0, < 8.3.31 Affected
Php Php ≥ 8.4.0, < 8.4.21 Affected
Php Php ≥ 8.5.0, < 8.5.6 Affected

Weakness type

  • CWE-125: Out-of-bounds Read

    The product reads data past the end, or before the beginning, of the intended buffer.

  • CWE-190: Integer Overflow or Wraparound

    The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is i…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities