Advisory record · GHSA-gq6w-q6wh-jggc

PHAR deserialization allowing remote code execution

CVSS 9.8 CriticalCriticalEPSS 0.028 · 86th percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 17 Mar 2023, 18:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
knplabs/knp-snappyPackagist<1.4.21.4.2
Identifiers
GHSA-gq6w-q6wh-jggc · CVE-2023-28115 · PKSA-sdn5-dtyj-96rq
Weakness (CWE)
CWE-502
Published
17 Mar 2023
Updated
10 Sept 2026

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.

Written 31 Oct 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 14:04 UTC First seen by agentprime
  2. 31 Oct 2026, 14:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.