---
id: CVE-2026-129506
title: SOAP use-after-free when processing DTD entity references
summary: >-
  SOAP use-after-free when processing DTD entity references.


  The SOAP extension frees the document type definition (DTD) of a parsed XML
  document while attribute values can still refer to entities it owns, and can
  then read freed memory. …
severity: medium
cvss: 6.3
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'
cvssSource: cna
cwe:
  - CWE-416
vendor: PHP Group
product: PHP
affected:
  - PHP < 8.2.36
  - PHP >= 8.3.0 < 8.3.37
  - PHP >= 8.4.0 < 8.4.28
  - PHP >= 8.5.0 < 8.5.13
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-19T16:08:46.736824Z'
published: '2026-11-19'
updated: '2026-11-19'
sourceUpdated: '2026-11-19T19:36:19.627Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-129506'
references:
  - url: 'https://github.com/php/php-src/security/advisories/GHSA-4646-p932-gw34'
tags:
  - cve.org
ingestedAt: '2026-11-19T14:53:19.911Z'
epss: 0.01938
epssPercentile: 0.80624
---

## Overview

SOAP use-after-free when processing DTD entity references.

The SOAP extension frees the document type definition (DTD) of a parsed XML document while attribute values can still refer to entities it owns, and can then read freed memory. Removing the DTD also bypasses the SOAP server's rejection of documents that contain one. An unauthenticated remote attacker who can send a crafted request to a SOAP endpoint, or who controls a WSDL or schema document loaded by the application, can crash the PHP process and cause denial of service. Memory disclosure and code execution have not been confirmed.

This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

## Affected

- `PHP < 8.2.36`
- `PHP >= 8.3.0 < 8.3.37`
- `PHP >= 8.4.0 < 8.4.28`
- `PHP >= 8.5.0 < 8.5.13`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
