Photo Gallery by 10Web - Mobile-Friendly Image Gallery <= 1.8.19 - Directory Traversal to Arbitrary File Rename

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2024-0221
CVSS 9.1 (Critical)
Publicly Published January 19, 2024
Last Updated February 5, 2024
Researcher Bence Szalai


The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 1.8.19 via the rename_item function. This makes it possible for authenticated attackers to rename arbitrary files on the server. This can lead to site takeovers if the wp-config.php file of a site can be renamed. By default this can be exploited by administrators only. In the premium version of the plugin, administrators can give gallery management permissions to lower level users, which might make this exploitable by users as low as contributors.



Vulnerability Details for Photo Gallery by 10Web – Mobile-Friendly Image Gallery

Software Type Plugin
Software Slug photo-gallery (view on
Patched? Yes
Remediation Update to version 1.8.20, or a newer patched version
Affected Version
  • <= 1.8.19
Patched Version
  • 1.8.20

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.