CVE-2024-5585 Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)
proc_open() 의 $command 파라미터를 통해 명령 주입 (bypass CVE-2024-1874 수정)
설명
PHP 버전 8.1.* 8.1.29, 8.2.* 8.2.20, 8.3.* 8.3.8 이전에서는 명령 이름에 후행 공간이 포함되어 있으면 CVE-2024-1874에 대한 수정이 작동하지 않습니다. 원래 문제: 배열 구문과 함께 proc_open() 명령을 사용할 때 이스케이프가 불충분하기 때문에 실행된 명령의 인수가 악의적인 사용자에 의해 제어되는 경우 사용자는 Windows 셸에서 임의의 명령을 실행하는 인수를 제공할 수 있습니다.
원문 보기
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: when using proc_open() command with array syntax, due to insufficient escaping, if the arguments of the executed command are controlled by a malicious user, the user can supply arguments that would execute arbitrary commands in Windows shell.
영향 받는 제품 제품 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 이상
참고 자료 5건
- github.com https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 (새 창)
- 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-20240726-0002/ (새 창)
- openwall.com http://www.openwall.com/lists/oss-security/2024/06/07/1 (새 창)