CVE-2025-6491
NULL Pointer Dereference in PHP SOAP Extension via Large XML Namespace Prefix
Reported by php · Published July 13, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.4-ffi | Amazon Linux | 8.4.10-1.amzn2023.0.1 |
| php8.3-enchant | Amazon Linux | 8.3.23-1.amzn2023.0.1 |
| php8.2-odbc | Amazon Linux | 8.2.29-1.amzn2023.0.1 |
| php8.4-cli | Amazon Linux | 8.4.10-1.amzn2023.0.1 |
| php8.4-soap | Amazon Linux | 8.4.10-1.amzn2023.0.1 |
| php8.3-process | Amazon Linux | 8.3.23-1.amzn2023.0.1 |
| php8.3-pdo | Amazon Linux | 8.3.23-1.amzn2023.0.1 |
| php8.1-enchant | Amazon Linux | 8.1.33-1.amzn2023.0.1 |
| php8.4 | Amazon Linux | 8.4.10-1.amzn2023.0.1 |
| php8.2-xml | Amazon Linux | 8.2.29-1.amzn2023.0.1 |
| php8.2-dba | Amazon Linux | 8.2.29-1.amzn2023.0.1 |
| php8.1-dbg | Amazon Linux | 8.1.33-1.amzn2023.0.1 |
87 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.1.*, 8.2.*, 8.3.* |
| PHP Group | PHP | 8.1.*, 8.2.*, 8.3.* |
Timeline
- Jul 3, 2025 PoC Published (6 in total, the first dated here)
- Jul 3, 2025 CVE Published
- Jul 14, 2025 EPSS Score (30 in total, the first dated here)
- Nov 4, 2025 CVE Updated
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (9 in total, the first dated here)
- Aug 12, 2026 Security Advisory (11 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-6491
vulnetix vdb fixes CVE-2025-6491
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-6491/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html url
- http://www.openwall.com/lists/oss-security/2025/07/11/4 url
- https://www.php.net/ChangeLog-8.php#8.4.10 advisory
- https://www.php.net/ChangeLog-8.php#8.1.33 advisory
- https://www.php.net/ChangeLog-8.php#8.3.23 advisory
- https://www.php.net/ChangeLog-8.php#8.2.29 advisory