BIT-libphp-2026-129538: PHP-CGI out-of-bounds read and write during PATH_INFO correction

Published Nov 27, 2026
·
Updated

PHP-CGI out-of-bounds read and write during PATHINFO correction.

The PHP CGI binary (php-cgi), in CGI and FastCGI mode with cgi.fixpathinfo enabled (the default), can perform an out-of-bounds read and write when the path removed from SCRIPTFILENAME or PATHTRANSLATED is longer than the supplied PATHINFO, or when PATHINFO is empty. This requires a web server mapping that passes such inconsistent values, or a FastCGI listener reachable by untrusted clients. An unauthenticated remote attacker can crash the process, may obtain process memory if the application exposes PATHINFO or PATHTRANSLATED, and may corrupt memory. PHP-FPM and the Apache module are not affected.

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 Software

12 affected componentsFixes available
bitnami/libphp>=8.2.0<8.2.36
8.2.36
bitnami/libphp>=8.3.0<8.3.37
8.3.37
bitnami/libphp>=8.4.0<8.4.28
8.4.28
bitnami/libphp>=8.5.0<8.5.13
8.5.13
bitnami/php>=8.2.0<8.2.36
8.2.36
bitnami/php>=8.3.0<8.3.37
8.3.37
bitnami/php>=8.4.0<8.4.28
8.4.28
bitnami/php>=8.5.0<8.5.13
8.5.13
bitnami/php-min>=8.2.0<8.2.36
8.2.36
bitnami/php-min>=8.3.0<8.3.37
8.3.37
bitnami/php-min>=8.4.0<8.4.28
8.4.28
bitnami/php-min>=8.5.0<8.5.13
8.5.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.2.36
  2. Upgrade

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

    Fixed in 8.3.37
  3. Upgrade

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

    Fixed in 8.4.28
  4. Upgrade

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

    Fixed in 8.5.13
  5. Upgrade

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

    Fixed in 8.2.36
  6. Upgrade

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

    Fixed in 8.3.37
  7. Upgrade

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

    Fixed in 8.4.28
  8. Upgrade

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

    Fixed in 8.5.13
  9. Upgrade

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

    Fixed in 8.2.36
  10. Upgrade

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

    Fixed in 8.3.37
  11. Upgrade

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

    Fixed in 8.4.28
  12. Upgrade

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

    Fixed in 8.5.13
  13. Upgrade

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

    Fixed in 8.2.36
  14. Upgrade

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

    Fixed in 8.3.37
  15. Upgrade

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

    Fixed in 8.4.28
  16. Upgrade

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

    Fixed in 8.5.13

Event History

Nov 27, 2026
Advisory Published
via OSV·05:47 AM
Data Sourced
via OSV·05:47 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Only the PHP CGI binary (php-cgi) running in CGI or FastCGI mode is affected. A web server must pass inconsistent SCRIPT_FILENAME or PATH_TRANSLATED and PATH_INFO values, or the FastCGI listener must be reachable by untrusted clients.

2

Is the default PHP configuration sufficient for exploitation?

cgi.fix_pathinfo is enabled by default, but that alone is not sufficient. Exploitation also requires the relevant inconsistent path values from the web-server mapping, or untrusted access to a FastCGI listener.

3

Are PHP-FPM and Apache module deployments affected?

No. PHP-FPM and the Apache PHP module are not affected by this issue.

4

What could an unauthenticated attacker do?

An unauthenticated remote attacker may crash the PHP-CGI process or corrupt memory. They may also obtain process memory if the application exposes PATH_INFO or PATH_TRANSLATED.

5

Which PHP releases need remediation?

Affected releases are PHP versions before 8.2.36, 8.3 releases before 8.3.37, 8.4 releases before 8.4.28, and 8.5 releases before 8.5.13.

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