CVE-2025-6491
PHP vulnerability analysis and mitigation

Overview

CVE-2025-6491 is a NULL Pointer Dereference vulnerability discovered in PHP's SOAP Extension. The vulnerability affects PHP versions 8.1. before 8.1.33, 8.2. before 8.2.29, 8.3. before 8.3.23, and 8.4. before 8.4.10. When parsing XML data in SOAP extensions, an overly large (>2Gb) XML namespace prefix may lead to null pointer dereference. The vulnerability was discovered by Ahmed Lekssays from Qatar Computing Research Institute (PHP Advisory).

Technical details

The vulnerability occurs in PHP installations with the SOAP extension enabled when using libxml2 versions prior to 2.13. The issue stems from libxml2's inability to correctly handle calls to xmlNodeSetName() with names longer than 2GB, resulting in the node object being left in an invalid state with a NULL name. This subsequently causes a NULL pointer dereference during message serialization when using the name. The vulnerability has been assigned a CVSS v3.1 base score of 5.9 (Medium) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (PHP Advisory, Ubuntu).

Impact

The primary impact of this vulnerability is a denial of service condition. When exploited, it causes a segmentation fault leading to PHP process termination, which can disrupt web applications using SOAP functionality. The vulnerability can be triggered when a SoapVar is created with a qualified name based on user-controlled SOAP data (PHP Advisory).

Mitigation and workarounds

The vulnerability has been patched in PHP versions 8.1.33, 8.2.29, 8.3.23, and 8.4.10. Users are advised to upgrade to these or later versions to mitigate the vulnerability. The fix has been implemented through commits in the PHP source code repository (Debian, Ubuntu).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management