Read the docs
TI-2023-12694 Aliases CVE-2023-28115GHSA-gq6w-q6wh-jggc

Snappy vulnerable to PHAR deserialization, allowing remote code execution

Priority MEDIUM 54CWE-502Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.

Summary

Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.4.2, Snappy is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the `file_exists()` function. If an attacker can upload files of any type to the server he can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution especially when snappy is used with frameworks with documented POP chains like Laravel/Symfony vulnerable developer code. If a user can control the output file from the `generateFromHtml()` function, it will invoke deserialization. This vulnerability is capable of remote code execution if Snappy is used with frameworks or developer code with vulnerable POP chains. It has been fixed in version 1.4.2.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0276 86th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed snappy (KnpLabs): 1.4.2knplabs/knp-snappy (Packagist): 1.4.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
KnpLabssnappybefore 1.4.21.4.2Patch availableCNA
—knplabs/knp-snappy (Packagist)before 1.4.21.4.2Patch availableGHSA-gq6w-q6wh-jggc
  • snappy VendorKnpLabs Affected before 1.4.2 Fixed in 1.4.2 Patch available CNA
  • knplabs/knp-snappy (Packagist) Vendor— Affected before 1.4.2 Fixed in 1.4.2 Patch available GHSA-gq6w-q6wh-jggc

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:knplabs:snappy:*:*:*:*:*:*:*:*before 1.4.2VulnerableKnpLabs
  • cpe:2.3:a:knplabs:snappy:*:*:*:*:*:*:*:* Versions before 1.4.2 Vulnerable ·KnpLabs

Remediation

  • Fix · CNA snappy (KnpLabs) Fixed in 1.4.2
  • Fix · GHSA-gq6w-q6wh-jggc knplabs/knp-snappy (Packagist) Fixed in 1.4.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-28115
  2. 2026-10-03 Alias added: GHSA-gq6w-q6wh-jggc

References

  • TI-2023-21930 Unsafe deserialization in knplabs/knp-snappy CVSS 3.1CRITICAL 9.8

Sources