# CVE-2024-5481: Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.23 - Authenticated (Contributor+) Path Traversal via esc_dir Function

- Severity: Medium 6.8 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2024-06-07T09:33:36.357Z
- Modified: 2026-06-17T08:16:01.983Z
- Weaknesses: CWE-22, CWE-35
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 1.8.23 via the esc_dir function. This makes it possible for authenticated attackers to cut and paste (copy) the contents of arbitrary files on the server, which can contain sensitive information, and to cut (delete) arbitrary directories, including the root WordPress directory. By default this can be exploited by administrators only. In the premium version of the plugin, administrators can give gallery edit permissions to lower level users, which might make this exploitable by users as low as contributors.

(As written by CVE List.)

## Affected

- 10web Photo Gallery by 10Web – Mobile-Friendly Image Gallery: up to 1.8.23
- 10web photo_gallery: before 1.8.24

## Every score

- Wordfence: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/76c38826-4d49-4204-b6b6-b01d01373fa9?source=cve> (third-party-advisory)
- <https://plugins.trac.wordpress.org/browser/photo-gallery/trunk/filemanager/controller.php#L178> (product)
- <https://plugins.trac.wordpress.org/browser/photo-gallery/trunk/filemanager/controller.php#L512> (product)
- <https://plugins.trac.wordpress.org/browser/photo-gallery/trunk/filemanager/controller.php#L436> (product)
- <https://plugins.trac.wordpress.org/changeset/3098798/> (patch)
- <https://wordpress.org/plugins/photo-gallery/#developers> (product, release-notes)

## Sources

- CVE List: [CVE-2024-5481](https://www.cve.org/CVERecord?id=CVE-2024-5481), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2024-5481](https://nvd.nist.gov/vuln/detail/CVE-2024-5481), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5481 · Whole record: https://cve.day/CVE-2024-5481.json · Rebuilt by cve.day 2026-11-25T22:58:41.541Z
