CVE-2023-28115CWE-502

Snappy vulnerable to PHAR deserialization, allowing remote code execution

Critical · published March 17, 2023

CVSS v3.1
9.8
EPSS
3%
Percentile
86.2
In the wild
Unconfirmed
What it is

🚨 A sneaky PHAR deserialization flaw in Snappy could let attackers execute remote code with just a file upload! 🔥 Think of it like a restaurant that lets customers send in any item without checking if it's even food — it could easily lead to a chaotic kitchen with unapproved dishes (read: malicious code) taking over! An attacker can exploit this vulnerability to upload a crafted file, leading to remote code execution on the server. This means they could gain full control, read sensitive data, or even wipe everything clean, all from a simple file upload! Absolutely devastating!

Put simply

Think of it like a restaurant that lets customers send in any item without checking if it's even food — it could easily lead to a chaotic kitchen with unapproved dishes (read: malicious code) taking over! This vulnerability arises due to Snappy's failure to verify the protocol before using the `file_exists()` function on user-supplied input, allowing attackers to exploit PHAR deserialization in PHP and instantiate arbitrary objects.

What to do

An attacker can exploit this vulnerability to upload a crafted file, leading to remote code execution on the server. This means they could gain full control, read sensitive data, or even wipe everything clean, all from a simple file upload! Absolutely devastating! Upgrade Snappy to version 1.4.2 immediately to patch this critical vulnerability. Additionally, review and tighten your file upload controls, ensuring only safe file types are allowed. Consider implementing security measures to validate and sanitize inputs further. You've got this! Follow these steps, and your Snappy setup will be secure in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02760 · 86.2th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2023-03-17T21:15Z
EPSS history
Timeline
  • 17 MAR 21:15Z
    Snappy vulnerable to PHAR deserialization, allowing remote code execution
    cvelistv5