Skip to content
Medium 8.1

PHPのphp-cgiに脆弱性、認証なしで攻撃されメモリが壊れるおそれ

CVE-2026-129538 First seen on SecPulse

Summary

PHPのphp-cgiで、PATH_INFOの補正時に範囲外の読み書きが起きる脆弱性が公表されました。認証を必要としない遠隔の攻撃者がプロセスをクラッシュさせたり、メモリの内容を取得したりするおそれがあります。PHP 8.2.36、8.3.37、8.4.28、8.5.13以降に修正版が公開されているため、該当する版を使っている場合は修正版への更新を急ぐ必要があります。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

PHPのphp-cgiで、PATH_INFOの補正時に範囲外の読み書きが起きる脆弱性が公表されました。認証を必要としない遠隔の攻撃者がプロセスをクラッシュさせたり、メモリの内容を取得したりするおそれがあります。PHP 8.2.36、8.3.37、8.4.28、8.5.13以降に修正版が公開されているため、該当する版を使っている場合は修正版への更新を急ぐ必要があります。

Affected packages

PackageAffected → Fixed
PHP GroupPHP
< 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13
Bitnamilibphp
≥ 8.2.0, < 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13
Bitnamiphp
≥ 8.2.0, < 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13
Bitnamiphp-min
≥ 8.2.0, < 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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

The PHP CGI binary (php-cgi), in CGI and FastCGI mode with cgi.fix_pathinfo enabled (the default), can perform an out-of-bounds read and write when the path removed from SCRIPT_FILENAME or PATH_TRANSLATED is longer than the supplied PATH_INFO, or when PATH_INFO 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 PATH_INFO or PATH_TRANSLATED, 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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details