CVE-2023-36236
PHP vulnerability analysis and mitigation

Overview

Cross Site Scripting (XSS) vulnerability was discovered in webkil Bagisto version 1.5.0 and earlier versions. The vulnerability allows an attacker to execute arbitrary code through a crafted SVG file upload functionality (NVD, GitHub Exploit). The vulnerability was assigned CVE-2023-36236 and was disclosed in January 2024.

Technical details

The vulnerability exists in the admin interface of Bagisto, specifically in the velocity/meta-data endpoint. The issue stems from insufficient validation of SVG file uploads, which allows attackers to inject malicious scripts within SVG files. The vulnerability has been assigned a CVSS v3.1 Base Score of 4.8 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

When successfully exploited, the vulnerability allows attackers to execute arbitrary code in the context of other users' sessions, potentially leading to the theft of user cookies and session information. This could result in unauthorized access to user accounts and sensitive information (GitHub Exploit).

Exploitability

The vulnerability requires an attacker to have admin account access to exploit. The attack can be executed by uploading a malicious SVG file through the admin panel's image upload functionality. Once uploaded, the payload can be triggered when users visit the uploaded image location, affecting both the store front and admin panel (GitHub Exploit).

Mitigation and workarounds

The vulnerability has been patched in Bagisto version 1.5.1. The fix includes enhanced SVG sanitization implemented through a dedicated sanitizer class, as evidenced in the patch commit. Users are advised to upgrade to version 1.5.1 or later to address this security issue (GitHub Patch).

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-59989CRITICAL9.2
  • PHP logoPHP
  • phalcon/cphalcon
NoYesAug 21, 2026
CVE-2026-63135HIGH8.2
  • PHP logoPHP
  • yourls/yourls
NoYesAug 21, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-8hgv-xc77-jmcrMEDIUM5.1
  • PHP logoPHP
  • getgrav/grav
NoYesAug 21, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 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