CVE-2024-4577 Argument Injection in PHP-CGI
PHP-CGI에서의 인수 주입
설명
PHP 버전 8.1.* 8.1.29, 8.2.*, 8.2.20, 8.3.* 이전 8.3.8에서 Windows에서 Apache 및 PHP-CGI를 사용할 때 시스템이 특정 코드 페이지를 사용하도록 설정되어있는 경우 Windows는 "Best-Fit"행동을 사용하여 Win32 API 함수에 주어진 명령 행의 문자를 대체 할 수 있습니다. PHP CGI 모듈은 이러한 문자를 PHP 옵션으로 잘못 해석하여 악의적 인 사용자가 PHP 바이너리로 옵션을 전달하여 스크립트의 소스 코드를 공개하고 서버에서 임의 PHP 코드를 실행할 수 있습니다.
원문 보기
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.
영향 받는 제품 제품 2개
-
PHP Group
PHP
영향 받는 버전
- 버전 정보 확인 필요
해결 버전
해결된 버전 정보가 없습니다.
-
NVD 기준 해결 버전 있음
php
php
영향 받는 버전
- 8.1.0 이상 8.1.29 미만
- 8.2.0 이상 8.2.20 미만
- 8.3.0 이상 8.3.8 미만
해결 버전
- 8.1.29 이상
- 8.2.20 이상
- 8.3.8 이상
참고 자료 19건
- arstechnica.com https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/ (새 창)
- blog.orange.tw https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html (새 창)
- cert.be https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately (새 창)
- devco.re https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/ (새 창)
- github.com https://github.com/11whoami99/CVE-2024-4577 (새 창)
- github.com https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv (새 창)
- github.com https://github.com/rapid7/metasploit-framework/pull/19247 (새 창)
- github.com https://github.com/watchtowrlabs/CVE-2024-4577 (새 창)
- github.com https://github.com/xcanwin/CVE-2024-4577-PHP-RCE (새 창)
- isc.sans.edu https://isc.sans.edu/diary/30994 (새 창)
- labs.watchtowr.com https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ (새 창)
- security.netapp.com https://security.netapp.com/advisory/ntap-20240621-0008/ (새 창)
- imperva.com https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/ (새 창)
- php.net https://www.php.net/ChangeLog-8.php#8.1.29 (새 창)
- php.net https://www.php.net/ChangeLog-8.php#8.2.20 (새 창)
- php.net https://www.php.net/ChangeLog-8.php#8.3.8 (새 창)
- openwall.com http://www.openwall.com/lists/oss-security/2024/06/07/1 (새 창)