CVE-2026-129481
위험도 심각 ASEC 언급 5건
- 우선순위 이 사이트의 참고 점수
- 10.96
- 위험도 CVSS 4.0 · 0~10점
- 9.2
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 8.6%
- 공개일 NVD
- 2026-11-19
설명 NVD 원문
Use-after-free after interrupted session shutdown. The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache. This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
위험도 세부 항목 CVSS 4.0
- 공격 경로
- 네트워크(원격) AV:N
- 공격 난이도
- 높음(어려움) AC:H
- 공격 전제 조건
- 있음 AT:P
- 필요한 권한
- 없음(로그인 불필요) PR:N
- 사용자 행동 필요
- 필요 없음 UI:N
- 정보 유출(기밀성)
- 높음 VC:H
- 데이터 변조(무결성)
- 높음 VI:H
- 서비스 중단(가용성)
- 높음 VA:H
- 연결된 시스템 정보 유출
- 없음 SC:N
- 연결된 시스템 변조
- 없음 SI:N
- 연결된 시스템 중단
- 없음 SA:N
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
조치 방법 22행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| KISA | PHP 8.3 | 패치(업데이트) | 8.3.37 이상 | KISA-72318 | 영향받는 버전: 8.3.37 미만 | |
| KISA | PHP 8.4 | 패치(업데이트) | 8.4.28 이상 | KISA-72318 | 영향받는 버전: 8.4.28 미만 | |
| KISA | PHP 8.5 | 패치(업데이트) | 8.5.13 이상 | KISA-72318 | 영향받는 버전: 8.5.13 미만 |
Microsoft 조치 (KB 업데이트) 2행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Microsoft | azl3 php 8.3.36-1 on Azure Linux 3.0 | 패치(업데이트) | Release Notes | Release Notes | 보안 업데이트 | |
| Microsoft | azl4 php 8.4.27-7.azl4 on Azure Linux 4.0 | 패치(업데이트) | Release Notes | Release Notes | 보안 업데이트 |
Red Hat 조치 17행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Red Hat | Red Hat (공통) | 완화 조치 | 원문 | See the security bulletin for a detailed mitigation procedure. | ||
| Red Hat | Red Hat Enterprise Linux 6 | 수정판 없음 | php | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 7 | 수정판 없음 | php | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 8 | 수정판 없음 | php:7.4/php | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 8 | 수정판 없음 | php:8.2/php | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 9 | 수정판 없음 | php | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 9 | 수정판 없음 | php:8.2/php | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 10 | 패치(업데이트) | php | 8.3.37-1.el10_3 | RHSA-2026:102300 | |
| Red Hat | Red Hat Enterprise Linux 10 | 패치(업데이트) | php8.4 | 8.4.28-1.el10_3 | RHSA-2026:100821 | |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | 패치(업데이트) | php | 8.3.37-1.el10_0 | RHSA-2026:102934 | |
| Red Hat | Red Hat Enterprise Linux 10.2 Extended Update Support | 패치(업데이트) | php | 8.3.37-1.el10_2 | RHSA-2026:102302 | |
| Red Hat | Red Hat Enterprise Linux 10.2 Extended Update Support | 패치(업데이트) | php8.4 | 8.4.28-1.el10_2 | RHSA-2026:101251 | |
| Red Hat | Red Hat Enterprise Linux 9 | 패치(업데이트) | php:8.3-9090020261119185155.9 | RHSA-2026:102226 | ||
| Red Hat | Red Hat Enterprise Linux 9 | 패치(업데이트) | php:8.4-9090020261119185955.9 | RHSA-2026:102255 | ||
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | 패치(업데이트) | php:8.3-9060020261121170731.9 | RHSA-2026:102684 | ||
| Red Hat | Red Hat Enterprise Linux 9.8 Extended Update Support | 패치(업데이트) | php:8.3-9080020261120133305.9 | RHSA-2026:101252 | ||
| Red Hat | Red Hat Hardened Images | 패치(업데이트) | php-main | 8.5.13-0.1.hum1 | RHSA-2026:101658 |
살펴볼 장비 초안
분류 대상이 아닙니다 (지금은 KEV 만 분류합니다). 안전하다는 뜻이 아닙니다.
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 6건
KISA PHP 제품 보안 업데이트 권고 2026-11-19
□ 개요 o The PHP Group은 자사 제품에서 발생하는 취약점을 해결한 보안 업데이트 발표 [1][2][3][4] o 영향을 받는 버전을 사용 중인 사용자는 해결 방안에 따라 최신 버전으로 업데이트 권고 □ 설명 o PHP에서 발생하는 Improper Input Validation, Deserialization of Untrusted Data 취약점(CVE-2026-115560) [1][5] o PHP에서 발생하는 Time-of-check Time-of-use (TOCTOU) Race Condition, Improper Synchronization 취약점(CVE-2026-126714) [1][6] o PHP에서 발생하는 Use After Free, Incomplete Cleanup 취약점(CVE-2026-129182) [1][7] o PHP에서 발생하는 HTTP Request Smuggling, Always-Incorrect Control Flow Implementation 취약점(CVE-2026-129289) [1][8] o PHP에서 발생하는 Use After Free 취약점(CVE-2026-129474) [1][9] o PHP에서 발생하는 Use After Free, Incomplete Cleanup 취약점(CVE-2026-129481) [1][10] o PHP에서 발생하는 Use After Free, Incomplete Cleanup 취약점(CVE-2026-129496) [1][11] o PHP에서 발생하는 Uncontrolled Resource Consumption, Inefficient Algorithmic Complexity 취약점(CVE-2026-127960) [1][12] o PHP에서 발생하는 Cleartext Transmission of Sensitive Information 취약점(CVE-2026-128064) [1][13] o PHP에서 발생하는 Improper Verification of Cryptographic Signature, Algorithm Downgrade 취약점(CVE-2026-128090) [1][14] o PHP에서 발생하는 Use After Free 취약점(CVE-2026-129291) [1][15] o PHP에서 발생하는 Cross-site Scripting 취약점(CVE-2026-129292) [1][16] o PHP에서 발생하는 Integer Overflow or Wraparound, Unchecked Return Value 취약점(CVE-2026-129438) [1][17] o PHP에서 발생하는 Double Free, Use After Free 취약점(CVE-2026-129501) [1][18] o PHP에서 발생하는 Use After Free 취약점(CVE-2026-129506) [1][19] o PHP에서 발생하는 Out-of-bounds Read, Out-of-bounds Write, Use of Out-of-range Pointer Offset 취약점(CVE-2026-129538) [1][20] o PHP에서 발생하는 Out-of-bounds Read, Use of Uninitialized Resource 취약점(CVE-2026-15353) [1][21] o PHP에서 발생하는 Integer Overflow or Wraparound 취약점(CVE-2026-48841) [1][22] □ 영향을 받는 제품 및 해결 방안 취약점 제품명 영향받는 버전 해결 버전 CVE-2026-115560 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-115560 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-115560 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-115560 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-126714 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-126714 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-126714 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-126714 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129182 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129289 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-129289 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129289 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129289 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129474 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129481 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129481 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129481 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129496 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-129496 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129496 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129496 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-127960 PHP 8.2 8.2.28 이상 8.2.36 미만 8.2.36 이상 CVE-2026-127960 PHP 8.3 8.3.18 이상 8.3.37 미만 8.3.37 이상 CVE-2026-127960 PHP 8.4 8.4.5 이상 8.4.28 미만 8.4.28 이상 CVE-2026-127960 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-128064 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-128064 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-128064 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-128064 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-128090 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-128090 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-128090 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-128090 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129291 PHP 8.2 8.2.7 이상 8.2.36 미만 8.2.36 이상 CVE-2026-129291 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129291 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129291 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129292 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-129292 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129292 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129292 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129438 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129501 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129501 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129506 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-129506 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129506 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129506 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-129538 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-129538 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-129538 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-129538 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-15353 PHP 8.2 8.2.36 미만 8.2.36 이상 CVE-2026-15353 PHP 8.3 8.3.37 미만 8.3.37 이상 CVE-2026-15353 PHP 8.4 8.4.28 미만 8.4.28 이상 CVE-2026-15353 PHP 8.5 8.5.13 미만 8.5.13 이상 CVE-2026-48841 PHP 8.5 8.5.13 미만 8.5.13 이상 ※ PHP 8.1 이하 버전은 공식 보안 지원이 종료되어 지원 중인 버전으로 업그레이드 권고 [1] ※ PHP 7.4, 8.0, 8.1 버전은 벤더사별 해결 버전 및 임시 완화 조치가 상이할 수 있으므로, 해당 벤더사의 보안 권고를 확인하여 조치 권고 ※ PHP 8.2는 2026.12.31. 보안 지원 종료 예정이므로 PHP 8.3 이상으로 전환 권고 [4] ※ 하단의 참고 사이트를 확인하여 업데이트 수행 [1][2][3][4] □ 참고사이트 [1] https://www.php.net/archive/2026.php#2026-11-19-4 [2] https://www.php.net/archive/2026.php#2026-11-19-3 [3] https://www.php.net/archive/2026.php#2026-11-19-2 [4] https://www.php.net/archive/2026.php#2026-11-19-1 [5] https://github.com/php/php-src/security/advisories/GHSA-658j-r8rw-q6mx [6] https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp [7] https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m [8] https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6 [9] https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2 [10] https://github.com/php/php-src/security/advisories/GHSA-g3vh-838c-65v7 [11] https://github.com/php/php-src/security/advisories/GHSA-gr4f-wgx5-jpfv [12] https://github.com/php/php-src/security/advisories/GHSA-mmf9-xm3v-hg2x [13] https://github.com/php/php-src/security/advisories/GHSA-f6gg-rchx-xw8j [14] https://github.com/php/php-src/security/advisories/GHSA-68fq-fh7h-f8gr [15] https://github.com/php/php-src/security/advisories/GHSA-jm4m-qfqx-967m [16] https://github.com/php/php-src/security/advisories/GHSA-3mg3-cr28-46gc [17] https://github.com/php/php-src/security/advisories/GHSA-mg3p-mxj9-g2mm [18] https://github.com/php/php-src/security/advisories/GHSA-x8r7-mg3g-74hg [19] https://github.com/php/php-src/security/advisories/GHSA-4646-p932-gw34 [20] https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564 [21] https://github.com/php/php-src/security/advisories/GHSA-q23r-hr55-xmpg [22] https://github.com/uriparser/uriparser/blob/uriparser-1.0.3/ChangeLog □ 문의사항 o 한국인터넷진흥원 사이버민원센터 : 국번없이 118 □ 작성 : 디지털위협대응본부 취약점관리센터
ASEC PHP2Shell 발표된 지 얼마나 됐다고 또 PHP 취약점이? 2026-11-20
바쁘신 분들을 위한 세 줄 요약 1. PHP 개발팀이 2026년 11월 19일 치명적 등급 취약점 7건을 고친 보안 업데이트를 배포했으며, 아직 실제 공격에 악용된 사례는 보고되지 않았다. 2. 이 가운데 웹 서버와 PHP-FPM의 연결을 재사용하는 환경의 요청 스머글링, 세션 업로드 진행 기능을 이용한 객체 주입, PHP 8.5의 매직 메서드 메모리 오류는 원격 코드 실행까지 확인되어 가장 위험하다. 3. PHP 8.5.13, 8.4.28, 8.3.37, 8.2.36 이상으로 바로 업그레이드해야 하며, 공식 패치가 없는 8.1 이하는 지원 버전으로 옮겨야 하고, 당장 업그레이드가 어렵다면 연결 재사용과 업로드 진행 기능을 끄는 등의 임시 완화 조치를 적용해야 한다. 읽기 전, 이해를 위한 용어 정리 본 글에는 웹 서버와 PHP 내부 동작에 관한 용어가 자주 나온다. 본문을 읽기 전에 아래 용어를 먼저 짚어 두면 흐름을 따라가기 쉽다. PHP-FPM : 웹 서버가 받은 요청 가운데 PHP 코드 실행이 필요한 요청을 넘겨받아 처리하는 별도 프로그램이다. nginx나 Apache 같은 웹 서버와 PHP-FPM은 FastCGI라는 정해진 형식으로 대화한다. 워커 : PHP-FPM이 미리 띄워 두는 작업 프로세스로, 워커 하나가 여러 요청을 차례로 처리한다. 그래서 앞 요청이 남긴 흔적이 같은 워커가 처리하는 다음 요청에 영향을 줄 수 있다. 세션 : 로그인 상태처럼 사용자별 정보를 서버에 잠시 저장해 두는 기능이다. 사용자는 세션 ID라는 번호표를 갖고 있고, PHP는 기본적으로 세션을 서버의 파일로 저장한다. 직렬화와 역직렬화 : 프로그램 안의 데이터를 저장하기 좋은 글자로 바꾸는 것을 직렬화, 그 글자를 다시 데이터로 되돌리는 것을 역직렬화라고 한다. 이때 되돌려지는 데이터에는 숫자나 글자 같은 단순한 값뿐 아니라, 만들어지거나 사라질 때 정해진 코드가 자동으로 실행되는 ‘객체’도 포함될 수 있다. 공격자가 만든 글자가 역직렬화되면서 객체로 되살아나는 것을 객체 주입이라고 한다. Use-After-Free : 프로그램이 다 썼다고 반납한 메모리를 실수로 다시 사용하는 오류다. 그 자리에 다른 데이터가 들어와 있으면 프로그램이 엉뚱하게 동작하거나 멈추고, 공격자가 그 자리에 원하는 데이터를 미리 넣어 둘 수 있으면 코드 실행까지 이어질 수 있다. 개요 한국 시간으로 2026년 11월 19일 오후 11시경, PHP 개발팀은 지원 중인 모든 버전에 보안 업데이트를 배포했다. 패치가 적용된 버전은 PHP 8.5.13, 8.4.28, 8.3.37, 8.2.36이며, 같은 날 나온 8.6.0에도 같은 수정이 들어 있다. PHP 8.5.13 변경 기록에는 모두 18개의 CVE가 실려 있는데, 이 중 1개는 PHP에 함께 묶여 배포되는 URI 처리 라이브러리인 uriparser의 취약점이고 나머지 17개가 PHP 자체의 취약점이다. 그중 7건이 가장 높은 등급인 ‘치명적’ 등급으로 분류되었다. 이번 업데이트는 한 달 전인 10월에 발표했던 원격 코드 실행 취약점 PHP2Shell 이슈 긴급 패치의 연장선에 있다. 이번 7건 가운데 일부는 그때의 수정이 불완전해서 다시 고쳐진 것이고, 일부는 같은 계열의 새로운 문제다. 대부분은 기본 설정이 아닌 특정 설정이나 코드 패턴이 갖춰져야 발생하지만, 일부는 조건만 맞으면 공격자가 서버에서 원하는 코드를 실행할 수 있을 만큼 위험하다. 2026년 11월 19일 기준으로 이 취약점들이 실제 공격에 악용된 사례는 보고되지 않았다. 미국 사이버보안·인프라보안청인 CISA가 관리하는 ‘실제 악용된 취약점 목록’에도 아직 오르지 않았다. 본 글에서는 ‘치명적’ 등급으로 분류된 7건의 취약점에 대해서 다루고자 한다. 먼저 각 취약점의 발생 원인에 대해 설명하고, 이어서 각 취약점이 어떤 조건에서 발생하며 공격자가 무엇을 더 갖춰야 실제 피해로 이어지는지 정리한다. 마지막으로 패치와 임시 완화 방법을 소개한다. 취약점 원인 7건의 취약점은 원인에 따라 크게 세 갈래로 나눌 수 있다. 웹 서버와 PHP 사이의 통신 문제 1건: 한 요청이 어디서 끝나고 다음 요청이 어디서 시작하는지를 잘못 구분하는 문제 세션 데이터를 잘못 해석하는 문제 2건: 저장된 세션을 읽는 과정에서 공격자가 넣은 데이터가 프로그램 객체로 바뀌는 문제 이미 반납한 메모리를 다시 사용하는 문제 4건: 보안 분야에서 ‘Use-After-Free’라고 부르는 메모리 오류 각 갈래에 속한 취약점이 어떤 이유로 생겼는지 하나씩 살펴보자. CVE-2026-129289 : PHP-FPM 요청 스머글링 CVE-2026-129289는 PHP-FPM이 앞 요청에서 읽고 남은 내용을 제대로 정리하지 않아, 그 남은 내용을 새로운 요청으로 잘못 받아들이기 때문에 발생한 취약점이다. 웹 서버는 성능을 높이기 위해 요청마다 PHP-FPM과 연결을 새로 맺지 않고 한 번 맺은 연결로 여러 요청을 이어서 보내도록 설정할 수 있는데, 이렇게 연결을 재사용하는 환경에서 문제가 발생한다. PHP 애플리케이션이 요청 본문을 읽는 통로를 열어 놓고 끝까지 읽지 않으면, 본문의 뒷부분이 연결 안에 그대로 남게 된다. 만일 사용자가 일부러 형식이 깨진 파일 업로드 요청을 보내 PHP가 본문 중간에서 읽기를 멈추게 하면 PHP-FPM은 어디까지 읽었는지를 잊어버린 채 남은 뒷부분을 같은 연결로 들어온 새로운 요청처럼 처리해 버린다. 공격자는 이 점을 노려 본문 뒷부분에 요청 형식을 갖춘 가짜 요청을 미리 넣어 두는데, 이 가짜 요청에는 어떤 PHP 파일을 실행할지와 PHP 설정을 어떻게 바꿀지까지 마음대로 적을 수 있다. 웹 서버 입장에서는 정상 요청 하나를 넘겼을 뿐이지만 PHP-FPM은 공격자가 숨겨 둔 요청까지 실행하게 되는 것이다. 이처럼 요청 안에 다른 요청을 몰래 끼워 넣는 공격을 요청 스머글링(Request Smuggling)이라고 부르며 해당 처리 방식은 PHP 5.6.0부터 존재했다. CVE-2026-115560 : 세션 직렬화 방식 불일치 CVE-2026-115560은 세션을 저장하는 쪽과 읽는 쪽이 서로 다른 방식으로 데이터를 해석하기 때문에 발생한 취약점으로, 이 해석 차이로 인해 공격자가 넣은 글자가 프로그램 객체로 활용될 수 있다. PHP는 세션 데이터를 파일 같은 저장소에 글자로 바꿔 저장하는데, 이때 따르는 규칙인 직렬화 방식이 여러 가지 있다. 기본 방식은 세션 항목마다 ‘이름|내용’ 형태로 이름과 내용 사이에 세로선 기호를 넣어 이어 적고, 읽을 때도 세로선이 나오면 그 앞까지를 이름, 그 뒤부터를 내용으로 보고 잘라 읽는다. 반면 다른 방식 중에서는 이름의 글자 수를 함께 적어 두고 그 길이만큼을 이름으로 읽는 방식도 있는데, 이 방식에서는 이름 안에 세로선이 들어 있어도 그저 이름을 이루는 글자 하나로 취급한다. 같은 세션을 쓸 때와 읽을 때 같은 방식을 사용하면 아무 문제가 없지만, 여러 애플리케이션이나 여러 PHP-FPM 풀(Pool)이 하나의 세션 저장소를 함께 쓸 때 문제가 발생할 수 있다. 예를 들어 쓰는 쪽은 글자 수 방식을, 읽는 쪽은 기본 방식을 사용하면 이야기가 달라진다. 쓰는 쪽에서는 이름의 일부에 불과했던 세로선을 읽는 쪽은 ‘여기서 이름이 끝나고 내용이 시작된다’는 표시로 받아들여, 세로선 뒤에 이어지는 이름의 나머지 글자를 세션 내용, 즉 되살려야 할 데이터로 읽어 버리기 때문이다. 물론 위 차이만으로는 공격이 성립하지 않는다. 세션에 무엇을 어떤 이름으로 저장할지는 보통 애플리케이션이 정하므로, 공격자에게는 세션 항목의 이름에 세로선과 원하는 글자를 넣을 방법이 없기 때문이다. 이 빈틈을 열어 주는 것이 파일 업로드 진행 상황을 세션에 기록하는 기능이다. 이 기능은 파일 업로드가 얼마나 진행되었는지를 세션에 새 항목으로 저장하는데, 그 항목의 이름을 ‘업로드 진행 상황’을 뜻하는 정해진 앞부분 뒤에 업로드 요청에 담긴 값을 그대로 이어 붙여 만든다. 게다가 이 저장은 애플리케이션 코드가 실행되기 전에 PHP가 알아서 처리하므로, 로그인하지 않은 공격자도 업로드 요청 하나만 보내면 세션 항목의 이름을 원하는 글자로 채울 수 있다. 공격자는 바로 이 이름에 세로선 기호와 함께, 되살아났을 때 원하는 동작을 하도록 설계한 객체 데이터를 이어서 넣어 둔다. 쓰는 쪽에서는 이 모두가 조금 이상하게 생긴 항목 이름일 뿐이지만, 읽는 쪽은 세로선 뒤의 글자를 세션 내용으로 보고 그대로 되살린다. 그 결과 세션을 읽는 순간 공격자가 설계한 객체가 되살아나는 객체 주입이 일어난다. 10월 PHP2Shell 취약점 중 하나도 이 업로드 진행 기능과 관련이 있었다. 일부 보안 업체는 그때의 수정이 막지 못한 또 다른 경로라는 이유로 CVE-2026-115560 취약점을 가리켜 ‘세 번째 PHP2Shell’이라고 부르기도 한다. 다만 10월의 두 취약점이 요청이 비정상적으로 끝날 때 생기는 메모리 손상에서 비롯된 것과 달리, 이 취약점은 역직렬화로 인한 객체 주입이라는 점에서 원인 자체는 다르다. 즉 공격이 들어오는 통로와 원격 코드 실행이라는 최종 피해는 같지만, 문제가 생기는 방식은 다르다. CVE-2026-126714 : 일부만 덮어쓴 세션 파일 PHP는 세션 파일을 경우에 따라 기존 내용을 지우지 않고 덮어쓰는 방식으로 저장하는데, 덮어쓰던 중에 작업이 강제로 끊기면 새 내용과 이전 내용이 뒤섞여 남고 그 뒤섞인 내용이 프로그램 객체로 해석될 수 있다. 이로 인해 발생한 취약점이 바로 CVE-2026-126714이다. PHP는 세션을 기본적으로 파일에 저장하는데, 새 데이터가 기존 파일보다 짧으면 파일을 먼저 비운 뒤에 쓴다. 그러나 길이가 같거나 더 길 경우에는 어차피 새 데이터가 기존 내용을 모두 덮는다고 보고 파일을 비우지 않은 채 맨 앞에서부터 바로 덮어쓴다. 평소에는 이 방식으로도 문제가 없지만, 덮어쓰는 도중에 프로세스가 강제로 종료되면 파일에 새 데이터의 앞부분과 이전 데이터의 뒷부분이 섞여 남는다. 이렇게 섞인 파일을 다음 요청에서 읽으면 새 데이터와 이전 데이터가 이어진 부분이 직렬화된 객체처럼 해석될 수 있고, 공격자가 두 데이터를 미리 설계해 두면 원하는 객체를 만들어 낼 수 있으므로 결과적으로 앞에서 설명했던 CVE-2026-115560처럼 객체 주입으로 이어진다. 다만 쓰는 쪽과 읽는 쪽이 같은 기본 직렬화 방식을 써도 발생한다는 점이 CVE-2026-115560과 다른 점이다. CVE-2026-129496 : 시간대 캐시의 Use-After-Free 이제부터 소개할 네 건은 모두 이미 반납한 메모리를 다시 사용하여 문제가 발생하는 Use-After-Free 계열 취약점이다. CVE-2026-129496은 PHP가 시작할 때 잠깐 쓰고 반납한 시간대 정보의 위치를 지우지 않고 남겨 두는 바람에 발생한 취약점으로, PHP는 나중에 요청을 처리하면서 그 정보가 아직 그 자리에 있는 줄 알고 이미 반납된 메모리를 다시 읽게 된다. PHP는 날짜와 시간을 다룰 때마다 시간대 정보를 새로 찾지 않도록 한 번 찾은 정보를 메모리에 저장해 두고 재사용한다. 그런데 PHP 프로세스가 시작되는 동안 경고 메시지가 발생하고, 이 메시지가 파일 기반 오류 로그에 기록되면, 로그에 남길 시각을 만들기 위해 꺼낸 시간대 정보가 시작 단계에서만 쓰는 임시 메모리에 저장된다. 이때 사용된 임시 메모리는 시작이 끝나면 반납된다. 보통은 그 뒤에 이어지는 초기화 과정에서 시간대 정보의 위치를 가리키는 참조를 지우기 때문에 문제가 되지 않는다. 그러나 경고가 기록되는 시점이 그 초기화보다 늦으면 참조가 지워지지 않고 그대로 남는다. 따라서 모든 시작 단계 경고가 문제를 일으키는 것이 아니라 시작 단계 후반에 파일 오류 로그로 기록되는 경고만 해당하며, 이렇게 참조가 남은 상태에서 새로 뜬 워커(프로세스)가 첫 요청을 처리하다가 다시 경고를 남기면 이미 반납된 메모리를 읽게 된다. 이런 시작 단계 경고는 주로 시간대 설정 값을 잘못 적었거나 더 이상 권장되지 않는 세션 설정을 쓸 때 나온다. CVE-2026-129481 : 세션 종료 중 중단으로 인한 Use-After-Free CVE-2026-129481은 세션을 사용하는 웹 요청 하나를 처리하고 마무리할 때, PHP가 세션을 정리하는 작업이 오류로 중간에 멈추면 지웠어야 할 메모리 위치 정보가 그대로 남기 때문에 발생한 취약점이다. 로그인한 사용자가 페이지를 여는 것처럼 세션을 쓰는 요청이라면 어떤 요청이든 마지막에는 이 정리 작업을 거친다. 세션을 시작하면 PHP는 현재 실행 중인 스크립트 파일 이름을 요청용 메모리에 기록하고 그 위치를 내부 변수에 적어 둔다. 이 내부 변수는 요청이 끝나 세션을 정리할 때 마지막 단계에서 지워진다. 그런데 그보다 앞서 PHP는 세션에 들어 있던 값을 하나씩 없애는데, 이 과정에서 PHP 자체가 아니라 웹 서비스 개발자가 작성한 PHP 코드가 실행될 수 있다. 세션에는 숫자나 글자 같은 단순한 값뿐 아니라 개발자가 만든 객체도 넣을 수 있고, 객체는 없어질 때 스스로 뒷정리를 하도록 만들어지는 경우가 많기 때문이다. 이 뒷정리 코드는 서비스 개발자가 작성한 것이므로, PHP가 세션 값을 없애는 순간 개발자의 코드가 함께 실행되는 셈이다. 예를 들어 개발자가 직접 만든 파일 입출력 통로를 세션에 넣어 두었다면, 이 단계에서 그 통로를 닫는 코드가 실행된다. 만약 그 코드에서 실행을 즉시 멈추게 하는 치명적 오류가 나면 내부 변수를 지우기 전에 정리가 중단되고, 그 사이 요청용 메모리는 통째로 반납되므로 내부 변수는 이미 사라진 메모리 위치를 가리키게 된다. 이 잘못된 위치 정보는 같은 워커가 처리하는 다음 요청에서 사용되며, 그 요청이 다른 사용자의 것이어도 상관없다. 이 취약점은 10월에 발견되었던 CVE-2026-109619의 수정이 불완전해서 남은 문제로, PHP 8.3부터 영향을 받는다. CVE-2026-129182 : 오류 호출 경로 기록의 재생성으로 인한 Use-After-Free, PHP 8.5에만 해당 CVE-2026-129182는 PHP 8.5에서 요청이 끝날 때 지운 오류 기록이 뒤이은 정리 과정에서 다시 만들어지는 경우를 고려하지 않았기 때문에 발생한 취약점으로, 다시 만들어진 기록이 곧 반납될 메모리를 가리킨 채 다음 요청까지 남는다. 프로그램에서 오류가 나면 그 지점에 이르기까지 어떤 함수가 어떤 함수를 차례로 불렀는지를 거슬러 올라가며 적은 기록을 남길 수 있다. 예를 들어 주문 처리 함수가 결제 함수를 부르고 결제 함수가 카드 확인 함수를 부른 뒤 거기서 오류가 났다면 이 순서가 기록에 남는데, 단순하게 표현하자면 “호출 경로 기록”이라고 볼 수 있다. PHP 8.5부터는 치명적 오류가 나면 이 호출 경로 기록을 함께 남기며, 기본 설정 값은 켜져 있는 상태다. 호출 경로 기록은 요청용 메모리를 사용해 만들어지기 때문에, 10월에 나온 8.5.12 패치는 요청이 끝날 때 이 기록을 지우도록 했다. 하지만 패치는 기록을 지운 뒤에 이어지는 마무리 단계에서 다시 치명적 오류가 발생할 경우에 기록이 또 만들어진다는 것을 놓쳤다. 그렇다면 마무리 단계에서는 왜 오류가 날 수 있을까? PHP는 서버 전체에 적용되는 기본 설정과 별도로, 특정 폴더나 경로에만 다른 설정을 적용할 수 있다. 이렇게 경로별 설정을 쓰면 PHP는 그 경로의 요청을 처리하는 동안만 설정을 바꿔 두었다가, 요청이 끝나면 다음 요청을 위해 서버 전체 설정으로 되돌려 놓는다. 그런데 메모리 한도나 출력 압축 같은 일부 설정은 조합에 따라 이렇게 되돌리는 과정에서 치명적 오류가 날 수 있다. 서버 전체와 특정 경로의 메모리 한도를 서로 다르게 정해 두었거나, 서버 전체에서는 출력 압축을 켜 두고 특정 경로에서는 끈 경우가 그 예다. 이 오류로 다시 만들어진 기록은 곧 반납될 요청용 메모리를 가리키는 채로 남아, 같은 워커가 처리하는 다음 요청에서 사용된다. CVE-2026-129474 : 매직 메서드의 오류 호출 경로 기록 Use-After-Free, PHP 8.5에만 해당 CVE-2026-129474는 PHP 8.5에서 매직 메서드가 호출을 대신 받아 실제 처리 기능에 전달하는 순간에 치명적 오류가 나면, 이미 반납된 메모리를 가리키는 값이 오류 기록에 그대로 담기기 때문에 발생한 취약점이다. 매직 메서드란 프로그램이 존재하지 않는 메서드를 호출했을 때 PHP가 대신 불러 주는 특수한 메서드다. 예를 들어 로그 기록 도구에 ‘경고 남기기’라는 메서드가 따로 없더라도, 프로그램이 이 이름으로 호출하면 매직 메서드가 그 호출을 대신 받아 실제로 기록을 처리하는 기능에 전달해 줄 수 있다. 즉 프로그램이 부른 이름과 실제로 일을 하는 기능 사이에서 중간 다리 역할을 하는 것이다. 그래서 로그 기록 도구나 데이터베이스 라이브러리, Laravel의 파사드 기능처럼 받은 호출을 실제 처리 기능으로 넘겨주는 코드에서 많이 쓰인다. 매직 메서드로 호출을 넘기는 짧은 순간에 치명적 오류가 나면 앞에서 설명한 호출 경로 기록이 만들어지는데, 이때 각 함수에 어떤 값이 전달되었는지도 함께 적힌다. 문제는 바로 그 순간 기록되는 값 가운데 일부가 이미 반납된 메모리 자리를 가리키고 있을 수 있다는 점이다. 공격자는 보내는 요청의 크기를 조절해서 PHP가 정확히 이 순간에 메모리 한도를 넘겨 치명적 오류를 일으키도록 만든다. 이후 반납된 그 자리에 다른 데이터가 들어오면 PHP는 기록을 읽으면서 원래 값 대신 새로 들어온 데이터를 사용하게 되므로, 공격자는 그 자리에 원하는 데이터를 채워 넣는 방식으로 이를 악용할 수 있다. 다만 호출 경로 기록에는 어떤 함수를 거쳤는지만 적을 수도 있고, 각 함수에 어떤 값이 전달되었는지까지 함께 적을 수도 있으며, 둘 중 어느 쪽으로 할지는 설정으로 정한다. 이 취약점은 전달된 값까지 적도록 설정된 경우에만 발생한다. 전달된 값을 적지 않으면 반납된 메모리를 가리키는 값이 기록에 들어갈 일도 없기 때문이다. 트리거 조건과 악용 조건 취약점이 있다고 해서 곧바로 공격에 성공하는 것은 아니다. 여기서는 두 단계로 나눠서 본다. 트리거 조건 : 버그가 실제로 발생하려면 서버 설정, 애플리케이션 코드, 요청 순서가 어떻게 갖춰져야 하는가 악용 조건 : 버그가 발생한 뒤, 공격자가 그것을 코드 실행 같은 실제 피해로 이어 가려면 무엇이 더 필요한가 CVE 수정 지원 계열 공격 위치 트리거 조건 악용 조건 확인된 최대 피해 CVE-2026-129289 FPM 요청 스머글링 8.2~8.5 원격, 로그인 불필요 FastCGI 연결 재사용 설정 + 요청 본문을 끝까지 읽지 않는 애플리케이션 경로 + 조작된 업로드 요청 서버에 있는 PHP 파일 경로 하나만 알면 됨 원격 코드 실행 CVE-2026-115560 세션 직렬화 불일치 8.2~8.5 원격 업로드 진행 기능 켜짐 + 세션 저장소를 공유하는 쪽끼리 직렬화 방식이 다름 대상 세션 ID + 애플리케이션 안의 가젯 체인 명령 실행 CVE-2026-126714 세션 파일 일부 덮어쓰기 8.2~8.5 원격, 로그인 불필요 파일 세션 사용 + 기존과 같거나 더 긴 데이터를 덮어쓰는 도중 프로세스 강제 종료 세션 ID 지정 + 원하는 시점에 쓰기 중단 + 섞인 데이터 설계 + PHP 내장 클래스의 메모리 손상 결함 원격 코드 실행 , 원 연구자 보고 기준 CVE-2026-129496 시간대 캐시 UAF 8.2~8.5 원격, 프로세스 다운에 한함 시작 단계 후반의 경고가 파일 오류 로그에 기록됨 + 새 워커의 첫 요청에서 경고 발생 코드 실행에는 메모리 주소 파악 + 메모리 배치 조작 + 실행 환경별 추가 설정 필요 원격 요청으로 프로세스 다운, 메모리 주소를 아는 실험 환경에서 코드 실행 CVE-2026-129481 세션 종료 UAF 8.3~8.5 원격, 앱 구조에 따라 다름 세션 정리 중 호출되는 코드에서 치명적 오류 발생 다음 요청이 같은 워커로 가야 함 Use-After-Free 재현, 프로세스 다운은 가능한 영향으로 언급 CVE-2026-129182 호출 경로 기록 재생성 UAF 8.5 원격, 특수 설정 필요 정리 단계 설정 복원 실패 + 다음 요청 초반의 경고, FPM에서는 웹 서버가 PHP 설정값을 넘기는 구성 필요 코드 실행 방법과 그 조건은 공개되지 않음 프로세스 다운, 코드 실행은 시연되지 않음 CVE-2026-129474 매직 메서드 UAF 8.5 원격, 시연된 경로는 로그인 불필요 함수에 전달된 값까지 기록하는 설정 + 매직 메서드 진입 중 메모리 한도 초과 요청 크기 조절 + 메모리 주소 파악 원격 코드 실행 [표 1] Critical 취약점 7건에 대한 조사 내역 표의 두 번째 열은 결함의 전체 영향 범위가 아니라, 이번에 공식 수정이 제공된 지원 계열을 나타낸다. 결함 자체는 이보다 훨씬 오래전부터 존재한 경우가 많다. CVE-2026-129289는 PHP 5.6.0부터, CVE-2026-115560은 5.4.0부터, CVE-2026-126714는 4.1.0부터 같은 동작이 있었으므로, 지원이 끝난 오래된 버전도 영향을 받을 수 있다. 표에서 보듯이 위험도는 취약점마다 크게 다르다. 아래에서 하나씩 자세히 설명한다. CVE-2026-129289 : 설정만 맞으면 가장 쉽게 악용되는 취약점 트리거 조건 웹 서버가 PHP-FPM과의 연결을 끊지 않고 재사용하도록 설정되어 있어야 한다. nginx, Apache, HAProxy 모두 이런 연결 유지 기능을 켤 수 있으며, 그 기능을 켜 둔 경우가 여기에 해당한다. 여기에 애플리케이션이 요청 본문을 열어 놓고 끝까지 읽지 않는 경로가 있어야 하고, 공격자가 그 경로로 형식을 조작한 업로드 요청을 보내야 한다. 라우팅이나 인증 전에 입력 통로부터 열어 두는 프레임워크라면, 본문을 사용하지 않는 페이지에서도 이 조건이 갖춰질 수 있다. 반대로 요청마다 연결을 닫는 일반적인 nginx와 Apache 구성은 영향을 받지 않는다. 악용 조건 위 조건이 모두 맞는다면 공격자에게 더 필요한 것은 서버에 실제로 있는 PHP 파일 경로 하나뿐이다. 숨겨 보낸 가짜 요청에서 PHP 설정을 바꿔 요청 본문을 PHP 코드로 먼저 실행하라고 지시하면, 본문에 담은 코드가 그대로 실행된다. 메모리를 정교하게 조작할 필요도, 타이밍을 맞출 필요도 없어서 성공률이 매우 높다. 게다가 이렇게 바뀐 설정은 같은 워커의 다음 요청에도 남을 수 있다. 다만 이렇게 코드 실행까지 이어지는 것은 FastCGI 연결을 재사용하는 경우에 한해 확인된 결과다. LiteSpeed 웹 서버가 PHP와 통신할 때 쓰는 LSAPI에도 읽고 남은 본문을 정리하지 않는 같은 실수가 있다. 하지만 LSAPI는 FastCGI와 다른 통신 형식을 쓰므로 공격 경로도 다르다. 현재까지 LSAPI에서는 요청이 뒤섞이는 현상만 확인되었고, 코드 실행은 입증되지 않았다. CVE-2026-115560 : 흔한 라이브러리만 있어도 위험한 세션 취약점 트리거 조건 파일 업로드 진행 상황을 세션에 기록하는 기능이 켜져 있어야 하고, 같은 세션을 쓰는 쪽과 읽는 쪽이 서로 다른 직렬화 방식을 사용해야 한다. 이런 불일치는 애플리케이션이 세션을 시작하기 직전에 직렬화 방식을 바꾸거나, 직렬화 방식을 서로 다르게 설정한 애플리케이션과 FPM 풀, 가상 호스트가 같은 세션 저장 폴더를 공유할 때 생긴다. FPM 풀을 나누었다고 해서 세션 저장소까지 자동으로 나뉘지는 않는다는 점에 주의해야 한다. 모든 곳이 같은 방식을 쓴다면 이 문제는 생기지 않는다. 악용 조건 공격자는 우선 대상 세션의 ID를 알거나 지정할 수 있어야 한다. 그다음, 세션을 읽는 애플리케이션 안에 가젯 체인이 있어야 한다. 가젯 체인이란 객체가 되살아나거나 사라질 때 자동으로 실행되는 코드 조각들을 이어 붙여 원하는 동작을 만들어 내는 기법이다. 실제로 PHP 패키지 관리 도구인 Composer로 많이 설치하는 Guzzle과 Monolog 라이브러리를 이용해 명령 실행이 시연되었다. 이런 라이브러리는 매우 흔하기 때문에 이 조건은 생각보다 쉽게 충족된다. CVE-2026-126714 : 애플리케이션 코드 없이도 원격 코드 실행이 보고된 취약점 트리거 조건 PHP의 기본 세션 저장 방식인 파일 방식을 써야 하고, 기존 파일과 길이가 같거나 더 긴 데이터를 덮어쓰는 도중에 프로세스가 강제로 종료되어야 한다. 공격자는 업로드 진행 기능이나 세션에 저장되는 긴 사용자 입력을 통해 세션 내용에 영향을 줄 수 있어야 한다. 쓰는 쪽과 읽는 쪽의 직렬화 방식이 달라야 할 필요는 없다. 프로세스를 강제로 종료시키는 방법으로 보안 공지는 멀티스레드로 빌드된 PHP에서 다른 스레드가 메모리 한도를 넘겨 프로세스 전체가 종료되는 경우를 들었다. 이 취약점을 처음 발견한 연구자는 다른 방법도 보고했다. 업로드 요청을 여러 개 붙잡아 두어 웹 서버가 쓸 수 있는 메모리를 한계까지 채운 뒤, 시점을 맞춘 요청으로 세션을 쓰고 있는 워커가 그 한계를 넘게 만들었다. 그러면 운영체제가 메모리 부족을 막기 위해 해당 워커를 강제로 종료한다. 악용 조건 공격자는 먼저 데이터를 써 넣을 세션 ID를 정할 수 있어야 하고, 애플리케이션이 나중에 그 세션 ID로 세션을 읽어야 한다. 연구자의 재현에서는 로그인하지 않은 상태로 업로드 진행 기능을 이용해 공격자가 정한 세션 ID의 파일에 데이터를 썼고, 이후 애플리케이션이 같은 세션 ID로 세션을 시작할 때 섞인 데이터가 읽혔다. 또한 이전 데이터와 새 데이터가 섞였을 때 정확히 원하는 객체가 만들어지도록 배치를 설계해야 하고, 저장이 원하는 지점에서 끊기도록 만들어야 한다. 연구자의 재현에서도 원하는 상태를 얻기까지 약 10회의 시도가 필요했다. 연구자는 이렇게 주입한 객체를 PHP에 기본으로 들어 있는 내장 클래스의 메모리 손상 결함과 결합해 원격 코드 실행을 시연했다고 보고했다. 따라서 애플리케이션에 가젯 체인이 없어도 공격이 가능하다. 다만 결합에 쓴 내장 클래스와 그 결함의 세부 내용은 공개되지 않아 외부에서 검증할 수는 없다. 보안 공지는 이 메커니즘을 설명하면서 원격 코드 실행을 영향으로 기술하고 있다. CVE-2026-129496 : 프로세스 다운은 쉽지만 코드 실행은 어려운 취약점 트리거 조건 일반적인 단일 스레드 빌드 PHP에서, 시작 단계 경고가 PHP의 파일 기반 오류 로그에 기록되어야 한다. 이때 경고는 시간대 정보 참조를 지우는 초기화보다 늦은 시점, 즉 시작 단계 후반에 기록되어야 한다. 경고가 PHP-FPM 자체 로그로만 기록되는 경우는 해당하지 않는다. 그 상태에서 새로 뜬 워커가 첫 요청을 마치기 전에, 요청 초반에 경고를 일으키는 요청이 들어와야 한다. 대표적인 예는 한 요청에 담을 수 있는 입력 변수 개수의 상한을 넘는 요청이다. 워커는 새로 시작되거나 재시작될 때마다 생기므로 이런 기회는 반복해서 생긴다. 악용 조건 이 취약점은 입증된 피해의 범위를 두 가지로 나눠서 봐야 한다. 첫째, 워커를 멈추게 하는 것은 위 조건만으로 가능하다. 보안 공지는 위 조건이 갖춰진 PHP-FPM에서, 입력 변수 개수 상한과 nginx의 헤더 크기 한도를 모두 기본 수준으로 둔 상태로, 조작된 원격 HTTP 요청 하나에 워커가 멈추는 것을 확인했다. 둘째, 코드 실행은 공격자가 서버의 메모리 주소를 이미 알고 있는 실험 환경에서 시연된 결과다. 코드 실행까지 가려면 메모리 주소를 알고 메모리 배치를 원하는 대로 맞춰야 하며, 추가로 필요한 설정은 실행 환경마다 다르다. PHP-FPM에서 보고된 방법은 요청 변수를 필요할 때가 아니라 요청이 시작될 때 미리 만들어 두도록 바꾸는 설정과, 쿠키 값까지 요청 변수에 포함하도록 하는 설정이 필요하고, 기본 한도보다 큰 인증 헤더도 허용해야 한다. Apache mod_php에서 보고된 다른 방법은 이런 설정을 바꾸지 않는 대신, 메모리 한도를 넘는 큰 데이터 전송 요청과 큰 인증 헤더 허용이 필요하다. 운영체제에는 프로그램이 실행될 때마다 메모리 주소를 무작위로 바꿔 공격자가 주소를 예측하기 어렵게 만드는 보호 기능이 있는데, 원격에서 이 보호를 우회하는 방법은 아직 시연되지 않았다. CVE-2026-129481 : 애플리케이션 코드 패턴에 달린 취약점 트리거 조건 세션 정리 중에 호출되는 애플리케이션 코드에서 치명적 오류가 나야 한다. 시연된 환경은 PHP 코드를 미리 해석해 메모리에 저장해 두는 OPcache 기능을 끈 PHP-FPM이었고, 세션에 저장된 스트림 객체의 닫기 함수에서 오류가 나는 경우였다. 해당 스크립트의 파일 이름이 OPcache가 오래 유지하는 메모리에 저장되어 있다면 요청용 메모리가 반납되는 경로를 피할 수 있다. 하지만 OPcache가 켜져 있어도 캐시되지 않은 스크립트가 실행될 수 있으므로, OPcache를 켰다고 해서 이 취약점이 생기지 않는다고 단정할 수는 없다. 보안 공지도 OPcache만으로는 안정적인 대책이 될 수 없다고 설명한다. 악용 조건 다음 요청이 같은 워커로 들어가야 한다. 보안 공지가 재현으로 확인한 것은 이미 반납된 메모리를 다시 사용하는 현상까지다. 워커가 멈추는 것은 이로 인해 생길 수 있는 영향으로 기술되었고, 코드 실행 시연은 언급되지 않았다. CVE-2026-129182 : 특수한 설정 조합이 필요한 취약점 트리거 조건 두 단계가 필요하다. 먼저, 요청이 끝날 때 설정을 원래대로 되돌리다가 치명적 오류가 나야 한다. 예를 들어 메모리 한도 설정을 서버 전체와 특정 경로에 서로 다르게 지정한 경우, 또는 서버 전체에서는 출력 압축을 켜 두고 특정 경로에서는 끈 채 별도의 출력 처리 기능을 지정한 경우다. 다음으로, 같은 워커의 다음 요청이 초기화되기 전에 경고를 일으켜야 한다. Apache mod_php에서는 디렉터리별 설정으로 이 조건이 생길 수 있지만, PHP-FPM에서는 웹 서버가 요청마다 PHP 설정값을 함께 넘겨주도록 구성되어 있고 그 값이 경고를 일으킬 때만 해당한다. 이처럼 위 설정 조합이 이미 서버에 있어야 버그가 발생하므로, 일반적인 구성에서는 해당하는 경우가 많지 않을 것으로 보인다. 악용 조건 현재까지 이 버그로 확인된 것은 메모리 오류와 프로세스 다운까지다. 보안 공지는 10월의 CVE-2026-109619처럼 원격 코드 실행으로 이어질 수 있다고 보지만, 이 취약점의 진입점으로 코드 실행을 시연하지는 않았고 그에 필요한 추가 조건도 공개하지 않았다. CVE-2026-129474 : PHP 8.5에서 원격 코드 실행이 확인된 취약점 트리거 조건 PHP 8.5에서 치명적 오류의 호출 경로 기록 기능이 켜져 있어야 하며, 이 기능의 기본 설정 값은 켜져 있는 상태다. 또한 호출 경로 기록에 함수에 전달된 값까지 남기도록 설정되어 있어야 한다. PHP 자체 기본값은 전달된 값까지 기록하지만, PHP가 운영 환경용으로 권장하는 설정 파일은 전달된 값을 기록하지 않도록 되어 있다. 애플리케이션은 매직 메서드로 호출을 넘기는 구조여야 하며, 그 순간에 치명적 오류가 나야 한다. 시연에서는 JSON 데이터를 받아 매직 메서드로 로그를 남기는 페이지에 요청 크기를 조절해 보내, 로그에 남길 값을 만드는 순간 메모리 한도를 넘기도록 했다. 악용 조건 공격자는 요청 데이터로 메모리 사용 형태를 조절할 수 있어야 하고, 앞에서 설명한 메모리 주소 무작위화 보호가 켜진 환경에서도 쓸 수 있는 메모리 주소를 확보해야 한다. 시도가 실패하면 워커가 멈추거나, 일반적인 리소스 한도 오류로 요청이 끝난다. PHP 파일을 업로드하거나 메서드 이름을 고를 필요는 없다. 보안 공지는 이 방식으로 PHP 8.5에서 원격 코드 실행이 확인되었다고 밝혔다. 이때 로그인 없이 공격할 수 있었던 것은 시연에 쓴 경로에 관한 결과이며, 다른 애플리케이션 경로에서는 로그인이 필요한지 여부가 달라질 수 있다. Laravel의 파사드 기능이나 Magento의 일부 기능이 관련 경로로 언급되었지만, 실제 공격이 가능한지는 입증되지 않았다. 대응 방안 1. 패치 가장 확실한 대책은 사용 중인 버전에 맞는 최신 버전으로 올리는 것이다. 7건 모두에 대한 근본 수정이 이번 패치에 들어 있으며, 사용 중인 계열별로 올려야 할 버전은 아래 표와 같다. 사용 중인 버전 업그레이드 대상 PHP 8.5.x 8.5.13 이상 PHP 8.4.x 8.4.28 이상 PHP 8.3.x 8.3.37 이상 PHP 8.2.x 8.2.36 이상 PHP 8.1 이하 공식 패치 없음 → 지원 버전으로 이전 필요 [표 2] 사용 중인 버전 계열에 맞는 업그레이드 버전 표에서 보듯이 PHP 8.1 이하 버전에는 공식 패치가 제공되지 않는다. 앞서 설명했듯이 일부 결함은 오래된 버전에도 존재하므로, 이런 버전을 쓰고 있다면 지원 중인 계열로 옮기는 것 외에는 근본적인 해결 방법이 없다. 지금 8.2를 쓰고 있는 경우에도 안심하기는 이르다. PHP 8.2는 2026년 12월 31일에 보안 지원이 끝날 예정이므로, 이번에 8.2.36으로 올리더라도 상위 계열로 옮기는 계획을 함께 세워 두는 것이 좋다. 업그레이드 과정에서는 패치가 실제로 반영되었는지도 확인해야 한다. Ubuntu나 RHEL 같은 리눅스 배포판은 버전 번호를 그대로 둔 채 보안 수정만 옮겨 넣는 경우가 있으며, 이를 백포트라고 한다. 따라서 배포판 패키지를 쓴다면 버전 번호만 보고 판단하지 말고, 배포판의 보안 공지에서 해당 CVE가 고쳐졌는지 확인해야 한다. Docker 같은 컨테이너로 운영하는 경우에는 기반 이미지를 새로 받아 다시 빌드해야 패치가 반영된다. 어느 경우든 업그레이드를 마친 뒤에는 PHP-FPM 마스터 프로세스와 모든 워커, 또는 Apache를 반드시 재시작해야 새 버전이 적용된다. 다만 CVE-2026-115560은 패치만으로 끝나지 않는다. 패치는 업로드 진행 기능의 기본값을 꺼진 상태로 바꾸지만, 운영자가 이 기능을 다시 켜 두고 서로 다른 직렬화 방식으로 같은 세션 저장소를 공유하면 같은 불일치가 여전히 생길 수 있다. 따라서 패치를 적용한 뒤에도 아래 완화 방법에서 설명하는 세션 설정 점검을 함께 해야 한다. 2. 완화 방법 당장 업그레이드하기 어렵다면 설정을 바꿔 위험을 줄일 수 있다. 다만 이것은 패치 전까지 버티는 임시 조치다. 또한 바꾼 설정이 어디에 속하느냐에 따라 적용 방법이 다르다. PHP 설정을 바꿨다면 PHP-FPM이나 mod_php를 쓰는 Apache를 재시작해야 하고, nginx나 Apache 같은 웹 서버의 설정을 바꿨다면 해당 웹 서버가 설정을 다시 읽어 들이도록 재적용해야 한다. 아래에서는 앞에서 살펴본 순서를 따라 취약점별 완화 방법을 설명한다. 1) 웹 서버와 PHP-FPM의 연결 재사용 끄기 먼저 PHP-FPM 요청 스머글링 취약점인 CVE-2026-129289는 웹 서버가 PHP-FPM과의 연결을 재사용하지 않도록 하면 막을 수 있다. nginx에서는 fastcgi_keep_conn을, Apache에서는 enablereuse를 꺼서 요청마다 연결을 닫도록 한다. 이 두 설정은 PHP가 아니라 웹 서버의 설정이므로, 바꾼 뒤에는 nginx나 Apache의 설정을 다시 적용해야 한다. 일부 컨테이너 이미지는 연결 재사용이 기본으로 켜져 있으므로, 컨테이너로 운영한다면 이미지에 들어 있는 설정을 직접 확인하는 것이 좋다. 이와 함께 PHP-FPM이 요청을 받는 포트가 외부나 신뢰할 수 없는 네트워크에 노출되지 않았는지도 점검해야 한다. 2) 세션 업로드 진행 기능 끄기 세션 관련 취약점인 CVE-2026-115560과 CVE-2026-126714는 공통적으로 업로드 진행 기능을 공격 경로로 쓴다. 따라서 이 기능을 쓰지 않는다면 session.upload_progress.enabled = 0으로 꺼서, 로그인하지 않은 공격자가 세션에 데이터를 써 넣는 길을 막는 것이 우선이다. 이때 코드 안에서 ini_set()으로 바꾸면 이미 늦기 때문에, php.ini나 FPM 풀 설정, 가상 호스트 설정에서 바꿔야 한다. 3) 세션 직렬화 방식 통일과 세션 저장소 점검 두 세션 취약점은 이 공통 조치 외에 각각 다른 대응이 필요하다. CVE-2026-115560은 직렬화 방식의 불일치에서 생기므로, 세션 저장소를 함께 쓰는 모든 애플리케이션의 session.serialize_handler 값을 같게 맞추거나 저장소를 아예 분리해야 한다. 앞서 설명했듯이 패치 후에도 업로드 진행 기능을 직접 켜 두었다면 이 조치는 계속 필요하다. 반면 CVE-2026-126714는 직렬화 방식이 같아도 발생하므로, 방식을 통일하는 것만으로는 막을 수 없다. 이 취약점에 대해서는 세션에 저장하는 사용자 입력을 최소화하고, 가능하면 저장할 때 레코드를 통째로 교체하는 세션 저장소를 사용하는 편이 낫다. 4) PHP 시작 단계 경고 정리 시간대 캐시 취약점인 CVE-2026-129496은 시작 단계 경고가 파일 오류 로그에 기록될 때 생기므로, 그 경고를 없애는 것이 가장 직접적인 대책이다. 잘못 적은 date.timezone 값이나 더 이상 권장되지 않는 세션 설정처럼 PHP가 시작할 때 오류 로그에 남기는 경고를 모두 정리한 뒤 재시작한다. 경고를 당장 모두 없애기 어렵다면, 오류 로그를 파일 대신 syslog로 보내도록 바꾸는 방법도 있다. 5) 세션 정리 중 치명적 오류 점검 세션 종료 처리 취약점인 CVE-2026-129481은 애플리케이션 코드의 치명적 오류에서 시작되므로, 스트림 닫기 함수처럼 세션 정리 중에 호출되는 코드에서 치명적 오류가 나지 않도록 점검해야 한다. 급한 경우에는 PHP-FPM에서 pm.max_requests=1로 설정해 요청마다 워커를 새로 띄우는 방법도 있다. 잘못된 참조가 다음 요청으로 넘어가기 전에 워커가 사라지기 때문이다. 다만 이 방법은 성능 저하가 크다. 6) PHP 8.5 치명적 오류의 호출 경로 기록 끄기 PHP 8.5에만 해당하는 CVE-2026-129182와 CVE-2026-129474는 모두 치명적 오류의 호출 경로 기록에서 생기므로, 관리자 수준의 설정에서 fatal_error_backtraces = 0으로 바꿔 이 기록 자체를 끄고 모든 워커를 재시작하면 두 취약점을 함께 막을 수 있다. 보안 공지가 CVE-2026-129182에 대해 제시한 임시 완화 방법도 바로 이것이며, 요청 단위 설정으로 이 기능이 다시 켜지지 않도록 해야 한다. 7) 함수에 전달된 값의 기록 제외 호출 경로 기록을 끌 수 없는 환경이라면, CVE-2026-129474에 한해 zend.exception_ignore_args = On으로 설정해 기록에 함수에 전달된 값이 남지 않도록 하는 방법이 있다. 이때 명령줄 실행용 설정만 바꾸면 효과가 없으므로 FPM 풀 설정까지 확인해야 한다. 그러나 이 설정은 기록에서 전달된 값만 뺄 뿐 호출 경로 기록 자체를 막지는 않으므로, CVE-2026-129182의 완화 방법은 되지 못한다. 또한 화면에 오류를 표시하지 않도록 display_errors=0으로 설정하는 것만으로는 두 취약점 모두 막을 수 없다는 점에 주의해야 한다. 결론 이번 PHP 보안 업데이트에서 고쳐진 치명적 취약점 7건은 모두 같은 ‘치명적’ 등급으로 분류되었지만, 실제 위험도는 서로 크게 다르다. 가장 먼저 살펴봐야 할 것은 PHP-FPM 요청 스머글링 취약점인 CVE-2026-129289다. 웹 서버가 PHP-FPM과의 연결을 재사용하도록 설정되어 있고, 애플리케이션에 요청 본문을 끝까지 읽지 않는 경로가 있다면, 공격자는 조작한 업로드 요청 한 번으로 메모리 조작 없이 원격 코드 실행을 할 수 있기 때문이다. 세션 직렬화 불일치 취약점인 CVE-2026-115560도 우선적으로 살펴 볼 만하다. Guzzle이나 Monolog처럼 흔한 라이브러리만으로도 명령 실행이 시연되었으므로, 업로드 진행 기능과 세션 저장소 공유 여부를 꼭 확인해야 한다. PHP 8.5를 운영 중이라면 원격 코드 실행이 확인된 매직 메서드 취약점인 CVE-2026-129474도 우선순위에 올려야 한다. 세션 파일 덮어쓰기 취약점인 CVE-2026-126714도 원 연구자가 애플리케이션 가젯 체인 없이 원격 코드 실행을 시연했다고 보고했다. 다만 프로세스를 원하는 시점에 강제 종료시키기 위해 여러 번 시도해야 하고, 공격에 쓴 내장 클래스 결함의 세부 내용도 아직 공개되지 않았다. 나머지 취약점은 까다로운 설정 조합이 필요하거나, 코드 실행까지 가려면 메모리 주소를 알아내야 해서 상대적으로 공격 난이도가 높다. 하지만 10월 패치가 불완전해서 한 달 만에 다시 고쳐진 사례에서 보듯이, 비슷한 계열의 문제는 앞으로도 계속 나올 수 있다. 따라서 가장 좋은 대응은 단순하다. 지금 바로 최신 버전으로 업그레이드하고, 그 전까지는 위의 완화 설정을 적용하는 것이다. 이번 기회에 FastCGI 연결 설정, 세션 저장소 구성, 시작 단계 경고처럼 평소 눈여겨보지 않던 설정도 함께 점검해 보기를 권한다. 출처 PHP 공식 ChangeLog : https://www.php.net/ChangeLog-8.php php-src 보안 공지, GitHub Security Advisories : https://github.com/php/php-src/security/advisories GHSA-qc49-hpvq-g2w6 : CVE-2026-129289 GHSA-658j-r8rw-q6mx : CVE-2026-115560 GHSA-fm2m-fjf5-v3cp : CVE-2026-126714 GHSA-gr4f-wgx5-jpfv : CVE-2026-129496 GHSA-g3vh-838c-65v7 : CVE-2026-129481 GHSA-2fjv-p558-g82m : CVE-2026-129182 GHSA-8mjj-2r7p-4hg2 : CVE-2026-129474 php[architect], “PHP’s November security release: seven critical fixes, explained” : PHP Security Release Fixes Seven Critical Vulnerabilities | Exploitr depthfirst, CVE-2026-126714 원 연구 : https://depthfirst.com/research/phpaftershell PHP 8.5.12 세션 파일 저장 코드 : https://github.com/php/php-src/blob/php-8.5.12/ext/session/mod_files.c AhnLab TIP 를 구독하시면 연관 IOC 및 상세 분석 정보를 추가적으로 확인하실 수 있습니다. 자세한 내용은 아래 배너를 클릭하여 확인해보세요.
ASEC PHP 제품 보안 업데이트 권고 2026-11-19
개요 PHP에서 다수의 취약점을 해결한 보안 업데이트를 발표했다. 영향을 받는 버전은 PHP 8.2.0 이상 8.2.36 미만, 8.3.0 이상 8.3.37 미만, 8.4.0 이상 8.4.28 미만, 8.5.0 이상 8.5.13 미만이다. 주요 내용 해결된 취약점에는 PHP 세션 직렬화 방식 불일치로 인한 원격 코드 실행 취약점(CVE-2026-115560), PHP 세션 파일의 부분 덮어쓰기로 인한 원격 코드 실행 취약점(CVE-2026-126714), PHP HTTP 응답 헤더 처리 과정에서 발생하는 서비스 거부 취약점(CVE-2026-127960)이 포함된다. 또한 PHP HTTPS 및 FTPS URL 처리 과정에서 발생하는 평문 정보 노출 취약점(CVE-2026-128064), PHAR 서명 알고리즘 다운그레이드로 인한 서명 검증 우회 취약점(CVE-2026-128090), PHP 오류 역추적 정보 처리 과정에서 발생하는 해제 후 사용 취약점(CVE-2026-129182)도 수정되었다. PHP-FPM(고성능 PHP 실행 환경)에서 발생하는 HTTP 요청 스머글링 취약점(CVE-2026-129289), 해제 후 사용으로 인한 로컬 권한 상승 취약점(CVE-2026-129291), 상태 페이지에서 발생하는 크로스 사이트 스크립팅 취약점(CVE-2026-129292)도 포함된다. 그 밖에 PHP URI 직렬화 처리 과정에서 발생하는 입력값 검증 취약점(CVE-2026-129438), 매직 메서드 오류 역추적 과정에서 발생하는 원격 코드 실행 취약점(CVE-2026-129474), 세션 종료 처리 과정에서 발생하는 해제 후 사용 취약점(CVE-2026-129481), 시간대 캐시 처리 과정에서 발생하는 해제 후 사용으로 인한 원격 코드 실행 취약점(CVE-2026-129496), DOM XML 직렬화 과정에서 발생하는 이중 해제 취약점(CVE-2026-129501), SOAP(웹 서비스 통신 규격)에서 발생하는 해제 후 사용 취약점(CVE-2026-129506), PHP-CGI PATH_INFO 처리 과정에서 발생하는 범위 밖 메모리 읽기 및 쓰기 취약점(CVE-2026-129538), SOAP에서 발생하는 정보 노출 취약점(CVE-2026-15353), uriparser 라이브러리의 URI 쿼리 처리 과정에서 발생하는 정수 오버플로 취약점(CVE-2026-48841)이 해결되었다. 대응 PHP 8.2.36 이상, 8.3.37 이상, 8.4.28 이상, 8.5.13 이상으로 업데이트하면 취약점 패치가 적용된다.
ASEC 영어·일본어 등 다른 언어 글 3건
ASEC PHP2Shell の公開から間もない中、またも PHP に脆弱性が? 2026-11-26
忙しい方のための3行まとめ 1. PHP 開発チームは2026年11月19日に、深刻度が 「Critical」 に分類される脆弱性7件を修正したセキュリティアップデートを公開した。現時点では、実際の攻撃に悪用された事例は報告されていない。 2. このうち、Web サーバーと PHP-FPM 間の接続を再利用する環境で発生するリクエストスマグリング、セッションのアップロード進捗機能を利用したオブジェクト注入、PHP 8.5 のマジックメソッドにおけるメモリエラーについては、リモートコード実行に至ることが確認されており、特に危険性が高い。 3. PHP 8.5.13、8.4.28、8.3.37、8.2.36 以上に速やかにアップグレードする必要がある。公式パッチが提供されていない 8.1 以下はサポート対象のバージョンに移行し、すぐにアップグレードできない場合は、接続の再利用やアップロード進捗機能を無効にするなどの暫定的な緩和策を適用する必要がある。 本文を読む前に押さえておきたい用語 本ブログでは、Web サーバーや PHP の内部動作に関する用語が頻繁に登場する。本文を読む前に以下の用語を確認しておくと、内容を理解しやすくなる。 PHP-FPM : Web サーバーが受け取ったリクエストのうち、PHP コードの実行が必要なリクエストを引き受けて処理する独立したプログラムである。nginx や Apache などの Web サーバーと PHP-FPM は、FastCGI という規定の形式で通信する。 ワーカー : PHP-FPM があらかじめ起動しておく処理プロセスであり、1つのワーカーが複数のリクエストを順番に処理する。そのため、前のリクエストが残した痕跡が同じワーカーで処理される次のリクエストに影響を及ぼす可能性がある。 セッション : ログイン状態など、ユーザーごとの情報をサーバーに一時的に保存する機能である。ユーザーはセッション ID という識別番号を持ち、PHP はデフォルトでセッションをサーバー上のファイルに保存する。 シリアライズとデシリアライズ : プログラム内のデータを保存しやすい文字列に変換することをシリアライズ、変換された文字列を再びデータに戻すことをデシリアライズという。このとき復元されるデータには数値や文字列などの単純な値だけでなく、生成時や消滅時に所定のコードが自動的に実行される 「オブジェクト」 も含まれる場合がある。攻撃者が作成した文字列がデシリアライズされ、オブジェクトとして復元されることをオブジェクト注入という。 Use-After-Free : プログラムが使用済みとして解放したメモリ領域を誤って再利用してしまうエラーである。その領域に別のデータが格納されていると、プログラムが誤動作したり停止したりする可能性がある。また、攻撃者がその領域にあらかじめ意図したデータを配置できる場合、コード実行に至る可能性もある。 概要 韓国時間の2026年11月19日午後11時頃、PHP 開発チームはサポート対象のすべてのバージョンに対してセキュリティアップデートを公開した。修正が適用されたバージョンは PHP 8.5.13、8.4.28、8.3.37、8.2.36 であり、同日にリリースされた 8.6.0 にも同じ修正が含まれている。 PHP 8.5.13 の変更履歴には、合計18件の CVE が記載されている。このうち1件は PHP に同梱されている URI 処理ライブラリ uriparser の脆弱性であり、残りの17件は PHP 自体の脆弱性である。そのうち7件が最も高い深刻度である 「Critical」 に分類された。 今回のアップデートは、1か月前の10月に公開されたリモートコード実行脆弱性 PHP2Shell に対する緊急パッチ対応の延長線上にある。今回の7件のうち一部は当時の修正が不完全だったため再修正されたものであり、一部は同じ系列の新たな問題である。大半はデフォルト設定とは異なる特定の設定やコードパターンが存在する場合に発生するが、一部は条件が揃うと攻撃者がサーバー上で任意のコードを実行できるほど危険性が高い。 2026年11月19日時点でこれらの脆弱性が実際の攻撃に悪用された事例は報告されていない。また、米国のサイバーセキュリティ・インフラセキュリティ庁 (CISA) が管理する 「Known Exploited Vulnerabilities (KEV) Catalog (実際に悪用された脆弱性の一覧)」 にもまだ登録されていない。 本ブログでは、「Critical」 に分類された7件の脆弱性について解説する。まず、それぞれの脆弱性が発生する原因を説明し、続いてどのような条件で発生するのか、また、実際の被害につながるために攻撃者がどのような条件を満たす必要があるのかを整理する。最後に、パッチ適用方法と暫定的な緩和策を紹介する。 脆弱性の原因 7件の脆弱性は、原因に応じて大きく3つに分類できる。 Web サーバーと PHP 間の通信に関する問題 (1件) : あるリクエストの終わりと次のリクエストの始まりを正しく区別できない問題 セッションデータの誤った解釈に関する問題 (2件) : 保存されたセッションを読み込む際、攻撃者が挿入したデータがプログラムのオブジェクトに変換される問題 解放済みメモリの再利用に関する問題 (4件) : セキュリティ分野で 「Use-After-Free」 と呼ばれるメモリエラー それぞれの分類に属する脆弱性がどのような原因で発生するのか、順に見ていく。 CVE-2026-129289 : PHP-FPM のリクエストスマグリング CVE-2026-129289 は、PHP-FPM が前のリクエストで読み取った後に残ったデータを適切に処理せず、その残りのデータを新しいリクエストとして誤って受け入れてしまうことで発生する脆弱性である。 Web サーバーはパフォーマンスを向上させるため、リクエストごとに PHP-FPMとの接続を新たに確立するのではなく、一度確立した接続を使って複数のリクエストを連続して送信するよう設定できる。このように接続を再利用する環境で問題が発生する。PHP アプリケーションがリクエスト本文を読み取るための経路を開いたまま最後まで読み取らずに処理を終えると、本文の後半部分が接続内に残ってしまう。ユーザーが意図的に形式の不正なファイルアップロードリクエストを送信し、PHP が本文の途中で読み取りを停止するよう仕向けると、PHP-FPM はどこまで読み取ったかを忘れたまま残りの部分を同じ接続から送られてきた新たなリクエストとして処理してしまう。 攻撃者はこの点を悪用し、本文の後半部分にリクエスト形式の偽装リクエストをあらかじめ埋め込む。この偽装リクエストには、実行する PHP ファイルや PHP の設定をどのように変更するかまで任意に記述できる。Web サーバー側では正常なリクエストを1つ転送しただけであるが、PHP-FPM は攻撃者が隠しておいたリクエストまで実行してしまうのである。 このように、1つのリクエストの中に別のリクエストを密かに埋め込む攻撃をリクエストスマグリング (Request Smuggling) と呼ぶ。この処理方式は PHP 5.6.0 から存在していた。 CVE-2026-115560 : セッションのシリアライズ方式の不一致 CVE-2026-115560 は、セッションを保存する側と読み込む側でデータの解釈方法が異なることによって発生する脆弱性である。この解釈の違いにより、攻撃者が挿入した文字列がプログラムのオブジェクトとして利用される可能性がある。 PHP はセッションデータをファイルなどの保存先に文字列として変換して保存するが、その際に使用するシリアライズ方式には複数の種類がある。デフォルトの方式では、各セッション項目について 「名前|内容」 の形式で名前と内容の間に縦棒記号を挟んで連結する。読み込む際も、縦棒記号が現れると、その前までを名前、その後を内容として区切って読み取る。 一方、別の方式には、名前の文字数をあらかじめ記録し、その文字数分を名前として読み取る方式もある。この方式では、名前の中に縦棒記号が含まれていても単に名前を構成する1文字として扱われる。 セッションの保存時と読み込み時に同じ方式を使用していれば問題は発生しないが、複数のアプリケーションや複数の PHP-FPM プール (Pool) が1つのセッション保存先を共有している場合には問題が生じる可能性がある。例えば、保存側が文字数を指定する方式を使用し、読み込み側がデフォルトの方式を使用すると、状況が変わる。保存側では名前の一部にすぎなかった縦棒記号を、読み込み側は 「ここで名前が終わり、内容が始まる」 という区切りとして認識してしまい、縦棒の後に続く名前の残りの文字をセッション内容、つまり復元するデータとして読み取ってしまうためである。 もちろん、この違いだけでは攻撃は成立しない。通常、セッションに何をどの名前で保存するかはアプリケーションが決めるため、攻撃者にはセッション項目の名前に縦棒記号や任意の文字列を挿入する手段がないからである。この隙を生み出すのが、ファイルアップロードの進捗状況をセッションに記録する機能である。 この機能は、ファイルのアップロードがどこまで進んだかを新しいセッション項目として保存する。その項目の名前は、「アップロード進捗状況」 を意味する固定のプレフィックスにアップロードリクエストに含まれる値をそのまま連結して生成される。さらに、この保存処理はアプリケーションのコードが実行される前に PHP が自動的に行うため、ログインしていない攻撃者でもアップロードリクエストを1つ送信するだけでセッション項目の名前に任意の文字列を含めることができる。 攻撃者はこの名前に縦棒記号と復元された際に意図した動作をするよう設計したオブジェクトデータを続けて挿入する。保存側ではこれらは単に少し不自然な名前のセッション項目として扱われるが、読み込み側は縦棒の後に続く文字列をセッション内容として認識し、そのまま復元する。その結果、セッションを読み込む際に攻撃者が設計したオブジェクトが復元され、オブジェクト注入が発生する。 10月に発生した PHP2Shell の脆弱性の1つもこのアップロード進捗機能に関連していた。一部のセキュリティ企業は当時の修正では防げなかった別の攻撃経路であることから、CVE-2026-115560 を 「3つ目の PHP2Shell」 と呼ぶこともある。 ただし、10月の2つの脆弱性がリクエストの異常終了時に発生するメモリ破損に起因していたのに対し、本脆弱性はデシリアライズによるオブジェクト注入であるという点で根本的な原因は異なる。つまり、攻撃が侵入する経路とリモートコード実行という最終的な被害は同じであるが、問題が発生する仕組みは異なる。 CVE-2026-126714 : 一部だけ上書きされたセッションファイル PHP は、状況によってはセッションファイルの既存内容を消去せずに上書きして保存する。この上書き処理中に作業が強制的に中断されると、新しい内容と以前の内容が混在した状態で残り、その混在した内容がプログラムのオブジェクトとして解釈される可能性がある。これによって発生する脆弱性が CVE-2026-126714 である。 PHP はデフォルトでセッションをファイルに保存する。新しいデータが既存のファイルより短い場合はファイルを先に空にしてから書き込む。しかし、新しいデータの長さが既存のデータと同じかそれ以上の場合は、新しいデータが既存の内容をすべて上書きすると判断し、ファイルを空にせず先頭から直接上書きする。 通常はこの方式でも問題ないが、上書きの途中でプロセスが強制終了されると、ファイルには新しいデータの前半部分と以前のデータの後半部分が混在した状態で残る。 このように混在したファイルを次のリクエストで読み込むと、新しいデータと以前のデータがつながった部分がシリアライズされたオブジェクトとして解釈される可能性がある。攻撃者が両方のデータをあらかじめ設計しておけば、意図したオブジェクトを生成できるため、結果として前述の CVE-2026-115560 と同様にオブジェクト注入につながる。 ただし、保存側と読み込み側で同じデフォルトのシリアライズ方式を使用していても発生する点が CVE-2026-115560 との違いである。 CVE-2026-129496 : タイムゾーンキャッシュの Use-After-Free これから紹介する4件はいずれも、すでに解放されたメモリを再利用することで問題が発生するUse-After-Free系の脆弱性である。 CVE-2026-129496は、PHP が起動時に一時的に使用して解放したタイムゾーン情報の参照先を消去せずに残してしまうことで発生する脆弱性である。PHP はその後、リクエストを処理する際にタイムゾーン情報がまだその場所に存在すると誤認し、すでに解放されたメモリを再び読み取ってしまう。 PHP は日付や時刻を扱うたびにタイムゾーン情報を新たに取得する必要がないよう、一度取得した情報をメモリに保存し再利用する。しかし、PHP プロセスの起動中に警告メッセージが発生し、そのメッセージがファイルベースのエラーログに記録されると、ログに記録する時刻を生成するために取得したタイムゾーン情報が起動時にのみ使用される一時メモリに保存されることがある。この一時メモリは起動処理が終了すると解放される。 通常は、その後に続く初期化処理でタイムゾーン情報の参照先を指す参照が消去されるため問題は発生しない。しかし、警告が記録されるタイミングがその初期化処理よりも遅い場合、参照が消去されずに残ってしまう。したがって、起動時に発生するすべての警告が問題になるわけではなく、起動処理の後半でファイルエラーログに記録される警告が対象となる。このように参照が残った状態で起動したワーカー (プロセス) が最初のリクエストを処理し再び警告を記録すると、すでに解放されたメモリを読み取ってしまう。こうした起動時の警告は主にタイムゾーンの設定値を誤って記述した場合や、非推奨のセッション設定を使用した場合に発生する。 CVE-2026-129481 : セッション終了処理の中断による Use-After-Free CVE-2026-129481 は、セッションを使用する Web リクエストの処理を終える際、PHP のセッション整理処理がエラーによって途中で中断されると、本来消去されるべきメモリの参照先情報がそのまま残ってしまうことで発生する脆弱性である。ログインしたユーザーがページを開く場合のように、セッションを使用するリクエストであれば、どのようなリクエストでも最後にこの整理処理が行われる。 セッションを開始すると、PHP は現在実行中のスクリプトのファイル名をリクエスト用メモリに記録し、その位置を内部変数に保持する。この内部変数は、リクエスト終了時のセッション整理処理の最終段階で消去される。 しかし、それより前に PHP はセッションに格納されている値を1つずつ削除する。この処理では PHP 自体のコードだけでなく、Web サービスの開発者が作成した PHP コードが実行される場合もある。セッションには数値や文字列などの単純な値だけでなく、開発者が作成したオブジェクトも格納できるうえ、オブジェクトは消滅時に自身の後処理を行うよう実装されていることが多いためである。この後処理のコードはサービス開発者が作成したものであるため、PHP がセッションの値を削除する際に開発者のコードも同時に実行されることになる。例えば、開発者が独自に作成したファイル入出力用のストリームをセッションに格納していた場合、この段階でそのストリームを閉じるコードが実行される。 そのコードで処理を即座に停止させる致命的なエラーが発生すると、内部変数を消去する前に整理処理が中断される。その間にリクエスト用メモリが一括して解放されるため、内部変数はすでに解放されたメモリ領域を指すことになる。 この不正な参照先情報は、同じワーカーが処理する次のリクエストで使用される。そのリクエストが別のユーザーからのものであっても関係ない。 本脆弱性は、10月に発見された CVE-2026-109619 の修正が不完全だったために残った問題であり、PHP 8.3 以降が影響を受ける。 CVE-2026-129182 : エラー時のバックトレース再生成による Use-After-Free、PHP 8.5 のみ該当 CVE-2026-129182 は、PHP 8.5 でリクエスト終了時に消去したエラー記録がその後の整理処理で再生成されるケースを考慮していなかったことで発生する脆弱性である。再生成された記録がまもなく解放されるメモリを指したまま次のリクエストまで残ってしまう。 プログラムでエラーが発生すると、その時点に至るまでにどの関数がどの関数を順番に呼び出したのかを遡って記録できる。例えば、注文処理関数が決済関数を呼び出し、決済関数がカード確認関数を呼び出した後にエラーが発生した場合、その呼び出し順序が記録される。簡単に表現すると、これは 「バックトレース (呼び出し経路の記録)」 と呼ばれるものである。PHP 8.5 では致命的なエラーが発生するとこのバックトレースも記録されるようになっており、デフォルトで有効になっている。 バックトレースはリクエスト用メモリを使用して生成されるため、10月に公開された 8.5.12 のパッチではリクエスト終了時にこの記録を消去するよう修正された。しかし、このパッチでは、記録を消去した後に続く終了処理で再び致命的なエラーが発生した場合にバックトレースが再生成されることを考慮していなかった。 では、終了処理中にエラーが発生するのはなぜだろうか。PHP ではサーバー全体に適用されるデフォルト設定とは別に、特定のフォルダーやパスにのみ異なる設定を適用できる。このようにパスごとの設定を使用すると、PHP は該当するパスのリクエストを処理している間だけ設定を変更し、リクエスト終了時には次のリクエストに備えてサーバー全体の設定に戻す。 しかし、メモリ制限や出力圧縮など一部の設定は、組み合わせによって設定を元に戻す処理中に致命的なエラーが発生する場合がある。例えば、サーバー全体と特定のパスでメモリ制限を異なる値に設定している場合や、サーバー全体では出力圧縮を有効にしている一方、特定のパスでは無効にしている場合などが該当する。 このエラーによって再生成されたバックトレースは、まもなく解放されるリクエスト用メモリを指したまま残り、同じワーカーが処理する次のリクエストで使用される。 CVE-2026-129474 : マジックメソッドのバックトレースにおける Use-After-Free、PHP 8.5 のみ該当 CVE-2026-129474 は、PHP 8.5 でマジックメソッドが呼び出しを受け取り、実際の処理機能に引き渡す際に致命的なエラーが発生すると、すでに解放されたメモリを指す値がバックトレースにそのまま記録されてしまうことで発生する脆弱性である。 マジックメソッドとは、プログラムが存在しないメソッドを呼び出した際に PHP が代わりに呼び出す特殊なメソッドである。例えば、ログ記録ツールに 「警告を記録する」 というメソッドが用意されていなくても、プログラムがその名前で呼び出すとマジックメソッドがその呼び出しを受け取り、実際に記録を処理する機能に引き渡すことができる。つまり、プログラムが呼び出したメソッド名と実際に処理を行う機能との間で橋渡し役を担うものである。そのため、ログ記録ツールやデータベースライブラリ、Laravel のファサード機能のように、受け取った呼び出しを実際の処理機能に引き渡すコードでよく使用される。 マジックメソッドによって呼び出しが引き渡される短い時間の間に致命的なエラーが発生すると、前述のバックトレースが生成される。このとき、各関数に渡された引数も同時に記録される。問題は、その記録される値の一部がすでに解放されたメモリ領域を指している可能性がある点である。 攻撃者は送信するリクエストのサイズを調整し、PHP がちょうどこのタイミングでメモリ制限を超えて致命的なエラーを発生させるよう仕向ける。その後、解放されたメモリ領域に別のデータが格納されると、PHP はバックトレースを読み取る際に元の値ではなく新たに格納されたデータを使用してしまう。そのため、攻撃者はその領域に意図したデータを配置することでこの問題を悪用できる。 ただし、バックトレースには、どの関数を経由したかだけを記録することも、各関数に渡された値まで記録することもできる。どちらにするかは設定によって決まる。本脆弱性は、渡された値まで記録する設定になっている場合にのみ発生する。渡された値を記録しなければ、解放されたメモリを指す値がバックトレースに含まれることもないためである。 トリガー条件と悪用条件 脆弱性が存在するからといって、攻撃が直ちに成功するわけではない。ここでは、以下の2段階に分けて考える。 トリガー条件 : バグが実際に発生するために、サーバー設定、アプリケーションコード、リクエストの順序などがどのような状態になっている必要があるか。 悪用条件 : バグが発生した後、攻撃者がそれをコード実行などの実際の被害につなげるために、さらに何が必要か。 CVE 修正サポート対象の系列 攻撃場所 トリガー条件 悪用条件 確認された最大の被害 CVE-2026-129289 FPM のリクエストスマグリング 8.2~8.5 リモート、ログイン不要 FastCGI の接続再利用が有効 + リクエスト本文を最後まで読み取らないアプリケーションの処理経路 + 改ざんされたアップロードリクエスト サーバー上に存在する PHP ファイルのパスを1つ知っているだけでよい リモートコード実行 CVE-2026-115560 セッションのシリアライズ方式の不一致 8.2~8.5 リモート アップロード進捗機能が有効 + セッション保存先を共有する側同士でシリアライズ方式が異なる 対象のセッション ID + アプリケーション内のガジェットチェーン コマンド実行 CVE-2026-126714 セッションファイルの部分上書き 8.2~8.5 リモート、ログイン不要 ファイルセッションを使用 + 既存データと同じ長さか、それ以上のデータを上書きしている途中でプロセスが強制終了 セッション ID の指定 + 任意のタイミングで書き込みを中断 + 混在データの設計 + PHP 組み込みクラスのメモリ破損の欠陥 リモートコード実行 (原研究者の報告に基づく) CVE-2026-129496 タイムゾーンキャッシュ UAF 8.2~8.5 リモート、プロセス停止に限る 起動処理後半の警告がファイルエラーログに記録される + 新しいワーカーの最初のリクエストで警告が発生 コード実行にはメモリアドレスの把握 + メモリ配置の操作 + 実行環境ごとの追加設定が必要 リモートリクエストによるプロセス停止、メモリアドレスが判明している実験環境でのコード実行 CVE-2026-129481 セッション終了 UAF 8.3~8.5 リモート、アプリケーション構造によって異なる セッション整理中に呼び出されるコードで致命的なエラーが発生 次のリクエストが同じワーカーに送られる必要がある Use-After-Free の再現、プロセス停止は想定される影響として言及 CVE-2026-129182 呼び出し経路記録の再生成による UAF 8.5 リモート、特殊な設定が必要 整理処理中の設定復元に失敗 + 次のリクエストの初期段階で警告が発生。FPM では Web サーバーが PHP 設定値を渡す構成が必要 コード実行の方法とその条件は公開されていない プロセス停止、コード実行は実証されていない CVE-2026-129474 マジックメソッド UAF 8.5 リモート、実証された経路ではログイン不要 関数に渡された値まで記録する設定 + マジックメソッドの呼び出し中にメモリ制限を超過 リクエストサイズの調整 + メモリアドレスの把握 リモートコード実行 [表1] Critical に分類された脆弱性7件の調査結果 表の2列目は、脆弱性そのものの影響範囲全体ではなく、今回公式修正が提供されたサポート対象の系列を示している。脆弱性自体はこれよりはるか以前から存在していたケースが多い。CVE-2026-129289 は PHP 5.6.0 から、CVE-2026-115560 は 5.4.0 から、CVE-2026-126714 は 4.1.0 から同様の動作が存在していたため、サポートが終了した古いバージョンも影響を受ける可能性がある。 表からも分かるように、脆弱性ごとに危険度は大きく異なる。以下でそれぞれ詳しく解説する。 CVE-2026-129289 : 設定条件が揃えば最も容易に悪用できる脆弱性 トリガー条件 Web サーバーが PHP-FPM との接続を切断せず、再利用するよう設定されている必要がある。nginx、Apache、HAProxy はいずれも接続を維持する機能を有効にできるため、その機能が有効になっている場合が該当する。 これに加えて、アプリケーションにリクエスト本文を読み取るための経路を開いたまま最後まで読み取らない処理が存在し、攻撃者がその経路に対して形式を改ざんしたアップロードリクエストを送信する必要がある。ルーティングや認証の前に入力ストリームを開くフレームワークであれば、リクエスト本文を使用しないページでもこの条件が成立する可能性がある。 一方、リクエストごとに接続を閉じる一般的な nginx や Apache の構成は影響を受けない。 悪用条件 上記の条件がすべて揃っていれば、攻撃者にさらに必要なのはサーバー上に実在する PHP ファイルのパス1つだけである。隠して送信した偽装リクエストで PHP の設定を変更し、リクエスト本文を PHP コードとして先に実行するよう指示すれば、本文に含めたコードがそのまま実行される。 メモリを精巧に操作する必要も、タイミングを調整する必要もないため、成功率は非常に高い。さらに、変更された設定は同じワーカーが処理する次のリクエストにも残る可能性がある。 ただし、このようにコード実行にまで至ることが確認されているのは FastCGI 接続を再利用する場合に限られる。 LiteSpeed Web サーバーが PHP との通信に使用する LSAPI にも、読み取った後に残った本文を整理しないという同様の問題が存在する。しかし、LSAPI は FastCGI とは異なる通信形式を使用するため、攻撃経路も異なる。現時点で LSAPI ではリクエストが混在する現象のみが確認されており、コード実行は実証されていない。 CVE-2026-115560 : 一般的なライブラリが存在するだけでも危険なセッション脆弱性 トリガー条件 ファイルアップロードの進捗状況をセッションに記録する機能が有効になっている必要があり、同じセッションを保存する側と読み込む側で異なるシリアライズ方式を使用している必要がある。 この不一致は、アプリケーションがセッションを開始する直前にシリアライズ方式を変更する場合や、シリアライズ方式を異なる設定にしているアプリケーション、FPM プール、仮想ホストが同じセッション保存フォルダーを共有している場合に発生する。FPM プールを分けてもセッション保存先まで自動的に分離されるわけではない点に注意が必要である。すべての環境で同じ方式を使用していれば、この問題は発生しない。 悪用条件 攻撃者はまず、対象のセッション ID を知っているか、指定できる必要がある。さらに、セッションを読み込むアプリケーション内にガジェットチェーンが存在する必要がある。 ガジェットチェーンとは、オブジェクトが復元されたり消滅したりする際に自動実行されるコードの断片をつなぎ合わせ、意図した動作を実現する手法である。 実際に、PHP のパッケージ管理ツールである Composer を通じて広くインストールされる Guzzle や Monolog のライブラリを利用したコマンド実行が実証されている。これらのライブラリは非常に広く使用されているため、この条件は想定以上に容易に満たされる可能性がある。 CVE-2026-126714 : アプリケーションコードがなくてもリモートコード実行が報告された脆弱性 トリガー条件 PHP のデフォルトのセッション保存方式であるファイル方式を使用している必要があり、既存のファイルと同じ長さか、それ以上のデータを上書きしている途中でプロセスが強制終了される必要がある。攻撃者は、アップロード進捗機能やセッションに保存される長いユーザー入力などを通じてセッション内容に影響を与えられる必要がある。保存側と読み込み側でシリアライズ方式が異なる必要はない。 プロセスを強制終了させる方法として、セキュリティ告知では、マルチスレッドでビルドされた PHP において別のスレッドがメモリ制限を超過し、プロセス全体が終了するケースが挙げられている。 この脆弱性を最初に発見した研究者は別の方法も報告している。複数のアップロードリクエストを保留状態にして Web サーバーが使用できるメモリを限界まで消費させたうえで、タイミングを合わせたリクエストによってセッションを書き込んでいるワーカーがその限界を超えるように仕向ける方法である。これにより、OS がメモリ不足を防ぐために該当ワーカーを強制終了する。 悪用条件 攻撃者はまず、データを書き込む対象のセッション ID を指定できる必要があり、さらにアプリケーションが後からそのセッション ID でセッションを読み込む必要がある。 研究者による再現ではログインしていない状態でアップロード進捗機能を利用し、攻撃者が指定したセッション ID のファイルにデータを書き込んだ。その後、アプリケーションが同じセッション ID でセッションを開始した際に混在したデータが読み込まれた。 また、以前のデータと新しいデータが混在した際に正確に意図したオブジェクトが生成されるようデータの配置を設計する必要があり、書き込みが意図したタイミングで中断されるようにする必要もある。 研究者による再現でも意図した状態を得るまでに約10回の試行が必要だった。研究者は、このように注入したオブジェクトを PHP に標準搭載されている組み込みクラスのメモリ破損の欠陥と組み合わせ、リモートコード実行を実証したと報告している。そのため、アプリケーションにガジェットチェーンが存在しなくても攻撃が可能である。 ただし、組み合わせに使用した組み込みクラスとその欠陥の詳細は公開されておらず、外部から検証することはできない。セキュリティ告知では、このメカニズムについてリモートコード実行を影響として記載している。 CVE-2026-129496 : プロセス停止は容易だが、コード実行は難しい脆弱性 トリガー条件 一般的なシングルスレッド版 PHP において起動処理中の警告が PHP のファイルベースのエラーログに記録される必要がある。この警告は、タイムゾーン情報の参照先を消去する初期化処理よりも遅いタイミング、つまり起動処理の後半に記録されなければならない。警告が PHP-FPM 自体のログにのみ記録される場合は該当しない。 この状態で起動した新しいワーカーが最初のリクエストを完了する前にリクエストの初期段階で警告を発生させるリクエストが送信される必要がある。代表的な例として、1つのリクエストに含めることができる入力変数の上限を超えるリクエストが挙げられる。 ワーカーは新規起動時や再起動時に毎回生成されるため、この機会は繰り返し発生する。 悪用条件 この脆弱性については、実証された被害の範囲を2つに分けて考える必要がある。 1. ワーカーを停止させることは上記の条件だけで可能である。セキュリティ告知では、上記の条件を満たした PHP-FPM において、入力変数数の上限と nginx のヘッダーサイズ制限をいずれもデフォルト値に設定した状態で改ざんされたリモート HTTP リクエストを1つ送信することにより、ワーカーが停止することを確認した。 2. コード実行は、攻撃者がサーバーのメモリアドレスをすでに把握している実験環境で実証された結果である。 コード実行に至るには、メモリアドレスを把握し、メモリ配置を意図したとおりに調整する必要がある。また、追加で必要となる設定は実行環境によって異なる。 PHP-FPM で報告された方法では、リクエスト変数を必要になった時点で生成するのではなく、リクエスト開始時にあらかじめ生成するよう変更する設定と、Cookie の値もリクエスト変数に含める設定が必要であり、デフォルトの制限値より大きな認証ヘッダーも許可する必要がある。 Apache mod_php で報告された別の方法では、これらの設定を変更する代わりにメモリ制限を超える大容量データの送信リクエストと、大きな認証ヘッダーを許可する必要がある。 OS にはプログラムの実行時にメモリアドレスをランダムに変更して攻撃者がアドレスを予測しにくくする保護機能がある。しかし、リモートからこの保護機能を回避する方法は現時点では実証されていない。 CVE-2026-129481 : アプリケーションコードのパターンに起因する脆弱性 トリガー条件 セッションのクリーンアップ中に呼び出されるアプリケーションコードで致命的なエラーが発生する必要がある。実証された環境は PHP コードを事前に解釈してメモリに保存する OPcache 機能を無効にした PHP-FPM であり、セッションに保存されたストリームオブジェクトのクローズ関数でエラーが発生するケースであった。該当スクリプトのファイル名が OPcache によって長期間保持されるメモリに保存されている場合、リクエスト用のメモリが解放される経路を回避できる。ただし、OPcache が有効になっていてもキャッシュされていないスクリプトが実行される可能性があるため、OPcache を有効にしているからといってこの脆弱性が発生しないと断定することはできない。セキュリティアドバイザリでも、OPcache だけでは確実な対策にならないと説明されている。 悪用条件 次のリクエストが同じワーカーに送られる必要がある。セキュリティアドバイザリで再現によって確認されたのは解放済みのメモリが再利用される現象までである。ワーカーの停止はその結果として生じ得る影響として記載されており、コード実行の実証については言及されていない。 CVE-2026-129182 : 特殊な設定の組み合わせが必要な脆弱性 トリガー条件 2つの段階が必要である。まず、リクエスト終了時に設定を元に戻す処理で致命的なエラーが発生しなければならない。例えば、メモリ制限の設定をサーバー全体と特定のパスで異なる値に設定している場合や、サーバー全体では出力圧縮を有効にし、特定のパスでは無効にしたうえで、別の出力処理機能を指定している場合である。次に、同じワーカーの次のリクエストが初期化される前に警告を発生させなければならない。Apache mod_php ではディレクトリ単位の設定によってこの条件が成立する可能性があるが、PHP-FPM では Web サーバーがリクエストごとに PHP の設定値を渡すよう構成されており、その値が警告を引き起こす場合に限られる。このように、前述の設定の組み合わせがあらかじめサーバーに存在している必要があるため、一般的な構成では該当するケースは少ないと考えられる。 悪用条件 現時点でこのバグによって確認されているのは、メモリエラーとプロセス停止までである。セキュリティアドバイザリでは、10月の CVE-2026-109619 と同様にリモートコード実行につながる可能性があるとしているが、この脆弱性を起点としたコード実行は実証されておらず、そのために必要な追加条件も公開されていない。 CVE-2026-129474 : PHP 8.5 でリモートコード実行が確認された脆弱性 トリガー条件 PHP 8.5 で致命的なエラーのバックトレース記録機能が有効になっている必要がある。この機能はデフォルトで有効になっている。また、バックトレースに関数に渡された引数の値まで記録する設定になっている必要がある。PHP 自体のデフォルト設定では引数の値まで記録するが、PHP が運用環境向けに推奨している設定ファイルでは引数の値を記録しないようになっている。アプリケーションはマジックメソッドを介して呼び出しを転送する構造でなければならず、そのタイミングで致命的なエラーが発生する必要がある。実証では、JSON データを受け取り、マジックメソッドを介してログを記録するページに対してリクエストサイズを調整して送信し、ログに記録する値を生成する際にメモリ制限を超えるようにした。 悪用条件 攻撃者はリクエストデータによってメモリの使用状況を調整できる必要があり、さらに、前述のメモリアドレスのランダム化による保護が有効な環境でも利用可能なメモリアドレスを取得する必要がある。試行に失敗した場合、ワーカーが停止するか、一般的なリソース制限エラーによってリクエストが終了する。PHP ファイルをアップロードしたり、メソッド名を選択したりする必要はない。セキュリティアドバイザリでは、この手法によって PHP 8.5 でリモートコード実行が確認されたと報告している。この実証でログインなしの攻撃が可能だったのは実証に使用したパスに関する結果であり、別のアプリケーションのパスではログインが必要かどうかが異なる可能性がある。Laravel のファサード機能や Magento の一部機能が関連する経路として挙げられているが、実際に攻撃が可能であることは実証されていない。 対応策 1. パッチの適用 最も確実な対策は、使用しているバージョンに対応した最新バージョンにアップグレードすることである。今回のパッチには7件すべての脆弱性に対する根本的な修正が含まれており、使用しているバージョン系列ごとのアップグレード対象バージョンは以下の表のとおりである。 使用中のバージョン アップグレード対象 PHP 8.5.x 8.5.13 以上 PHP 8.4.x 8.4.28 以上 PHP 8.3.x 8.3.37 以上 PHP 8.2.x 8.2.36 以上 PHP 8.1 以下 公式パッチなし -> サポート対象バージョンへの移行が必要 [表2] 使用中のバージョン系列に応じたアップグレード対象バージョン 表のとおり、PHP 8.1 以下のバージョンには公式パッチが提供されていない。前述のとおり、一部の脆弱性は古いバージョンにも存在するため、これらのバージョンを使用している場合、サポート対象のバージョン系列に移行する以外に根本的な解決方法はない。現在 PHP 8.2 を使用している場合も、まだ安心できない。PHP 8.2 は2026年12月31日にセキュリティサポートが終了する予定であるため、今回 PHP 8.2.36 にアップグレードする場合でも上位のバージョン系列への移行計画を併せて立てておくことが望ましい。 アップグレードの際には、パッチが実際に適用されているかどうかも確認する必要がある。Ubuntu や RHEL などの Linux ディストリビューションでは、バージョン番号を変更せずにセキュリティ修正のみを取り込む場合があり、これをバックポートという。したがって、ディストリビューションのパッケージを使用している場合は、バージョン番号だけで判断せず、ディストリビューションのセキュリティアドバイザリで該当する CVE が修正されているかを確認する必要がある。Docker などのコンテナで運用している場合は、ベースイメージを新たに取得して再ビルドすることでパッチを反映させる必要がある。いずれの場合も、アップグレード完了後は PHP-FPM のマスタープロセスとすべてのワーカー、または Apache を必ず再起動し、新しいバージョンを適用する必要がある。 ただし、CVE-2026-115560 はパッチの適用だけでは対応が完了しない。パッチによってアップロード進捗機能のデフォルト設定は無効になるが、運用者がこの機能を再度有効にし、異なるシリアライズ方式で同じセッション保存先を共有すると、同様の不整合が依然として発生する可能性がある。したがって、パッチ適用後も、以下の緩和策で説明するセッション設定の確認を併せて行う必要がある。 2. 緩和策 すぐにアップグレードできない場合は、設定を変更することでリスクを軽減できる。ただし、これはパッチを適用するまでの暫定措置である。また、変更する設定がどのコンポーネントに属するかによって適用方法が異なる。PHP の設定を変更した場合は PHP-FPM または mod_php を使用する Apache を再起動する必要があり、nginx や Apache などの Web サーバーの設定を変更した場合は該当 Web サーバーに設定を再読み込みさせる必要がある。以下では、前述した順序に沿って、脆弱性ごとの緩和策を説明する。 1) Web サーバーと PHP-FPM 間の接続再利用を無効にする まず、PHP-FPM のリクエストスマグリング脆弱性である CVE-2026-129289 は、Web サーバーが PHP-FPM との接続を再利用しないようにすることで防止できる。nginx では fastcgi_keep_conn を、Apache では enablereuse を無効にし、リクエストごとに接続を閉じるようにする。これら2つの設定は PHP ではなく Web サーバー側の設定であるため、変更後は nginx または Apache の設定を再適用する必要がある。一部のコンテナイメージでは接続再利用がデフォルトで有効になっているため、コンテナで運用している場合はイメージに含まれる設定を直接確認することが望ましい。併せて、PHP-FPM がリクエストを受け付けるポートが外部や信頼できないネットワークに公開されていないかも確認する必要がある。 2) セッションのアップロード進捗機能を無効にする セッション関連の脆弱性である CVE-2026-115560 と CVE-2026-126714 は、共通してアップロード進捗機能を攻撃経路として利用する。したがって、この機能を使用していない場合は、session.upload_progress.enabled = 0 に設定して無効にし、ログインしていない攻撃者がセッションにデータを書き込む経路を遮断することが優先される。この設定は、コード内で ini_set() を使って変更しても手遅れになるため、php.ini、FPM プール設定、または仮想ホスト設定で変更する必要がある。 3) セッションのシリアライズ方式を統一し、セッション保存先を確認する 2つのセッション関連の脆弱性には、この共通対策に加えてそれぞれ異なる対応が必要である。CVE-2026-115560 はシリアライズ方式の不整合によって発生するため、セッション保存先を共有するすべてのアプリケーションで session.serialize_handler の値を統一するか、保存先自体を分離する必要がある。前述のとおり、パッチ適用後もアップロード進捗機能を手動で有効にしている場合はこの対策を引き続き実施する必要がある。一方、CVE-2026-126714 はシリアライズ方式が同じでも発生するため、方式を統一するだけでは防止できない。この脆弱性に対してはセッションに保存するユーザー入力を最小限に抑え、可能であれば保存時にレコード全体を置き換える方式のセッション保存先を使用することが望ましい。 4) PHP 起動時の警告を解消する タイムゾーンキャッシュに関する脆弱性である CVE-2026-129496 は、起動時の警告がファイルベースのエラーログに記録されることで発生するため、該当する警告を解消することが最も直接的な対策である。誤って記述された date.timezone の値や非推奨となっているセッション設定など、PHP の起動時にエラーログへ記録される警告をすべて解消したうえで再起動する。すぐにすべての警告を解消することが難しい場合は、エラーログの出力先をファイルから syslog に変更する方法もある。 5) セッションのクリーンアップ中に致命的なエラーが発生しないか確認する セッション終了処理に関する脆弱性である CVE-2026-129481 は、アプリケーションコードで致命的なエラーが発生することを起点とするため、ストリームのクローズ関数など、セッションのクリーンアップ中に呼び出されるコードで致命的なエラーが発生しないよう確認する必要がある。緊急時には、PHP-FPM で pm.max_requests=1 に設定し、リクエストごとにワーカーを新しく起動する方法もある。誤った参照が次のリクエストに引き継がれる前にワーカーが終了するためである。ただし、この方法は性能低下が大きい。 6) PHP 8.5 の致命的なエラーに関するバックトレース記録を無効にする PHP 8.5 にのみ該当する CVE-2026-129182 と CVE-2026-129474 は、いずれも致命的なエラーのバックトレース記録に起因するため、管理者レベルの設定で fatal_error_backtraces = 0 に変更し、この記録自体を無効にしたうえですべてのワーカーを再起動すれば、両方の脆弱性をまとめて防止できる。セキュリティアドバイザリで CVE-2026-129182 に対して提示されている暫定的な緩和策もこれであり、リクエスト単位の設定によってこの機能が再度有効にならないようにする必要がある。 7) 関数に渡された引数の値を記録対象から除外する バックトレース記録を無効にできない環境では、CVE-2026-129474 に限り、zend.exception_ignore_args = On に設定することで記録に関数に渡された引数の値が残らないようにする方法がある。この場合、コマンドライン実行用の設定だけを変更しても効果がないため、FPM プールの設定まで確認する必要がある。ただし、この設定は記録から引数の値を除外するだけであり、バックトレース記録自体を無効にするものではないため、CVE-2026-129182 の緩和策にはならない。また、display_errors=0 に設定して画面にエラーを表示しないようにするだけでは、いずれの脆弱性も防止できない点に注意する必要がある。 まとめ 今回の PHP セキュリティアップデートで修正された7件の致命的な脆弱性はすべて同じ 「Critical」 レベルに分類されているが、実際の危険度はそれぞれ大きく異なる。 最初に確認すべきなのは、PHP-FPM のリクエストスマグリング脆弱性である CVE-2026-129289 だ。Web サーバーが PHP-FPM との接続を再利用するよう設定されており、アプリケーションにリクエストボディを最後まで読み取らない経路が存在する場合、攻撃者は細工したアップロードリクエストを1回送信するだけでメモリ操作を行わずにリモートコード実行が可能になるためである。セッションのシリアライズ不整合に起因する CVE-2026-115560 も優先的に確認すべき脆弱性である。Guzzle や Monolog といった一般的なライブラリだけでもコマンド実行が実証されているため、アップロード進捗機能の有効/無効とセッション保存先の共有状況を必ず確認する必要がある。PHP 8.5 を運用している場合は、リモートコード実行が確認されたマジックメソッド関連の脆弱性である CVE-2026-129474 も優先度を上げて対応すべきである。 セッションファイルの上書きに関する脆弱性である CVE-2026-126714 についても、元の研究者はアプリケーションのガジェットチェーンを使用せずにリモートコード実行を実証したと報告している。ただし、プロセスを任意のタイミングで強制終了させるためには複数回の試行が必要であり、攻撃に使用された組み込みクラスの欠陥に関する詳細もまだ公開されていない。残りの脆弱性は、複雑な設定の組み合わせが必要であるか、コード実行に至るにはメモリアドレスを特定する必要があるため、相対的に攻撃難易度が高い。しかし、10月のパッチが不完全であり、わずか1か月後に再修正された事例からも分かるように、同様の問題は今後も発生する可能性がある。 したがって、最善の対応はシンプルである。直ちに最新バージョンにアップグレードし、それまでの間は上記の緩和策を適用することだ。今回の機会に、FastCGI の接続設定、セッション保存先の構成、起動時の警告など、普段あまり注目されない設定についても併せて点検することを推奨する。 出展 PHP 公式 ChangeLog : https://www.php.net/ChangeLog-8.php php-src セキュリティアドバイザリ、GitHub Security Advisories : https://github.com/php/php-src/security/advisories GHSA-qc49-hpvq-g2w6 : CVE-2026-129289 GHSA-658j-r8rw-q6mx : CVE-2026-115560 GHSA-fm2m-fjf5-v3cp : CVE-2026-126714 GHSA-gr4f-wgx5-jpfv : CVE-2026-129496 GHSA-g3vh-838c-65v7 : CVE-2026-129481 GHSA-2fjv-p558-g82m : CVE-2026-129182 GHSA-8mjj-2r7p-4hg2 : CVE-2026-129474 php[architect]、”PHP’s November security release: seven critical fixes, explained” : PHP Security Release Fixes Seven Critical Vulnerabilities | Exploitr depthfirst、CVE-2026-126714 の元研究 : https://depthfirst.com/research/phpaftershell PHP 8.5.12 セッションファイル保存処理コード : https://github.com/php/php-src/blob/php-8.5.12/ext/session/mod_files.c 関連 IOC および詳細な解析情報は、AhnLab の次世代脅威インテリジェンスプラットフォーム 「 AhnLab TIP 」 サブスクリプションサービスを通して確認できる。
ASEC It hasn’t even been that long since PHP2Shell was disclosed—and now another PHP vulnerability? 2026-11-20
A Three-Line Summary for Those in a Hurry The PHP development team released a security update on November 19, 2026, that addressed seven critical-level vulnerabilities; no instances of these being exploited in actual attacks have been reported yet. Among these, request smuggling in environments that reuse connections between the web server and PHP-FPM, object injection via the session upload feature, and a memory error in PHP 8.5’s magic methods—all of which have been confirmed to lead to remote code execution—are the most critical. You should immediately upgrade to PHP 8.5.13, 8.4.28, 8.3.37, or 8.2.36 or higher. For versions 8.1 and below, for which no official patches are available, you should migrate to a supported version. If an immediate upgrade is not possible, you should apply temporary mitigation measures, such as disabling connection reuse and the upload progress feature. Glossary of Terms for Better Understanding Before Reading This article frequently uses terminology related to web servers and the internal workings of PHP. Familiarizing yourself with the terms below before reading the main text will make it easier to follow the flow. PHP-FPM: A separate program that receives and processes requests from the web server that require PHP code execution. Web servers such as Nginx or Apache communicate with PHP-FPM using a standardized format called FastCGI. Worker: A worker is a process that PHP-FPM keeps running in the background; a single worker processes multiple requests sequentially. As a result, traces left by a previous request can affect the next request handled by the same worker. Session: A feature that temporarily stores user-specific information on the server, such as login status. Users are assigned a “session ID,” and by default, PHP stores sessions in a file on the server. Serialization and Deserialization: Converting data within a program into a format suitable for storage is called serialization; converting that format back into data is called deserialization. The data restored in this process may include not only simple values such as numbers or characters, but also “objects”—entities for which specific code execution occurs when they are created or destroyed. During deserialization of characters created by a threat actor and their revival as objects, this is called object injection. Use-After-Free: This is an error where a program accidentally reuses memory that it has released after no longer needing it. If other data is already present in that location, the program may behave erratically or crash; if a threat actor has preemptively placed desired data there, this can lead to code execution. Overview At approximately 11:00 p.M. On November 19, 2026 (KST), the PHP development team released security patches for all supported versions. The patched versions are PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36, and the same fixes are included in version 8.6.0, which was released on the same day. The changelog for PHP 8.5.13 lists a total of 18 CVEs; one of these is a vulnerability in `uriparser`, a URI parsing library bundled with PHP, while the remaining 17 are vulnerabilities in PHP itself. Seven of these were classified as “Critical,” the highest severity rating. This update follows on the heels of the emergency Vulnerability Patch released a month ago in October to address the PHP2Shell remote code execution vulnerability. Some of the seven vulnerabilities in this update were re-fixed because the previous fixes were incomplete, while others are new issues of the same nature. Most of them require specific configurations or code patterns—rather than the default settings—to be exploited, but some are dangerous enough that, if the conditions are met, a threat actor could perform code execution on the server. As of November 19, 2026, there have been no reported instances of these vulnerabilities being exploited in actual attacks. They have also not yet been added to the “List of Actively Exploited Vulnerabilities” maintained by the US Cybersecurity and Infrastructure Security Agency (CISA). This article will discuss seven vulnerabilities classified as “critical.” First, we will explain the causes of vulnerability for each vulnerability. Next, we will outline the conditions under which each vulnerability occurs and what additional resources a threat actor must possess to cause actual damage. Finally, we will introduce patches and temporary mitigation measures. Causes of Vulnerabilities The seven vulnerabilities can be broadly categorized into three types based on their causes. One issue involving communication between the web server and PHP: a problem where the system incorrectly distinguishes where one request ends and the next begins Two cases involving incorrect interpretation of session data: an issue where data injected by a threat actor is converted into a program object during the process of reading stored sessions Four cases of reusing memory that has already been released: a memory error known in the security field as “Use-After-Free” Let’s examine the causes of the vulnerabilities in each category one by one. CVE-2026-129289: PHP-FPM Request Smuggling CVE-2026-129289 is a vulnerability caused by PHP-FPM failing to properly clean up leftover data from a previous request, resulting in that leftover data being mistakenly accepted as part of a new request. To improve performance, a web server can be configured to send multiple requests consecutively over a single connection to PHP-FPM, rather than establishing a new connection for each request; this issue arises in such connection-reuse environments. If a PHP application leaves the channel for reading the request body open without reading it to the end, the remaining portion of the body stays in the connection. If a user deliberately sends a request to upload a file with a malformed format, causing PHP to stop reading in the middle of the body, PHP-FPM—having forgotten how far it had read—will process the remaining portion as if it were a new request arriving over the same connection. A threat actor exploits this vulnerability by pre-embedding a fake request—formatted as a request—at the end of the body; within this fake request, the threat actor can freely specify which PHP file to execute and how to modify PHP settings. From the web server’s perspective, it has merely processed a single legitimate request, but PHP-FPM ends up executing the request hidden by the threat actor as well. This type of attack, in which one request is secretly embedded within another, is called “Request Smuggling,” and this processing mechanism has existed since 5.6.0. CVE-2026-115560: Session Serialization Method Mismatch CVE-2026-115560 is a vulnerability caused by the session storage and reading sides interpreting data differently; this discrepancy allows characters inserted by a threat actor to be utilized as program objects. PHP converts session data into text and stores it in a storage medium such as a file; there are several serialization methods that follow the rules for this process. The default method concatenates each session entry in the format “name|content,” inserting a vertical bar between the name and the content; when reading, if a vertical bar is encountered, the text up to that point is treated as the name, and the text following it is treated as the content. In contrast, other methods include one that records the number of characters in the name and reads the first that many characters as the name; in this method, even if a vertical bar appears within the name, it is treated simply as one of the characters comprising the name. There is no problem if the same method is used for both writing and reading a session, but issues can arise when multiple applications or multiple PHP-FPM pools share a single session storage. For example, the situation changes if the writer uses the character-count method while the reader uses the default method. This is because the reading side interprets the vertical bar—which was merely part of the name on the writing side—as a marker indicating that “the name ends here and the content begins,” and consequently reads the remaining characters following the vertical bar as session content, i.E., The data to be restored. Of course, this difference alone is not enough to enable an attack. Since the application typically determines what is stored in a session and under what name, a threat actor has no way to include a vertical bar and the desired characters in the session item’s name. The feature that opens this vulnerability is the one that records file upload progress in the session. This feature stores the progress of the file upload as a new entry in the session, creating the entry name by appending the values contained in the upload request directly to a fixed prefix that signifies “upload progress.” Furthermore, since PHP handles this storage automatically before code execution, even an unauthenticated threat actor can fill the session entry name with arbitrary characters simply by sending a single upload request. The threat actor appends object data—designed to perform the desired action when restored—to this name, separated by a vertical bar. To the writer, this is just a slightly odd-looking entry name, but the reader interprets the characters following the vertical bar as session content and restores them as-is. As a result, when the session is read, object injection occurs, causing the object designed by the threat actor to be instantiated. One of the October PHP2Shell vulnerabilities was also related to this upload progress feature. Some security firms refer to the CVE-2026-115560 vulnerability as the “third PHP2Shell” because it represents another Path that the fixes from that time failed to block. However, unlike the two October vulnerabilities—which stemmed from memory corruption caused by abnormal request termination—this vulnerability is fundamentally different in that it involves object injection via deserialization. In other words, while the attack vector and the ultimate damage (remote code execution) are the same, the mechanism by which the problem occurs is different. CVE-2026-126714: Partially Overwritten Session Files In some cases, PHP stores session files by overwriting existing content without deleting it. If the overwrite operation is forcibly interrupted, the new and old content become mixed, and this mixed content can be interpreted as a program object. The resulting vulnerability is CVE-2026-126714. By default, PHP stores sessions in files; if the new data is shorter than the existing file, it first clears the file before writing. However, if the new data is the same length or longer, PHP assumes the new data will overwrite all existing content anyway and overwrites the file starting from the beginning without clearing it first. While this approach usually poses no problem, if the process is forcibly terminated during the overwrite, the file ends up containing a mix of the beginning of the new data and the end of the previous data. If such a mixed file is read in the next request, the section where the new data and the previous data are concatenated can be interpreted as a serialized object. If a threat actor pre-designs both sets of data, they can create a desired object, which ultimately leads to object injection, as described earlier in CVE-2026-115560. However, unlike CVE-2026-115560, this vulnerability occurs even when both the writer and reader use the same default serialization method. CVE-2026-129496: Use-After-Free in the Time Zone Cache The four vulnerabilities introduced below are all “Use-After-Free” vulnerabilities, where issues arise from reusing memory that has already been deallocated. CVE-2026-129496 is a vulnerability caused by PHP failing to clear the location of time zone information that was briefly used and released when the application started; later, while processing a request, PHP assumes that information is still in that location and reads from memory that has already been released. PHP stores and reuses time zone information in memory so it does not have to look up new information every time it handles dates and times. However, if a warning message occurs during the PHP process startup and this message is logged to the file-based error log, the time zone information retrieved to generate the timestamp for the log entry is stored in temporary memory used only during the startup phase. This temporary memory is released once startup is complete. Normally, this isn’t a problem because the reference pointing to the location of the time zone information is cleared during the subsequent initialization process. However, if the warning is logged after that initialization has completed, the reference remains intact. Therefore, not all startup-phase warnings cause problems; only those logged to the file-based error log during the latter part of the startup phase are affected. If a newly spawned worker (process) processes its first request while this reference remains and then logs another warning, it will read from memory that has already been released. These startup-phase warnings typically occur when time zone settings are entered incorrectly or when session settings that are no longer recommended are used. CVE-2026-129481: Use-After-Free Due to Interruption During Session Termination CVE-2026-129481 is a vulnerability that occurs when PHP’s session cleanup process is interrupted by an error while processing and concluding a single session-based web request, leaving memory address information that should have been deleted intact. Any request that uses a session—such as when a logged-in user opens a page—undergoes this cleanup process at the end. When a session begins, PHP records the file name of the currently executing script file in the request memory and stores its location in an internal variable. This internal variable is cleared during the final step of session cleanup after the request ends. However, prior to that, PHP removes the values stored in the session one by one; during this process, code execution occurs for PHP code written by the web service developer—rather than PHP itself—which may be executed. This is because sessions can store not only simple values such as numbers or characters but also objects created by the developer, and these objects are often designed to clean up after themselves when they are destroyed. Since this cleanup code is written by the Service developer, the developer’s code is effectively executed at the moment PHP removes the session values. For example, if a developer has placed a custom file I/O channel in the session, code execution to close that channel will occur at this stage. If a fatal error occurs in that code that immediately halts execution, the cleanup process is interrupted before internal variables are cleared; meanwhile, the memory allocated for the request is released in its entirety, causing the internal variables to point to memory locations that no longer exist. This incorrect address information is used in the next request processed by the same worker, regardless of whether that request belongs to a different user. This vulnerability is a residual issue resulting from an incomplete fix for CVE-2026-109619, which was discovered in October, and affects PHP 8.3부터. CVE-2026-129182: Use-After-Free Due to Regeneration of Error Call Path; Affects PHP 8.5 Only CVE-2026-129182 is a vulnerability that occurred because PHP 8.5did not account for cases where error logs, which are normally cleared at the end of a request, are recreated during the subsequent cleanup process; the recreated logs remain until the next request, pointing to memory that will soon be released. When an error occurs in a program, a log can be created that traces back the sequence of functions called—which function called which function—up to the point where the error occurred. For example, if an order processing function calls a payment function, which in turn calls a card verification function, and an error occurs there, this sequence is recorded; simply put, this can be viewed as a “call path.” Starting with PHP 8.5, when a fatal error occurs, the call path is logged as well, and it is enabled by default. Since the call path is generated using request memory, the 8.5.12 patch released in October was designed to clear this path when the request ends. However, the patch overlooked the fact that if a fatal error occurs again during the cleanup phase following the clearing of the path, a new path is generated. So why might an error occur during the cleanup phase? In addition to server-wide default settings, PHP allows you to apply different settings to specific folders or Paths. When using path-specific settings, PHP changes the configuration only for the duration of requests to that path; once the request ends, it reverts to the server-wide settings for the next request. However, depending on the combination of settings—such as memory limits or output compression—a fatal error can occur during this rollback process. Examples include setting different memory limits for the entire server and a specific path, or enabling output compression server-wide while disabling it for a specific path. The memory allocated due to this error remains pointed to memory intended for the next request—which is about to be released—and is used by the next request processed by the same worker. CVE-2026-129474: Use-After-Free in Magic Method Error Path, Affects PHP 8.5에만 CVE-2026-129474 is a vulnerability in PHP 8.5 where it occurs when a fatal error happens at the moment a magic method intercepts a call and passes it to the actual processing function; as a result, a value pointing to memory that has already been deallocated is stored in the error log. Magic methods are special methods that PHP invokes on behalf of the program when a non-existent method is called. For example, even if a logging tool does not have a separate method called “logWarning,” if a program calls it by that name, the magic method can intercept the call and forward it to the function that actually handles the logging. In other words, it acts as an intermediary between the name called by the program and the function that actually performs the task. Therefore, they are frequently used in code that forwards incoming calls to the actual processing logic, such as in logging tools, database libraries, and Laravel’s facade functionality. If a fatal error occurs during the brief moment when the call is passed via a magic method, the call path described earlier is generated, and it includes the values passed to each function. The problem is that some of the values logged at that exact moment may point to memory locations that have already been released. A threat actor can manipulate the size of the request to cause PHP to exceed its memory limit at precisely this moment, triggering a fatal error. If other data is subsequently written to that freed memory location, PHP will read the log and use the new data instead of the original value; thus, a threat actor can exploit this by injecting arbitrary data into that location. However, the call path may log only which functions were called, or it may also log the values passed to each function; which option is used is determined by configuration. This vulnerability occurs only when the log is configured to record passed values. This is because if passed values are not logged, the log will not contain any values pointing to the returned memory. Trigger Conditions and Exploitation Conditions The mere presence of a vulnerability does not guarantee a successful attack. Here, we will examine this in two stages. Trigger Conditions: What server settings, application code, and request sequence must be in place for the bug to actually occur? Exploitation Conditions: Once the bug occurs, what else is required for a threat actor to turn it into actual damage, such as code execution? CVE Supported versions for which a fix has been provided Attack Location Trigger Conditions Exploitation Conditions Maximum Confirmed Damage CVE-2026-129289 FPM Request Smuggling 8.2~8.5 Remote, no login required FastCGI connection reuse enabled + application Path that does not read the entire request body + manipulated upload request Only the path to a single PHP file on the server is required Remote Code Execution CVE-2026-115560 Session Serialization Mismatch 8.2~8.5 Remote Upload progress feature enabled + Different serialization methods used by parties sharing the session store Target session ID + gadget chain within the application Command execution CVE-2026-126714 Partial Overwrite of Session File 8.2~8.5 Remote, no login required File-based sessions enabled + Forced termination of the process while overwriting data that is the same length as or longer than the existing data Specify session ID + Stop writing at desired point + Mixed data design + Memory corruption flaw in built-in PHP class Remote Code Execution , as reported by the original researcher CVE-2026-129496 Time Zone Cache UAF 8.2~8.5 Remote, limited to process termination A warning during the latter part of the startup phase is logged in the file error log + Warning occurs on the first request of a new worker Code execution requires identifying memory addresses + manipulating memory layout + additional configuration depending on the execution environment Process crash via remote request; code execution achieved in a test environment where memory addresses were known CVE-2026-129481 Session Termination UAF 8.3~8.5 Remote; varies depending on the application architecture A fatal error occurs in code called during session cleanup The next request must be routed to the same worker Use-After-Free reproduction; process crash mentioned as a possible impact CVE-2026-129182 Call Path Log Replay UAF 8.5 Remote; special configuration required Failure to restore cleanup phase settings + warning early in the next request; in FPM, configuration is required for the web server to pass PHP settings The method and conditions for code execution have not been disclosed Process crash and code execution were not demonstrated CVE-2026-129474 Magic Method UAF 8.5 Remote; the demonstrated Path does not require login Configuration that logs values passed to functions + memory limit exceeded while entering the magic method Adjusting request size + identifying memory addresses Remote code execution [Table 1] Investigation Details for 7 Critical Vulnerabilities The second column of the table does not represent the full scope of the vulnerabilities but rather the supported versions for which official fixes were recently released. In many cases, the vulnerabilities themselves have existed for much longer. Since the same behavior was present in CVE-2026-129289 starting with PHP 5.6.0, in CVE-2026-115560 starting with 5.4.0, and in CVE-2026-126714 starting with 4.1.0, even older versions that are no longer supported may be affected. As shown in the table, the severity varies significantly from vulnerability to vulnerability. Each is explained in detail below. CVE-2026-129289: The Easiest Vulnerability to Exploit, Provided the Configuration is Correct Trigger Conditions The web server must be configured to reuse connections with PHP-FPM without closing them. Nginx, Apache, and HAProxy all allow this connection persistence feature to be enabled, and this scenario applies when that feature is active. Additionally, the application must have a path that opens the request body but does not read it to the end, and the threat actor must send a malformed upload request to that path. If the framework leaves the input stream open before routing or authentication, this condition can be met even on pages that do not use the request body. Conversely, typical Nginx and Apache configurations that close the connection after each request are not affected. Exploitation Conditions If all of the above conditions are met, the only additional information a threat actor needs is the Path to a single PHP file actually present on the server. If a hidden, fake request is sent to change the PHP configuration and instruct the server to execute the request body as PHP code first, the code contained in the body will be executed as-is. Since there is no need for sophisticated memory manipulation or precise timing, the success rate is very high. Furthermore, this altered configuration may persist for subsequent requests handled by the same worker. However, this chain of events leading to code execution has only been confirmed in cases where FastCGI connections are reused. LSAPI, which the LiteSpeed web server uses to communicate with PHP, also contains the same flaw: it fails to clean up the remaining body after reading it. However, since LSAPI uses a different communication format than FastCGI, the attack vector is different. To date, only request mixing has been confirmed in LSAPI, and code execution has not been proven. CVE-2026-115560: A Dangerous Session Vulnerability That Can Be Exploited Even with Common Libraries Trigger Conditions The feature that logs the progress of files being uploaded to the session must be enabled, and the writer and reader of the same session must use different serialization methods. This mismatch occurs when an application changes its serialization method immediately before starting a session, or when applications, FPM pools, and virtual hosts—each configured with different serialization methods—share the same session storage folder. Note that simply splitting FPM pools does not automatically split the session storage. This problem does not occur if all components use the same method. Exploitation Conditions First, a threat actor must be able to know or specify the ID of the target session. Next, there must be a gadget chain within the application reading the session. A gadget chain is a technique that links together pieces of code that automatically execute when an object is created or destroyed to produce the desired behavior. In fact, command execution was demonstrated using the Guzzle and Monolog libraries, which are frequently installed via Composer, a PHP package manager. Since these libraries are very common, this condition is met more easily than one might think. CVE-2026-126714: Vulnerability Reported to Allow Remote Code Execution Without Application Code Trigger Conditions The file-based method—PHP’s default session storage method—must be used, and the process must be forcibly terminated while overwriting an existing file with data of equal or greater length. A threat actor must be able to manipulate the session contents through features such as file upload progress or long user inputs stored in the session. The serialization methods used for writing and reading do not need to differ. As a method for forcing the process to terminate, the security advisory cited a scenario in PHP built with multithreading where another thread exceeds the memory limit, causing the entire process to terminate. The researcher who first discovered this vulnerability also reported other methods. By holding multiple requests to upload in queue to fill the web server’s available memory to its limit, a well-timed request caused the worker writing to the session to exceed that limit. The operating system then forcibly terminates that worker to prevent a memory shortage. Exploitation Conditions The threat actor must first be able to specify a session ID to which data will be written, and the application must later read from a session with that same session ID. In the researchers’ reproduction of the exploit, they used the “upload in progress” feature while logged out to upload data to a file with a session ID specified by the threat actor; subsequently, when the application initiated a session with that same session ID, the mixed data was read. Additionally, the layout must be designed so that the exact desired object is created when the old and new data are mixed, and the save operation must be made to stop at the desired point. Even in the researcher’s reproduction, it took approximately 10 attempts to achieve the desired state. The researcher reported demonstrating remote code execution by combining the injected object with a memory corruption vulnerability in a built-in PHP class. Therefore, the attack is possible even if the application lacks a gadget chain. However, the details of the built-in class used in the combination and its vulnerability have not been disclosed, so external verification is not possible. The security advisory describes this mechanism and lists remote code execution as the impact. CVE-2026-129496: A Vulnerability Where Process Termination is Easy but Code Execution is Difficult Trigger Conditions In a typical single-threaded PHP build, a startup-phase warning must be logged to PHP’s file-based error log. This warning must be logged after the initialization that clears the timezone reference—that is, during the latter part of the startup phase. Cases where the warning is logged only to PHP-FPM’s own log do not qualify. In that state, before a newly spawned worker completes its first request, a request that triggers a warning early in the request process must arrive. A typical example is a request that exceeds the upper limit on the number of input variables that can be contained in a single request. Since workers are spawned or restarted each time, such opportunities arise repeatedly. Exploitation Conditions The scope of proven damage from this vulnerability should be considered in two parts. First, stopping a worker is possible based solely on the conditions described above. The security advisory confirmed that, in a PHP-FPM instance meeting these conditions—with both the input variable limit and Nginx’s header size limit set to their default values—a single maliciously crafted remote HTTP request caused the worker to stop. Second, code execution was demonstrated in a test environment where the threat actor already knew the server’s memory addresses. To achieve code execution, the threat actor must know the memory addresses and arrange the memory layout as desired; additionally, the required configuration varies depending on the execution environment. The method reported for PHP-FPM requires configuring the system to pre-generate request parameters at the start of the request rather than when they are needed, as well as allowing cookie values to be included in the request parameters; it also requires allowing authentication headers larger than the default limit. Another method reported for Apache mod_php does not require changing these settings but instead requires allowing requests that transfer large amounts of data exceeding the memory limit and accepting large authentication headers. Operating systems have a protection mechanism that randomly changes memory addresses each time a program runs, making it difficult for threat actors to predict those addresses; however, no method for remotely bypassing this protection has yet been demonstrated. CVE-2026-129481: Vulnerability in Application Code Patterns Trigger Conditions A fatal error must occur in application code called during session cleanup. The demonstrated environment was PHP-FPM with the OPcache feature—which pre-compiles PHP code and stores it in memory—disabled, and the error occurred in the close function of a stream object stored in the session. If the file name of the script in question is stored in memory—where OPcache retains it for an extended period—it can bypass the Path by which memory allocated for the request is released. However, since uncached scripts can still be executed even when OPcache is enabled, it cannot be concluded that this vulnerability does not exist simply because OPcache is enabled. The security advisory also explains that OPcache alone cannot serve as a reliable countermeasure. Exploitation Conditions Subsequent requests must be routed to the same worker. The security advisory confirmed, through reproduction testing, only the phenomenon of reusing memory that had already been released. The worker freezing was described as a potential consequence of this, but no code execution demonstration was mentioned. CVE-2026-129182: Vulnerability Requiring a Specific Configuration Combination Trigger Conditions Two steps are required. First, a fatal error must occur while the settings are being restored to their original state at the end of a request. For example, this could happen if memory limit settings are configured differently for the entire server and for a specific path, or if output compression is enabled for the entire server but disabled for a specific path while a separate output handling function is specified for that path. Second, a warning must be triggered before the next request for the same worker is initialized. In Apache mod_php, this condition can arise due to directory-specific settings, but in PHP-FPM, it only applies when the web server is configured to pass PHP configuration values along with each request and those values trigger a warning. Since the bug requires the specific combination of settings described above to already exist on the server, it is unlikely to occur in typical configurations. Exploitation Conditions So far, the confirmed effects of this bug range from memory errors to process crashes. Although security advisories, such as CVE-2026-109619 from October, suggest it could lead to remote code execution, no code execution has been demonstrated using this vulnerability as an entry point, nor have the additional conditions required for such an exploit been disclosed. CVE-2026-129474: Vulnerability in PHP 8.5 Confirmed to Allow Remote Code Execution Trigger Conditions Call trace logging must be enabled in PHP 8.5; this feature is enabled by default. Additionally, call trace logging must be configured to log the values passed to functions. While PHP’s default setting logs passed values, the configuration file recommended by PHP for production environments is set not to log them. The application must be structured to pass calls via magic methods, and a fatal error must occur at that moment. In the demonstration, a request was sent to a page that receives JSON data and logs it via magic methods, with the request size adjusted so that the memory limit would be exceeded the moment the value to be logged was generated. Exploitation Conditions A threat actor must be able to manipulate memory usage patterns via request data and secure a memory address that can be written to even in environments where memory address randomization protection, as described earlier, is enabled. If the attempt fails, the worker will stop, or the request will terminate with a standard resource limit error. There is no need to upload a PHP file or specify a method name. The security advisory stated that remote code execution was confirmed in PHP 8.5 using this method. The fact that the attack could be carried out without logging in was specific to the path used in the demonstration; whether login is required may vary depending on the application path. Although Laravel’s facade functionality and some features of Magento were mentioned as relevant paths, it has not been proven that actual attacks are possible. Mitigation Measures 1. Patch The most reliable countermeasure is to upgrade to the latest version compatible with your current installation. This patch includes fundamental fixes for all seven vulnerabilities; the versions to upgrade to, depending on your branch, are listed in the table below. Current Version Target Upgrade PHP 8.5.x 8.5.13 or later PHP 8.4.x 8.4.28 or later PHP 8.3.x 8.3.37 or later PHP 8.2.x 8.2.36 or later PHP 8.1 or earlier No official patch → Must upgrade to a supported version [Table 2] Upgrade versions corresponding to the version series currently in use As shown in the table, no official patches are provided for PHP 8.1 and earlier versions. As explained earlier, some vulnerabilities exist even in older versions, so if you are using one of these versions, there is no fundamental solution other than migrating to a supported version series. Even if you are currently using 8.2, it is too early to rest easy. Since security support for PHP 8.2 is scheduled to end on December 31, 2026, even if you upgrade to 8.2.36 now, it’s a good idea to also make plans to migrate to a newer version series. During the upgrade process, you must also verify that the patches have actually been applied. Linux distributions such as Ubuntu and RHEL sometimes apply security fixes without changing the version number; this is known as a backport. Therefore, if you are using distribution packages, do not make assumptions based solely on the version number; instead, check the distribution’s security bulletins to confirm whether the relevant CVE has been fixed. If you’re running in a container environment like Docker, you’ll need to download a new base image and rebuild it for the patch to take effect. In any case, after completing the upgrade, you must restart the PHP-FPM master process and all workers—or Apache—for the new version to take effect. However, CVE-2026-115560 cannot be resolved by the patch alone. The patch changes the default setting for the upload progress feature to “off,” but if an administrator re-enables this feature and different serialization methods are used to share the same session store, the same inconsistency may still occur. Therefore, even after applying the patch, you must also verify the session settings as described in the mitigation steps below. 2. Mitigation Methods If upgrading immediately is difficult, you can reduce the risk by changing the settings. However, this is a temporary measure to hold off until the patch is available. Additionally, the method of application varies depending on where the changed settings are located. If you have changed PHP settings, you must restart PHP-FPM or Apache (if using mod_php); if you have changed the settings of a web server such as nginx or Apache, you must reload the configuration so that the web server can read the new settings. Below, we describe mitigation methods for each vulnerability, following the order discussed earlier. 1) Disable Connection Reuse Between the Web Server and PHP-FPM First, the PHP-FPM request smurfing vulnerability (CVE-2026-129289) can be prevented by ensuring the web server does not reuse connections with PHP-FPM. In nginx, disable `fastcgi_keep_conn`, and in Apache, disable `enablereuse` to ensure the connection is closed after each request. Since these are web server settings—not PHP settings—you must reapply the nginx or Apache configuration after making these changes. Since connection reuse is enabled by default in some container images, if you are running the application in a container, it is advisable to check the settings within the image directly. Additionally, you should verify that the port on which PHP-FPM listens for requests is not exposed to the outside or to untrusted networks. 2) Disable the Session Upload Progress Feature The session-related vulnerabilities CVE-2026-115560 and CVE-2026-126714 both use the upload progress Path as an attack path. Therefore, if you do not use this feature, you should disable it by setting `session.upload_progress.enabled=0` as a priority to prevent unauthenticated threat actors from writing data to the session. Since changing this via `ini_set()` within the code is already too late, you must modify it in `php.ini`, the FPM pool configuration, or the virtual host configuration. 3) Standardizing Session Serialization Methods and Inspecting Session Storage In addition to this common measure, each of these two session vulnerabilities requires a different response. Since CVE-2026-115560 arises from a mismatch in serialization methods, you must either set the `session.serialize_handler` value to the same value for all applications sharing the session store or completely separate the stores. As explained earlier, this measure remains necessary even after applying the patch if the upload progress feature has been manually enabled. In contrast, CVE-2026-126714 can occur even when the serialization method is the same, so standardizing the method alone is not sufficient to prevent it. To address this vulnerability, it is best to minimize the amount of user input stored in sessions and, whenever possible, use a session store that replaces the entire record when saving. 4) Summary of PHP Startup Phase Warnings CVE-2026-129496, a timezone cache vulnerability, occurs when startup warnings are logged to the error log; therefore, the most direct countermeasure is to eliminate those warnings. Clear all warnings logged in the error log during PHP startup—such as incorrectly set `date.timezone` values or deprecated session settings—and then restart the server. If it is difficult to eliminate all warnings immediately, you can also configure the system to send the error log to `syslog` instead of a file. 5) Check for Critical Errors During Session Cleanup Since the session termination vulnerability CVE-2026-129481 originates from critical errors in the application code, you must verify that no critical errors occur in code called during session cleanup—such as functions that close streams. As a quick fix, you can set `pm.max_requests=1` in PHP-FPM to launch a new worker for each request. This is because the worker will be terminated before any invalid references are passed on to the next request. However, this method results in significant performance degradation. 6) Disabling Call Stack Tracing for Fatal Errors in PHP8.5 Since CVE-2026-129182 and CVE-2026-129474, both specific to PHP 8.5, stem from the Path of fatal error call traces. Therefore, you can prevent both vulnerabilities by changing the setting to `fatal_error_backtraces = 0` in the administrator-level configuration to disable this logging entirely and then restarting all workers. This is also the temporary mitigation method recommended in the security advisory for CVE-2026-129182, and you must ensure that this feature is not re-enabled via request-level settings. 7) Excluding Values Passed to Functions from Logging In environments where call trace logging cannot be disabled, a workaround specific to CVE-2026-129474 is to set `zend.exception_ignore_args` to `On` to prevent values passed to functions from being logged. However, changing this setting only for command execution will not be effective; you must also verify the FPM pool configuration. However, since this setting only excludes passed values from the logs and does not prevent call stack logging itself, it does not serve as a mitigation for CVE-2026-129182. Additionally, note that simply setting `display_errors=0` to prevent errors from being displayed on the screen is not sufficient to prevent either vulnerability. Conclusion Although the seven critical vulnerabilities fixed in this PHP security update were all classified as “critical,” their actual risk levels vary significantly. The first vulnerability to examine is CVE-2026-129289, a PHP-FPM request smurfing vulnerability. This is because, if a web server is configured to reuse connections with PHP-FPM and the application contains a path that does not read the entire request body, a threat actor can perform remote code execution with a single manipulated upload request without needing to manipulate memory. CVE-2026-115560, a session serialization mismatch vulnerability, also warrants immediate attention. Since command execution has been demonstrated using common libraries such as Guzzle and Monolog, you must verify whether your application uses functionality for uploading files and whether session storage is shared. If you are running PHP 8.5, you should also prioritize CVE-2026-129474, a magic method vulnerability where remote code execution has been confirmed. The researcher also reported that CVE-2026-126714, a session file overwrite vulnerability, allowed for remote code execution without an application gadget chain. However, multiple attempts are required to force the process to terminate at the desired time, and the details of the built-in class flaw used in the attack have not yet been disclosed. The remaining vulnerabilities require complex configuration combinations or the discovery of memory addresses to achieve code execution, making them relatively difficult to exploit. However, as seen in the case where the October patch was incomplete and had to be fixed again just one month later, similar issues may continue to emerge. Therefore, the best course of action is simple: upgrade to the latest version immediately, and until then, apply the mitigation settings listed above. We also recommend taking this opportunity to review settings you might not normally pay attention to, such as FastCGI connection settings, session storage configuration, and startup warnings. Source Official PHP ChangeLog: https://www.php.net/ChangeLog-8.php Php-src Security Notice, GitHub Security Advisories: https://github.com/php/php-src/security/advisories GHSA-qc49-hpvq-g2w6: CVE-2026-129289 GHSA-658j-r8rw-q6mx: CVE-2026-115560 GHSA-fm2m-fjf5-v3cp: CVE-2026-126714 GHSA-gr4f-wgx5-jpfv: CVE-2026-129496 GHSA-g3vh-838c-65v7: CVE-2026-129481 GHSA-2fjv-p558-g82m: CVE-2026-129182 GHSA-8mjj-2r7p-4hg2: CVE-2026-129474 Php[architect], “PHP’s November security release: seven critical fixes, explained” : PHP Security Release Fixes Seven Critical Vulnerabilities | Exploitr Depthfirst, Original research on CVE-2026-126714: https://depthfirst.com/research/phpaftershell PHP 8.5.12 session file storage code: https://github.com/php/php-src/blob/php-8.5.12/ext/session/mod_files.c Gain access to related IOCs and detailed analysis by subscribing to AhnLab TIP . For subscription details, click the banner below.
ASEC PHP Product Security Update Advisory 2026-11-19
Overview A security update addressing multiple vulnerabilities in PHP has been released. Affected Versions include PHP 8.2.0 through 8.2.35, 8.3.0 through 8.3.35, 8.4.0 through 8.4.27, and 8.5.0 through 8.5.12. Key Points The resolved vulnerabilities include a remote code execution vulnerability caused by a mismatch in PHP session serialization methods (CVE-2026-115560), a remote code execution vulnerability caused by partial overwriting of PHP session files (CVE-2026-126714), and a denial-of-service vulnerability (CVE-2026-127960) arising from the processing of PHP HTTP response headers. Additionally, a vulnerability involving the exposure of plaintext information during PHP’s processing of HTTPS and FTPS URLs (CVE-2026-128064), a vulnerability that allows signature verification to be bypassed due to a downgrade in the PHAR signing algorithm (CVE-2026-128090), and a use-after-free vulnerability occurring during the processing of PHP error trace information (CVE-2026-129182) have also been fixed. An HTTP request smuggling vulnerability (CVE-2026-129289) in PHP-FPM (High-Performance PHP Execution Environment), a local privilege escalation vulnerability caused by using the service after it has been disabled (CVE-2026-129291), and a cross-site scripting vulnerability occurring on the status page (CVE-2026-129292). In addition, there is an input validation vulnerability (CVE-2026-129438) occurring during PHP URI serialization processing, a remote code execution vulnerability (CVE-2026-129474) occurring during magic method error backtracing, a use-after-free vulnerability occurring during session termination processing (CVE-2026-129481), a remote code execution vulnerability caused by a use-after-free during time zone cache processing (CVE-2026-129496), a double-free vulnerability occurring during DOM XML serialization (CVE-2026-129501), a use-after-free vulnerability occurring in SOAP (Web Services Communication Specification) (CVE-2026-129506), an out-of-bounds memory read and write vulnerability occurring during PHP-CGI PATH_INFO processing (CVE-2026-129538), an information disclosure vulnerability in SOAP (CVE-2026-15353), and an integer overflow vulnerability in the uriparser library’s URI query processing (CVE-2026-48841) have been resolved. Response Updating to PHP 8.2.36 or later, 8.3.37 or later, 8.4.28 or later, or 8.5.13 or later will apply the Vulnerability Patch.
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 엔드포인트 탐지·대응 EDR | cwe | CWE-416 (직접 매핑) |
| 침입방지시스템 IPS | cwe | CWE-416 (직접 매핑) |
취약점 종류 CWE
용어 설명 CVE · CVSS · EPSS · KEV · NVD …
- CVE 취약점 번호
- 공개된 보안 취약점마다 붙는 국제 고유 번호입니다. 예: CVE-2021-44228(Log4j). 가운데 숫자는 번호를 받은 해입니다.
- CVSS 위험도 점수
- 취약점이 얼마나 위험한지 0~10점으로 매긴 국제 표준 점수입니다. 심각 9.0 이상 · 높음 7.0~8.9 · 중간 4.0~6.9 · 낮음 0.1~3.9. 공격이 얼마나 쉬운지와 피해 크기로 정하며, 실제로 공격받고 있는지는 반영하지 않습니다.
- EPSS 악용 가능성
- 앞으로 30일 안에 실제 공격에 쓰일 확률을 추정한 값(0~100%)입니다. 국제 보안 단체 FIRST 가 매일 계산합니다. 높을수록 먼저 조치하세요.
- KEV 실제 악용 확인
- 미국 사이버보안청(CISA)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
- 공격 코드 공개된 PoC
- NVD 참고 링크 중 '공격 코드(Exploit)' 표시가 붙은 것이 있다는 뜻입니다. 누구나 공격을 시도해 볼 수 있으므로 서두르는 게 좋지만, 실제 악용이 확인된 것(KEV)과는 다릅니다.
- NVD 미국 취약점 DB
- 미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
- 우선순위 이 사이트의 참고 점수
- CVSS·KEV·랜섬웨어·EPSS·ASEC 언급·공격 코드 공개를 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
- ASEC 안랩 분석 글
- 안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
- CWE 취약점 종류
- 취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
- CPE 영향받는 제품
- 취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
- KB Microsoft 업데이트 번호
- Microsoft 가 업데이트마다 붙이는 번호입니다. 예: KB5068791. '수정된 버전' 은 업데이트 후의 빌드 번호로, 이보다 낮으면 업데이트가 필요합니다.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.