CVE-2023-28115 — Vulnerability in knplabs/knp-snappy — CVE Details
PHAR deserialization allowing remote code execution
Summary
Advisory Timeline
- First published March 17, 2023 (1305 days ago).
- Last revised September 10, 2026 — 1272 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "knplabs/knp-snappy:^1.4.2"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| knplabs/knp-snappy | packagist | 0.1.0, 0.1.1, 0.1.2, 0.2.0 (+23 more) | 1.4.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/KnpLabs/snappy/security/advisories/GHSA-gq6w-q6wh-jggcWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-28115ADVISORY
- https://github.com/KnpLabs/snappy/pull/469WEB
- https://github.com/KnpLabs/snappy/commit/1ee6360cbdbea5d09705909a150df7963a88efd6WEB
- https://github.com/KnpLabs/snappy/commit/b66f79334421c26d9c244427963fa2d92980b5d3WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/knplabs/knp-snappy/CVE-2023-28115.yamlWEB
- https://github.com/KnpLabs/snappyPACKAGE
- https://github.com/KnpLabs/snappy/blob/5126fb5b335ec929a226314d40cd8dad497c3d67/src/Knp/Snappy/AbstractGenerator.php#L670WEB
- https://github.com/KnpLabs/snappy/releases/tag/v1.4.2WEB
- https://github.com/advisories/GHSA-gq6w-q6wh-jggcADVISORY
- https://huntr.dev/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48eWEB
Frequently Asked Questions
- What is CVE-2023-28115?
- PHAR deserialization allowing remote code execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2023-28115?
- CVE-2023-28115 affects knplabs/knp-snappy. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-28115 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107845CRITICAL
Contao: Cross-site scripting in the comments bundle
- CVE-2023-41330CRITICAL
Snappy PHAR deserialization vulnerability
- CVE-2026-92161CRITICAL
FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies