CVE-2025-6491: Php NULL Deref

CVE-2025-6491

NVDCVSS scored by security@php.net

Vulnerability Summary

In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* before 8.4.10 when parsing XML data in SOAP extensions, overly large (>2Gb) XML namespace prefix may lead to null pointer dereference. This may lead to crashes and affect the availability of the target server.
Severity Level
MEDIUM(5.9)
Published Date
Jul 13, 2025
Last Modified
Jul 22, 2025
Exploitation Status
Public exploit available
Root Weakness (CWE)
The product dereferences a pointer that it expects to be valid but is NULL, typically causing a crash or exit.
CVSS v3.1 Base Metrics — Score 5.9 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Php >= 8.1.0 and < 8.1.33
  • Php >= 8.2.0 and < 8.2.29
  • Php >= 8.3.0 and < 8.3.23
  • Php >= 8.4.0 and < 8.4.10
Patched Versions
  • Php 8.1.33
  • Php 8.2.29
  • Php 8.3.23
  • Php 8.4.10

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Php and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Jul 13, 2025Published
  • Jul 22, 2025Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Php CVEsYou are reading CVE-2025-6491. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 29, 2026 21:13 UTC