CVE-2023-28115
Published on: Not Yet Published
Last Modified on: 03/17/2023 10:15:00 PM UTC
Certain versions of Snappy from KnpLabs contain the following vulnerability:
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.
- CVE-2023-28115 has been assigned by
[email protected] to track the vulnerability
- Affected Vendor/Software:
KnpLabs - snappy version = < 1.4.2
CVE References
Description | Tags ⓘ | Link |
---|---|---|
fix: security issue GHSA-gq6w-q6wh-jggc · KnpLabs/[email protected] · GitHub | github.com text/html |
![]() |
Merge pull request #469 from KnpLabs/fix/GHSA-gq6w-q6wh-jggc · KnpLabs/[email protected] · GitHub | github.com text/html |
![]() |
snappy/AbstractGenerator.php at 5126fb5b335ec929a226314d40cd8dad497c3d67 · KnpLabs/snappy · GitHub | github.com text/html |
![]() |
PHAR deserialization allowing remote code execution · Advisory · KnpLabs/snappy · GitHub | github.com text/html |
![]() |
Release v1.4.2 · KnpLabs/snappy · GitHub | github.com text/html |
![]() |
fix: security issue GHSA-gq6w-q6wh-jggc by AntoineLelaisant · Pull Request #469 · KnpLabs/snappy · GitHub | github.com text/html |
![]() |
Social Mentions
Source | Title | Posted (UTC) |
---|---|---|
![]() |
CVE-2023-28115 : Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page.… twitter.com/i/web/status/1… | 2023-03-17 22:02:33 |
![]() |
Potentially Critical CVE Detected! CVE-2023-28115 Snappy is a PHP library allowing thumbnail, snapshot or PDF gener… twitter.com/i/web/status/1… | 2023-03-17 22:56:00 |
![]() |
CVE-2023-28115 | 2023-03-17 22:38:17 |