CVE-2026-15353: PHP SOAP decoder turns four bytes of heap into an array key when arraySize is malformed

ByLinuxtastic

December 1, 2026 #CVE, #PHP

SOAP encoding lets a sender describe an array with an arraySize attribute, and PHP’s SOAP extension reads that attribute to decide how many dimensions to decode. When the attribute is empty, whitespace or not a number, or when such a dimension comes from the WSDL, the decoder treats the array as having no dimensions but still reads the first dimension slot, which was never written. Four bytes of whatever the heap held there are then used as an integer key in the PHP array the application receives. The PHP Group says the data is disclosed “only if the application returns or otherwise exposes the decoded array”, and that an unauthenticated client can trigger it against a SoapServer and a malicious server against a SoapClient. Update to 8.5.13, 8.4.28, 8.3.37 or 8.2.36 and restart PHP-FPM; until then, treat decoded array keys from SOAP as untrusted and keep SOAP endpoints off the open internet.

CVE-2026-15353 at a glance.

ComponentPHP, the SOAP extension (ext/soap): decoding of SOAP-encoded arrays in SoapServer requests and SoapClient responses, including dimensions taken from the WSDL
Affected versionsevery 8.x branch: 8.2 before 8.2.36, 8.3 before 8.3.37, 8.4 before 8.4.28, 8.5 before 8.5.13, per the PHP Group record. Builds without the SOAP extension are not affected
Fixed inPHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, released 19 November 2026 as one security set. Debian: 8.2.36-1~deb12u1 (DLA-4916-1) and 8.4.28-1~deb13u1 (DSA-6641-1); Ubuntu: USN-9185-1 of 23 November; Red Hat lists the same 8.4 and 8.2 errata as its SOAP sibling, with RHEL 9’s php:8.2 and php:8.3 streams still marked Affected on 1 December
SeverityPHP Group (CNA) CVSS 4.0 6.3 Medium (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N; low confidentiality impact, nothing else), CWE-125 (out-of-bounds read) and CWE-908 (use of uninitialised resource). Red Hat rates it Low, CVSS 3.1 5.3; SUSE moderate at 4.3 (it adds PR:L); Ubuntu Medium; NVD Awaiting Analysis with the CNA score only
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.00839 (55.2nd percentile) on 30 November 2026
Who is exposedApplications that decode SOAP-encoded arrays and then echo the result somewhere the sender can see it: a SoapServer that returns or logs what it received, a SoapClient that renders a response from a server the attacker controls. What leaks is four bytes of heap at a time, as a number in an array key, which is a slow and noisy channel; the advisory does not describe a crash. Applications that never expose the decoded array leak nothing, which is the reason for the AT:P in the vector
PublishedPHP advisory GHSA-q23r-hr55-xmpg and CVE record 19 November 2026; this page built 1 December 2026, last updated 1 December 2026

What it is

SOAP encoding (the SOAP-ENC:Array type) describes an array’s shape in an arraySize attribute: a single number for a list, several for a multi-dimensional array. PHP parses the attribute into a count of dimensions and a small table of sizes, then walks the elements filling a PHP array. For an attribute that is empty, whitespace only or not numeric, the parser arrives at zero dimensions, but the code that builds the keys still reads the first entry of the size table as if one dimension existed. Nothing wrote that entry, so it holds whatever the allocator left behind, and that value becomes the integer key of the first element the decoder stores. The same thing happens when the dimensions are declared in the WSDL rather than in the message.

This is CWE-908, use of an uninitialised resource, paired with CWE-125 because the read is beyond what was initialised rather than beyond the allocation. The attacker does not get to choose what is read; they get four bytes of heap that happened to be there, exposed as a number, and only if the application passes the decoded array back out in a response, a log line or a page. That is why the PHP Group’s vector has a low confidentiality impact and no integrity or availability component, and why Red Hat reads it as Low. A determined caller repeating the request could sample the heap over time, which is the realistic shape of the risk.

The fix initialises and validates the dimension table so that a malformed arraySize is rejected as the encoding rules require. The advisory credits ExPatch-LLC with the report, alexandre-daubois with the fix and bukka with the review, and names no commit; the four fixed builds shipped on 19 November 2026 alongside the DTD use-after-free in the same extension and sixteen other CVEs.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The fixed packages are the same builds as for CVE-2026-129506, since the two were released together.

DistributionStatusFixed package
AlpineNot consulted for this page; the Alpine tracker refused automated readers on earlier runs—
Debianphp8.2 bookworm fixed via DLA-4916-1; php8.4 trixie fixed via DSA-6641-1; forky and sid fixed at 8.4.28-38.2.36-1~deb12u1 (bookworm), 8.4.28-1~deb13u1 (trixie)
UbuntuPriority Medium; fixed on 22.04 (php8.1), 24.04 (php8.3), 26.04 and 26.10 (php8.5) by USN-9185-1 of 23 November 20268.1.2-1ubuntu2.29 (jammy), 8.3.6-0ubuntu0.24.04.14 (noble), 8.5.4-0ubuntu1.6 (26.04), 8.5.9-0ubuntu2.2 (26.10)
RHEL, Rocky, Alma, CentOS StreamLow, CVSS 3.1 5.3, CWE-125; Bugzilla 2576604. The page lists the php8.4 and php:8.2 errata of the release set while still showing RHEL 9 php:8.2 and php:8.3 as Affected, which does not match; take the stream’s own erratum as the wordthe stream builds named in the errata (8.4.28, 8.2.36)
openSUSE/SLERated moderate, CVSS 3.1 4.3; overall state Pending; the per-product rows were beyond the readable part of the page—
php.net source builds, Docker php:* images, Remi and Ondřej Surý repositoriesThe upstream release applies; a container keeps the old PHP until the image is rebuiltPHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36

