PatchSiren cyber security CVE debrief
CVE-2026-46643 KnpLabs CVE debrief
CVE-2026-46643 is a vulnerability in the Snappy PHP library, which is used for thumbnail, snapshot, or PDF generation from a URL or HTML page. The vulnerability occurs on POSIX systems where the `escapeshellarg` function returns a literal string with single-quote characters included, which are not properly handled by the `is_executable` function. This allows for command injection when the binary path is sourced from user-influenced configuration, environment variables, or concatenated with user-controlled fragments. The vulnerability has been patched in version 1.7.1 of the Snappy library.
- Vendor
- KnpLabs
- Product
- snappy
- CVSS
- HIGH 7.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-10
- Original CVE updated
- 2026-06-11
- Advisory published
- 2026-06-10
- Advisory updated
- 2026-06-11
Who should care
Users of the Snappy PHP library, especially those who generate thumbnails, snapshots, or PDFs from user-provided URLs or HTML pages, should be aware of this vulnerability and take steps to mitigate it.
Technical summary
The vulnerability occurs due to improper handling of the binary path in the Snappy library. Specifically, the `escapeshellarg` function returns a literal string with single-quote characters included, which are not properly handled by the `is_executable` function. This allows for command injection when the binary path is sourced from user-influenced configuration, environment variables, or concatenated with user-controlled fragments.
Defensive priority
HIGH
Recommended defensive actions
- Update the Snappy library to version 1.7.1 or later.
- Review and validate the binary path configuration to ensure it is not user-influenced.
- Use secure environment variables and avoid concatenating user-controlled fragments with the binary path.
Evidence notes
The vulnerability has been patched in version 1.7.1 of the Snappy library. Users can refer to the [patch release](ref-4) and [security advisory](ref-5) for more information.
Official resources
CVE-2026-46643 was published on 2026-06-10T20:17:28.880Z and modified on 2026-06-11T17:16:34.370Z.