CRITICAL

CVE-2023-28115

CVSS v3

9.8

CRITICAL

EPSS Score

16.8%

exploit probability

CISA KEV

No

known exploited

Exploitation

SSVC status

Description

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.

Technical details

Published
3/17/2023

Frequently asked questions

What is CVE-2023-28115?

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.

Is CVE-2023-28115 actively exploited?

Active exploitation of CVE-2023-28115 has not been confirmed. The EPSS score is 16.8%, indicating the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-28115?

CVE-2023-28115 has a CVSS v3 base score of 9.8 (CRITICAL severity).

Is CVE-2023-28115 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.