Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
beganovich snappdf
Default version status: unaffected
1.1.0 to < 6.1.0affected
pkg:composer/beganovich/snappdfReferences
- https://github.com/beganovich/snappdf/pull/54 ↗
- https://github.com/beganovich/snappdf/commit/5197bd3bcc4df44e17246dbceea9ce51eb390eae ↗
- https://github.com/beganovich/snappdf/blob/v6.0.0/src/Snappdf.php#L280-L284 ↗
- https://github.com/beganovich/snappdf/releases/tag/v6.1.0 ↗
- https://www.vulncheck.com/advisories/beganovich-snappdf-1.1.0-before-6.1.0-os-command-injection-on-windows-via-seturl ↗