CVE-2026-6722: Use-After-Free in SOAP using Apache map

Published May 7, 2026
·
Updated

Fixed (Stale SOAPGLOBAL(refmap) pointer with Apache Map). (CVE-2026-6722)

Other sources

In PHP versions 8.2. before 8.2.31, 8.3. before 8.3.31, 8.4. before 8.4.21, and 8.5. before 8.5.6, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing the second entry overwrites the first in the temporary result map, freeing the original PHP object while its stale pointer remains in the map. A subsequent href reference to the freed node can copy the dangling pointer into the result. As PHP string allocations can reclaim the freed memory region, an attacker with control over the SOAP request body can exploit this use-after-free to achieve remote code execution.

— Red Hat

Affected Software

41 affected componentsFixes available
PHP PHP<8.5.6
8.5.6
PHP PHP>=8.2.0<8.2.31
PHP PHP>=8.3.0<8.3.31
PHP PHP>=8.4.0<8.4.21
PHP PHP>=8.5.0<8.5.6
bitnami/php>=8.2.0<8.2.31
8.2.31
bitnami/php>=8.3.0<8.3.31
8.3.31
bitnami/php>=8.4.0<8.4.21
8.4.21
bitnami/php>=8.5.0<8.5.6
8.5.6
bitnami/php-min>=8.2.0<8.2.31
8.2.31
bitnami/php-min>=8.3.0<8.3.31
8.3.31
bitnami/php-min>=8.4.0<8.4.21
8.4.21
bitnami/php-min>=8.5.0<8.5.6
8.5.6
bitnami/libphp>=8.2.0<8.2.31
8.2.31
bitnami/libphp>=8.3.0<8.3.31
8.3.31
bitnami/libphp>=8.4.0<8.4.21
8.4.21
bitnami/libphp>=8.5.0<8.5.6
8.5.6
ubuntu/php5*
ubuntu/php7.0<7.0.33-0ubuntu0.16.04.16+esm19
7.0.33-0ubuntu0.16.04.16+esm19
ubuntu/php7.2*
ubuntu/php7.4*
ubuntu/php8.1<8.1.2-1ubuntu2.24
8.1.2-1ubuntu2.24
ubuntu/php8.3<8.3.6-0ubuntu0.24.04.9
8.3.6-0ubuntu0.24.04.9
ubuntu/php8.4<8.4.11-1ubuntu1.2
8.4.11-1ubuntu1.2
ubuntu/php8.5<8.5.4-0ubuntu1.1
8.5.4-0ubuntu1.1
debian/php8.2
8.2.31-1~deb12u1
debian/php8.4
8.4.21-1~deb13u18.4.21-1
debian/php7.4
7.4.33-1+deb11u11
alpine/php81<8.1.34-r0
8.1.34-r0
alpine/php82<8.2.31-r0
8.2.31-r0
alpine/php83<8.3.36-r0
8.3.36-r0
alpine/php83<8.3.31-r0
8.3.31-r0
alpine/php83<8.3.31-r0
8.3.31-r0
alpine/php83<8.3.31-r0
8.3.31-r0
alpine/php84<8.4.27-r0
8.4.27-r0
alpine/php84<8.4.21-r0
8.4.21-r0
alpine/php84<8.4.21-r0
8.4.21-r0
alpine/php84<8.4.21-r0
8.4.21-r0
alpine/php85<8.5.6-r0
8.5.6-r0
alpine/php85<8.5.6-r0
8.5.6-r0
alpine/php85<8.5.6-r0
8.5.6-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.5.6
  2. Upgrade

    Upgrade alpine/php81 to a version that resolves this vulnerability.

    Fixed in 8.1.34-r0
  3. Upgrade

    Upgrade alpine/php82 to a version that resolves this vulnerability.

    Fixed in 8.2.31-r0
  4. Upgrade

    Upgrade alpine/php83 to a version that resolves this vulnerability.

    Fixed in 8.3.36-r0
  5. Upgrade

    Upgrade alpine/php83 to a version that resolves this vulnerability.

    Fixed in 8.3.31-r0
  6. Upgrade

    Upgrade alpine/php84 to a version that resolves this vulnerability.

    Fixed in 8.4.27-r0
  7. Upgrade

    Upgrade alpine/php84 to a version that resolves this vulnerability.

    Fixed in 8.4.21-r0
  8. Upgrade

    Upgrade alpine/php85 to a version that resolves this vulnerability.

    Fixed in 8.5.6-r0
  9. Upgrade

    Upgrade bitnami/php to a version that resolves this vulnerability.

    Fixed in 8.2.31
  10. Upgrade

    Upgrade bitnami/php to a version that resolves this vulnerability.

    Fixed in 8.3.31
  11. Upgrade

    Upgrade bitnami/php to a version that resolves this vulnerability.

    Fixed in 8.4.21
  12. Upgrade

    Upgrade bitnami/php to a version that resolves this vulnerability.

    Fixed in 8.5.6
  13. Upgrade

    Upgrade bitnami/php-min to a version that resolves this vulnerability.

    Fixed in 8.2.31
  14. Upgrade

    Upgrade bitnami/php-min to a version that resolves this vulnerability.

    Fixed in 8.3.31
  15. Upgrade

    Upgrade bitnami/php-min to a version that resolves this vulnerability.

    Fixed in 8.4.21
  16. Upgrade

    Upgrade bitnami/php-min to a version that resolves this vulnerability.

    Fixed in 8.5.6
  17. Upgrade

    Upgrade bitnami/libphp to a version that resolves this vulnerability.

    Fixed in 8.2.31
  18. Upgrade

    Upgrade bitnami/libphp to a version that resolves this vulnerability.

    Fixed in 8.3.31
  19. Upgrade

    Upgrade bitnami/libphp to a version that resolves this vulnerability.

    Fixed in 8.4.21
  20. Upgrade

    Upgrade bitnami/libphp to a version that resolves this vulnerability.

    Fixed in 8.5.6
  21. Upgrade

    Upgrade ubuntu/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.33-0ubuntu0.16.04.16+esm19
  22. Upgrade

    Upgrade ubuntu/php8.1 to a version that resolves this vulnerability.

    Fixed in 8.1.2-1ubuntu2.24
  23. Upgrade

    Upgrade ubuntu/php8.3 to a version that resolves this vulnerability.

    Fixed in 8.3.6-0ubuntu0.24.04.9
  24. Upgrade

    Upgrade ubuntu/php8.4 to a version that resolves this vulnerability.

    Fixed in 8.4.11-1ubuntu1.2
  25. Upgrade

    Upgrade ubuntu/php8.5 to a version that resolves this vulnerability.

    Fixed in 8.5.4-0ubuntu1.1
  26. Upgrade

    Upgrade debian/php8.2 to a version that resolves this vulnerability.

    Fixed in 8.2.31-1~deb12u1
  27. Upgrade

    Upgrade debian/php8.4 to a version that resolves this vulnerability.

    Fixed in 8.4.21-1~deb13u1Fixed in 8.4.21-1
  28. Upgrade

    Upgrade debian/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.33-1+deb11u11
  29. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.2.31
  30. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.3.31
  31. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.4.21

