Session serializer mismatch can lead to remote code execution
NIST has not reviewed this entry yet, so scores and affected versions may be missing or may change.
Session serializer mismatch can lead to remote code execution. Session upload progress, when enabled, can store attacker-controlled data in a session key using the php_binary or php_serialize session serializer. If the same session is later read with the php serializer, because session.serialize_handler is changed at runtime or differs between applications sharing a session store, bytes inside the key can be passed to the unserializer. A remote attacker able to submit a multipart upload can inject objects, which may lead to code execution when the reading application contains a suitable gadget chain, or to session corruption or denial of service. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Improper Input Validation CWE-20
The software trusts data it is given without checking it, so an attacker can send something it was never built to handle.
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Weakness data: MITRE Common Weakness Enumeration.
Deserialization of Untrusted Data CWE-502
The software rebuilds objects from data an attacker can control, which can let them run code.
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| PHP Group PHP | Software | from 0, before 8.2.36; from 8.3.0, before 8.3.37; from 8.4.0, before 8.4.28; from 8.5.0, before 8.5.13 | 8.2.36; 8.3.37; 8.4.28; 8.5.13 |
The 9.2 severity score (critical) from php.net, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Setup needed on the target | Present | The target has to be set up in a particular way. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
NIST lists 4 sources for this flaw, none tagged as a vendor patch.