php-src/ext/soap
Ahmed Lekssays 9cb3d8d200
Fix GHSA-453j-q27h-5p8x
Libxml versions prior to 2.13 cannot correctly handle a call to
xmlNodeSetName() with a name longer than 2G. It will leave the node
object in an invalid state with a NULL name. This later causes a NULL
pointer dereference when using the name during message serialization.

To solve this, implement a workaround that resets the name to the
sentinel name if this situation arises.

Versions of libxml of 2.13 and higher are not affected.

This can be exploited if a SoapVar is created with a fully qualified
name that is longer than 2G. This would be possible if some application
code uses a namespace prefix from an untrusted source like from a remote
SOAP service.

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2025-06-24 23:32:34 +02:00
..
tests Fix GHSA-453j-q27h-5p8x 2025-06-24 23:32:34 +02:00
config.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
php_encoding.c Upgrade security branches to Ubuntu 22.04 2025-03-06 15:24:15 +01:00
php_encoding.h Move derefs into accessor macros 2021-08-20 14:15:23 +02:00
php_http.c Fix wrong backporting of previous soap patch 2023-06-06 18:49:32 -04:00
php_http.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_packet_soap.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_packet_soap.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_schema.c Fix GH-12392: Segmentation fault on SoapClient::__getTypes 2023-10-11 17:21:54 +02:00
php_schema.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_sdl.c Backport 0a39890c: Fix libxml2 2.12 build due to API breaks 2024-10-12 15:12:40 +02:00
php_sdl.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_soap.h Move derefs into accessor macros 2021-08-20 14:15:23 +02:00
php_xml.c Backport 4fe82131: Backport libxml2 2.13.2 fixes (#14816) 2024-10-12 15:12:40 +02:00
php_xml.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
soap.c Fix GHSA-453j-q27h-5p8x 2025-06-24 23:32:34 +02:00
soap.stub.php Slightly clean up cookies handling 2021-08-20 14:27:24 +02:00
soap_arginfo.h Slightly clean up cookies handling 2021-08-20 14:27:24 +02:00