CVE-2021-24362
WordPress vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-24362 affects the Photo Gallery WordPress plugin versions 1.5.74 and below. This security issue was discovered and reported on July 18, 2021, and involves a Stored Cross-Site Scripting (XSS) vulnerability that can be exploited through SVG file uploads (WPScan, Wordfence).

Technical details

The vulnerability has been assigned a CVSS score of 6.1 with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The core issue stems from the plugin's failure to properly validate SVG files uploaded to galleries. When these files are uploaded to the /wp-content/uploads/photo-gallery/ folder, any embedded JavaScript code within the SVG can be executed when the image is accessed directly (WPScan).

Impact

The vulnerability allows users with gallery upload permissions to inject malicious JavaScript code through SVG files. When other users access these uploaded images directly, the embedded malicious code executes in their browsers, potentially leading to cross-site scripting attacks (WPScan).

Mitigation and workarounds

The vulnerability was patched in version 1.5.75 of the Photo Gallery plugin. Users are advised to update to this version or later to mitigate the security risk (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13342CRITICAL9.8
  • acf-frontend-form-element
NoYesDec 03, 2025
CVE-2025-13359MEDIUM6.5
  • simple-tags
NoYesDec 03, 2025
CVE-2025-13756MEDIUM4.3
  • fluent-booking
NoYesDec 03, 2025
CVE-2025-13354MEDIUM4.3
  • simple-tags
NoYesDec 03, 2025
CVE-2025-13109MEDIUM4.3
  • woocommerce-products-filter
NoYesDec 03, 2025

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