SCA: security update for KnpLabs/knp-snappy (GHSA-vpr4-p6fq-85jc)

high Tenable Cloud Security Plugin ID 442285

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.7.1, on POSIX, escapeshellarg(‘/usr/bin/wkhtmltopdf’) returns the literal string
‘/usr/bin/wkhtmltopdf’ with the single-quote characters included. is_executable() then looks for a file
whose actual name contains those quote characters, which essentially never exists. The safe branch is dead
code and $command always falls through to the raw, unescaped value. The rest of the arguments (options,
input, output) are escaped correctly, so injection has to land in the binary string itself. That happens
whenever the binary path is sourced from configuration that is user-influenced, derived from environment
variables that ultimately come from request data, or concatenated with any user-controlled fragment. This
issue has been patched in version 1.7.1. (CVE-2026-46643)

Solution

Update the KnpLabs/knp-snappy library and its related packages to version 1.7.1 or later.

See Also

https://github.com/advisories/GHSA-vpr4-p6fq-85jc

Plugin Details

Severity: High

ID: 442285

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 5/22/2026

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.87

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2026-46643

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 7.5

Threat Score: 4.8

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/21/2026

Vulnerability Publication Date: 5/21/2026

Reference Information

CVE: CVE-2026-46643

cwe: CWE-78