IT SBIT Services
Schneeberger
DEEN
CVE tracker

Beganovich snappdf: OS command injection on Windows via setUrl()

CVE-2026-110646Critical 9.2

← All vulnerabilities

Summary

snappdf is a PHP library that converts web pages and HTML into PDF files using a Chromium browser. On Windows, versions from 1.1.0 before 6.1.0 pass the URL set with setUrl() unescaped to exec(), so cmd.exe metacharacters such as & in the URL can run arbitrary commands. An attacker can exploit this if an application lets users influence the rendered URL, and the commands run with the privileges of the PHP process.

Affected

  • beganovich/snappdf from 1.1.0 before 6.1.0
  • Only Windows hosts are described as affected; Linux and macOS are not.

Fixed in

  • Version 6.1.0 (fix via PR #54, commit 5197bd3)

Workaround

  • No vendor-documented workaround.
  • Until patched: do not pass user-supplied URLs to the renderer on Windows hosts, run the PHP service with a low-privilege account, and restrict outbound traffic from the web server.

Exploitation

  • No known exploitation in the wild.
  • No public proof of concept found.
  • CISA SSVC: exploitation none, automatable no, technical impact total.
  • The fix is public in the repository, so the patch diff is available to attackers.

Our recommendation

  • Check composer.lock files for beganovich/snappdf below 6.1.0, especially on Windows hosts.
  • Upgrade to 6.1.0 or later and verify the installed version.
  • Review whether any internet-facing endpoint accepts URLs that reach the renderer.
  • Monitor web server and PHP logs for unusual command execution.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 04:35.

Original description (NVD)

Beganovich snappdf from 1.1.0 before 6.1.0 contains an OS command injection vulnerability on Windows that allows attackers to run commands by influencing the rendered URL. Attackers can supply cmd.exe metacharacters such as & in the setUrl() value, which executeOnWindows() passes unescaped to PHP exec(), executing commands as the PHP process.

NVD references (5)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.