How to check

The same three questions as for its sibling: the installed build, whether ext/soap is loaded, and whether a SoapServer or a SoapClient with a remote WSDL is in the code. The extra question for this one is whether the decoded array ever goes back out, since a leak that is never shown is not a leak.

# 1. which PHP builds are installed, and are they at or above 8.5.13 / 8.4.28 / 8.3.37 / 8.2.36?
php -v | head -1
for b in /usr/bin/php8.* /usr/sbin/php-fpm8.* /opt/remi/php*/root/usr/bin/php; do [ -x "$b" ] && echo "$b: $($b -v 2>/dev/null | head -1)"; done
dpkg -l 'php8.*' 2>/dev/null | awk '/^ii/ {print $2, $3}'      # Debian/Ubuntu
rpm -qa 'php*' 2>/dev/null | sort                                # RHEL family, Remi

# 2. is ext/soap loaded?
php -m | grep -i '^soap$'; php-fpm8.4 -m 2>/dev/null | grep -i '^soap$'; php-fpm -m 2>/dev/null | grep -i '^soap$'

# 3. SOAP use, and places where a decoded value is returned, logged or printed
grep -rnE 'new (\\)?Soap(Server|Client)\(' --include='*.php' /var/www /srv 2>/dev/null | head
grep -rnE 'SOAP-ENC:Array|arraySize|soapenc:Array' /var/www /srv --include='*.wsdl' --include='*.xml' 2>/dev/null | head
grep -rnE '(var_dump|print_r|json_encode|error_log)\(' --include='*.php' $(grep -rlE 'Soap(Server|Client)' --include='*.php' /var/www /srv 2>/dev/null) 2>/dev/null | head

A fixed build ends the matter. On an older build, no soap means nothing to do. With soap loaded, a SoapServer that receives arrays and a handler that returns, logs or renders what it decoded is the exposed shape; so is a SoapClient whose server you do not control. If nothing in step 3 sends decoded data back out, the bug reads uninitialised bytes into a key nobody sees, which is worth fixing but not worth an emergency.

How to fix it

Update and restart, exactly as for the DTD sibling: the package is the same, and PHP-FPM keeps the old binary until the pool is restarted.

# Debian 12 / 13 (php8.2 8.2.36-1~deb12u1 via DLA-4916-1; php8.4 8.4.28-1~deb13u1 via DSA-6641-1)
sudo apt update && sudo apt install --only-upgrade 'php8.*'
# Ubuntu 22.04 / 24.04 / 26.04 / 26.10 (USN-9185-1, 23 November 2026)
sudo apt update && sudo apt install --only-upgrade 'php8.*'
# RHEL 8 / 9 / 10 and rebuilds (php:8.2 / php:8.4 module streams, php8.4 on RHEL 10)
sudo dnf update 'php*'
# then restart what runs PHP: FPM pools keep the old binary until they are restarted
sudo systemctl restart php8.4-fpm php8.3-fpm php8.2-fpm php-fpm 2>/dev/null; sudo systemctl reload apache2 httpd 2>/dev/null
# confirm the running version
php -v | head -1; curl -sI http://localhost/ | grep -i '^x-powered-by'

The advisory’s interim measures are to restrict the SOAP endpoint to the clients that need it, use only trusted WSDLs, and reject encoded arrays whose arraySize is not a valid dimension. The last can be done in front of the extension with the same early check as its sibling; a filter on the attribute is a few lines:

<?php
// before new SoapServer(...)->handle($raw): refuse arrays whose arraySize is not digits (or digits,digits)
$raw = file_get_contents('php://input');
if (preg_match('/arraySize\s*=\s*(["\'])(?!\s*\d+(\s*,\s*\d+)*\s*\1)/i', $raw)) {
    http_response_code(400);
    exit('Request rejected: malformed arraySize');
}

Do not try to “sanitise” the decoded array afterwards by discarding numeric keys: the bytes have already been read by then, and a legitimate SOAP array has numeric keys too. And do not mistake this for the SOAP DTD bug fixed in the same release; they share an extension and a patch set but not a mechanism, and a workaround for one does nothing for the other. The update covers both.

Sources

  • CVE-2026-15353 at CVE.org — the PHP Group CNA record (19 November 2026): the description, the affected ranges per branch, the CVSS 4.0 vector and the CWE
  • GHSA-q23r-hr55-xmpg — the PHP project’s advisory: the mechanism, the ext-soap ranges, the four patched versions, the interim mitigations and the credit to ExPatch-LLC, alexandre-daubois and bukka; no fix commit is named
  • PHP 8 ChangeLog — the 19 November 2026 entries for 8.5.13 (and 8.6.0), which list this CVE among the eighteen fixed in the release set; the 8.4, 8.3 and 8.2 sections were beyond the readable part of the page on 1 December, so their build numbers are taken from the advisory
  • NVD entry — Awaiting Analysis; published 19 November; the CNA’s CVSS 4.0 6.3, CWE-125 and CWE-908; no NVD score and no cisaExploitAdd
  • Distribution trackers: Debian (DLA-4916-1, DSA-6641-1) · Ubuntu (Medium, USN-9185-1) · Red Hat (Low, 5.3, CWE-125) · SUSE (moderate, 4.3, Pending)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS: 0.00839, 55.2nd percentile, on 30 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.