Partially overwritten session files can lead to remote code execution.
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- PHP
- Product
- PHP
- CVSS v4.0
- 9.2 AV:N/AC:L/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
- Exploitation
- SSVC none, automatable no, impact total
- Weakness
- CWE-367, CWE-662
- NVD status
- Received
Why it ranks 36 (Notable)
- CVSS v4.0 9.2 critical
- SSVC: total technical impact
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.