SCA: security update for knplabs/knp-snappy (GHSA-gq6w-q6wh-jggc)

critical Tenable Self-Hosted Container Security Plugin ID 415252

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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)

See Also

https://github.com/advisories/GHSA-gq6w-q6wh-jggc

Plugin Details

Severity: Critical

ID: 415252

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.58

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2023-28115

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/17/2023

Vulnerability Publication Date: 3/17/2023

Reference Information

CVE: CVE-2023-28115

cwe: CWE-502