FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.29 - Insecure Direct Object Reference to Authenticated (Custom+) Arbitrary Post/Page Updates

4.3
Authorization Bypass Through User-Controlled Key
CVE CVE-2024-12114
CVSS 4.3 (Medium)
Publicly Published March 7, 2025
Last Updated March 8, 2025
Researcher Stiofan - AyeCode Ltd

Description

The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.4.29 via the foogallery_attachment_modal_save AJAX action due to missing validation on a user controlled key (img_id). This makes it possible for authenticated attackers, with granted access and above, to update arbitrary post and page content. This requires the Gallery Creator Role setting to be a value lower than 'Editor' for there to be any real impact.

References

Share

Vulnerability Details for Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel

Software Type Plugin
Software Slug foogallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.4.30, or a newer patched version
Affected Version
  • <= 2.4.29
Patched Version
  • 2.4.30

Recent vulnerabilities in Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel

# Title CVE ID CVSS Researchers Date
1 Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel <= 3.1.31 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'custom_attribute_key' Shortcode Parameter CVE-2026-9134 6.4 Dmitrii Ignatyev June 12, 2026
2 Freemius <= 2.10.1 - Reflected DOM-Based Cross-Site Scripting via url Parameter CVE-2024-13362 6.1 Asaf Mozes April 30, 2026
3 FooGallery <= 3.1.11 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2026-25362 6.4 Steven Julian February 15, 2026
4 FooGallery <= 3.1.11 - Missing Authorization CVE-2026-25363 4.3 Steven Julian February 15, 2026
5 Gallery by FooGallery <= 3.1.9 - Missing Authorization to Authenticated (Subscriber+) Arbitrary Gallery Metadata Exposure CVE-2025-15524 4.3 s00me00ne February 10, 2026
6 FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.31 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting CVE-2025-6068 6.4 Webbernaut July 10, 2025
7 FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.29 - Authenticated (Custom+) Stored Cross-Site Scripting via Album Title Size CVE-2024-12119 6.4 Stiofan March 7, 2025
8 FooGallery <= 2.4.29 - Reflected Cross-Site Scripting CVE-2025-22624 6.1 Andres Roldan February 27, 2025
9 FooGallery <= 2.4.15 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Custom URL CVE-2024-2122 6.4 Robert Kruczek (ProXy) June 13, 2024
10 FooGallery (Free and Premium) < 2.4.15 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2024-2762 6.4 Dmitrii Ignatyev May 23, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation