Home / KnpLabs / snappy / CVE-2023-41330
CVE-2023-41330: is it exploited, and which versions of KnpLabs snappy are affected and fixed?
CVE-2023-41330 is a deserialization of untrusted data vulnerability in KnpLabs snappy. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: knplabs/knp-snappy before 1.4.3 (GitHub advisory GHSA-92rv-4j2h-8mjj). Fixed in 1.4.3 (GitHub advisory GHSA-92rv-4j2h-8mjj). Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:36 UTC.
What is CVE-2023-41330?
Unsafe deserialization in knplabs/knp-snappy
knplabs/knp-snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. ## Issue On March 17th the vulnerability CVE-2023-28115 was disclosed, allowing an attacker to gain remote code execution through PHAR deserialization. Version 1.4.2 added a check `if (\strpos($filename, 'phar://') === 0)` in the `prepareOutput` function to resolve this CVE, however if the user is able to control the second parameter of the `generateFromHtml()` function of Snappy, it will then be passed as the `$filename` parameter in the `prepareOutput()` function. In the original vulnerability, a file name with a `phar://` wrapper could be sent to the `fileExists()` function, equivalent to the `file_exists()` PHP function. This allowed users to trigger a deserialization on arbitrary PHAR files. To fix this issue, the string is now passed to the `strpos()` function and if it starts with `phar://`, an exception is raised. However, PHP wrappers being case insensitive, this patch can be bypassed using `PHAR://` instead of `phar://`. A successful exploitation of this vulnerability allows executing arbitrary code and accessing the underlying filesystem. The attacker must be able to upload a file and the server must be running a PHP version prior to 8. This issue has been addressed in commit `d3b742d61a` which has been included in version 1.4.3. Users are advised to upgrade. Users unable to upgrade should ensure that only trusted users may submit data to the `AbstractGenerator->generate(...)` function.
From the CVE record by GitHub_M, last updated September 30, 2024, 15:54 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| KnpLabs | snappy | < 1.4.3 |
As the CVE record by GitHub_M states it, last updated September 30, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | knplabs/knp-snappy | < 1.4.3 | 1.4.3 | GHSA-92rv-4j2h-8mjj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 10, 2023. Summary: Snappy PHAR deserialization vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| knplabs | snappy | before 1.4.3 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:21 UTC.
How severe is CVE-2023-41330?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-41330 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, September 30, 2024)
- EPSS
- 2.29% probability of exploitation activity in the next 30 days, percentile 83.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-502 Deserialization of Untrusted Data
Where are the vendor advisories and references?
- https://github.com/KnpLabs/snappy/security/advisories/GHSA-92rv-4j2h-8mjj x_refsource_CONFIRM
- https://github.com/KnpLabs/snappy/security/advisories/GHSA-gq6w-q6wh-jggc x_refsource_MISC
- https://github.com/KnpLabs/snappy/commit/d3b742d61a68bf93866032c2c0a7f1486128b67e x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 28, 2023
- Published
- September 6, 2023, 17:33 UTC
- CVE record updated
- September 30, 2024, 15:54 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:21 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:36 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect snappy?
- Jun 10, 2026CVE-2026-46683 KnpLabs snappy: server-side request forgery (SSRF)
- Jun 10, 2026CVE-2026-46643 KnpLabs snappy: OS command injection
- Mar 17, 2023CVE-2023-28115 KnpLabs snappy: deserialization of untrusted data
Questions about CVE-2023-41330
Is CVE-2023-41330 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 2.29% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of KnpLabs snappy are affected by CVE-2023-41330?
knplabs/knp-snappy before 1.4.3, per the GitHub advisory GHSA-92rv-4j2h-8mjj. The tables above give every range the sources list.
Which version fixes CVE-2023-41330?
1.4.3, per the GitHub advisory GHSA-92rv-4j2h-8mjj. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-41330?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-41330?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.