CVE-2026-7317: Unsafe Unserialize Missing Hmac

Unsafe deserialization of data from files, streams, or decoded strings without integrity checks. An attacker who can control the input can inject arbitrary PHP objects, leading to Remote Code Execution. Ensure data is cryptographically signed (e.g., using HMAC) and verified with `hash_equals` before calling `unserialize`.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-7317-unsafe-unserialize-missing-hmac --engine opengrep

Description

Unsafe deserialization of data from files, streams, or decoded strings without integrity checks. An attacker who can control the input can inject arbitrary PHP objects, leading to Remote Code Execution. Ensure data is cryptographically signed (e.g., using HMAC) and verified with `hash_equals` before calling `unserialize`.