CVE-2022-32115
PHP vulnerability analysis and mitigation

Overview

An issue in the isSVG() function of Known v1.2.2+2020061101 allows attackers to execute arbitrary code via a crafted SVG file. The vulnerability was discovered in May 2022 and affects the Known PHP CMS software, a social publishing platform (Known Github, Known Website).

Technical details

The vulnerability exists in the isSVG() function which performs insufficient validation of SVG files. The function only checks the file extension without performing proper content validation, as indicated by a TODO comment in the code stating 'better SVG validation would be nice'. This implementation allows malicious SVG files containing arbitrary JavaScript code to be uploaded and executed (Jitendra Blog).

Impact

The vulnerability allows attackers to execute arbitrary JavaScript code through crafted SVG files. When a user clicks on or views the malicious SVG file, the embedded JavaScript code executes in the context of the web application, potentially leading to cross-site scripting attacks and other client-side attacks (Jitendra Blog).

Exploitability

The vulnerability is relatively easy to exploit as it only requires the ability to upload an SVG file with malicious JavaScript code embedded within it. The attacker needs to be able to upload files to the application, but no special privileges are required beyond basic file upload capabilities (Jitendra Blog).

Mitigation and workarounds

While no official patch was available at the time of disclosure, proper SVG file validation should be implemented to mitigate this vulnerability. This should include content validation beyond just checking the file extension, and should specifically check for and sanitize any embedded scripts or potentially malicious content within SVG files (Jitendra Blog).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-46670CRITICAL9.8
  • PHP logoPHP
  • yeswiki/yeswiki
NoYesAug 11, 2026
GHSA-wg23-69c2-gjc8CRITICAL9.1
  • PHP logoPHP
  • craftcms/cms
NoYesAug 07, 2026
CVE-2026-71488HIGH7.5
  • PHP logoPHP
  • commonmark
NoYesAug 06, 2026
CVE-2026-62996MEDIUM6.9
  • PHP logoPHP
  • smarty/smarty
NoYesAug 07, 2026
CVE-2026-62992MEDIUM6.9
  • PHP logoPHP
  • smarty/smarty
NoYesAug 07, 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