Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-46643 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')[email protected]

Affected Products

ProductVersions
KnpLabs Snappy
<= 1.7.0 (semver)

CPE

  • cpe:2.3:a:knplabs:snappy:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 1.7.1moderate efforthttps://github.com/KnpLabs/snappy/releases/tag/v1.7.1
  • Workaround:low effort

    Before calling the constructor, ensure `\is_executable($path)` is truthy: ```php // Bad example $pdf = new Knp\Snappy\Pdf('/path/to/binary'); // Better example $pathToBinary = '/path/to/binary'; if (!\is_executable($pathToBinary)) { throw new \RuntimeException(); } $pdf = new Knp\Snappy\Pdf('/path/to/binary'); ```

Change History

4 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-46643
NVD Published Date:
Jun 10, 2026
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]