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 servers 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.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | RedHat | php8.4-0:8.4.28-1.el10_3 | * |
| Red Hat Enterprise Linux 10.2 Extended Update Support | RedHat | php8.4-0:8.4.28-1.el10_2 | * |
| Red Hat Enterprise Linux 8 | RedHat | php:7.4-8100020261119125714.f7998665 | * |
| Red Hat Enterprise Linux 9.8 Extended Update Support | RedHat | php:8.3-9080020261120133305.9 | * |
| Red Hat Enterprise Linux 9.8 Extended Update Support | RedHat | php:8.2-9080020261120141350.9 | * |
| Php5 | Ubuntu | esm-infra-legacy/trusty | * |
| Php7.0 | Ubuntu | esm-infra-legacy/xenial | * |
| Php7.2 | Ubuntu | esm-infra/bionic | * |
| Php7.4 | Ubuntu | esm-infra/focal | * |
| Php8.1 | Ubuntu | jammy | * |
| Php8.3 | Ubuntu | noble | * |
| Php8.5 | Ubuntu | devel | * |
| Php8.5 | Ubuntu | resolute | * |
| Php8.5 | Ubuntu | stonking | * |