PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseGHSA-5v62-pcq7-fxj9

GHSA-5v62-pcq7-fxj9: 
PHP vulnerability analysis and mitigation

A control panel user can read the contents of any file on the server whose content sniffs as image/svg+xml, including files outside the Craft installation, by posting an arbitrary path to the app/icon-svg endpoint. The endpoint has no permission check beyond being logged into the control panel, and the helper it calls resolves aliases and absolute paths before reading the file. The only effective guard is FileHelper::isSvg(), which sniffs the file’s actual content: arbitrary PHP, config, or env files are refused because their content is not SVG. That constrains the read to files whose bytes genuinely parse as SVG, but those files can live anywhere on the filesystem that the PHP process can read. This family has history: GHSA-472v-j2g4-g9h2 added charset guards to Assets::iconUrl and iconPath, and GHSA-c43v-4cr8-6mvp fixed traversal in AssetsController::actionIcon. Both of those guards sit on the helpers/Assets.php code paths.

Impact

Any control panel user can read any SVG content file anywhere on the filesystem that the PHP process can read. Report ID: 1922


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qcx-mjf6-48vjHIGHN/A
  • PHP logoPHP
  • craftcms/commerce-mollie
NoYesOct 23, 2026
GHSA-5v62-pcq7-fxj9LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-hvp5-pwxx-2752LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-mp59-9rf5-93wrMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-xpg7-m6gm-4xfhMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management