Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
The knplabs/knp-snappy Packagist package is vulnerable before version 1.4.2, due to unchecked use of the phar:// protocol when a path is passed to file_exists(). An attacker who can upload a file of any type to the server and control the output file passed to generateFromHtml() can trigger PHAR deserialization, which may lead to remote code execution when combined with vulnerable object chains in the application or its frameworks. Upgrade to version 1.4.2, which is the listed fixed version.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 9.8 | Critical | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.028, the 86th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:04 UTC First seen by agentprime
- 31 Oct 2026, 14:04 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-gq6w-q6wh-jggc
- OSV: GHSA-gq6w-q6wh-jggc
- github.com/KnpLabs/snappy/security/advisories/GHSA-gq6w-q6wh-jggc
- nvd.nist.gov/vuln/detail/CVE-2023-28115
- github.com/KnpLabs/snappy/pull/469
- github.com/KnpLabs/snappy/commit/1ee6360cbdbea5d09705909a150df7963a88efd6
- github.com/KnpLabs/snappy/commit/b66f79334421c26d9c244427963fa2d92980b5d3
- github.com/FriendsOfPHP/security-advisories/blob/master/knplabs/knp-snappy/CVE-2023-28115.yaml
- github.com/KnpLabs/snappy
- github.com/KnpLabs/snappy/blob/5126fb5b335ec929a226314d40cd8dad497c3d67/src/Knp/Snappy/AbstractGenerator.php#L670
- github.com/KnpLabs/snappy/releases/tag/v1.4.2
- github.com/advisories/GHSA-gq6w-q6wh-jggc
- huntr.dev/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48e