beganovich/snappdf is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
75
CVE Score
High
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The Snappdf::generate() method builds a Chromium command line array that includes the URL or HTML from setUrl() or setHtml(). On Windows, generate() passes that array to executeOnWindows(), which joins it with implode(' ', $commands) and passes the string to PHP exec(), so shell metacharacters in the URL (such as &) run as commands in cmd.exe. On other platforms the same array goes to Symfony Process, which runs each value as its own argument. The fix drops the Windows branch and executeOnWindows(), so every platform uses new Process($commandInput) and the arguments are escaped.
Upgrade the beganovich/snappdf library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and are running the library's PDF generation on a Windows host.
1.1.0 - 6.0.0
Fixed in 6.1.0beganovich/snappdf is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in versions 1.1.0 - 6.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.