Event History

May 7, 2026
CVE Published
via PHP·12:00 AM
Data Sourced
via PHP·12:00 AM
DescriptionAffected Software
Updated
via PHP·12:00 AM
Affected Software
May 10, 2026
CVE Published
via MITRE·04:19 AM
Data Sourced
via MITRE·04:19 AM
DescriptionWeakness
Data Sourced
via OSV·04:19 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·05:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
May 12, 2026
Advisory Published
via OSV·08:50 AM
Data Sourced
via NVD·05:48 PM
Affected Software
Updated
via NVD·05:48 PM
Severity
May 18, 2026
News Published
via The Hacker News·01:50 PM
Jun 30, 2026
Updated
via NVD·03:21 AM
SeverityWeakness
Jul 15, 2026
Updated
via NVD·01:16 AM
SeverityWeakness
Nov 20, 2026
Data Sourced
via OSV·06:34 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-6722?

CVE-2026-6722 has a high severity due to potential exploitation leading to remote code execution.

2

Which versions of PHP are affected by CVE-2026-6722?

CVE-2026-6722 affects PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6.

3

How do I fix CVE-2026-6722?

To fix CVE-2026-6722, upgrade your PHP installation to version 8.5.6 or the latest available version.

4

What causes CVE-2026-6722?

CVE-2026-6722 is caused by a use-after-free vulnerability in the SOAP extension related to improper handling of pointers.

5

Is there a workaround for CVE-2026-6722?

There is no recommended workaround for CVE-2026-6722; upgrading to a fixed version is the best course of action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203