CVE-2024-5481
Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.23 - Authenticated (Contributor+) Path Traversal via esc_dir Function
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.73%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jul 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-35 Path Traversal: '.../...//'
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Photo Gallery by 10Web – Mobile-Friendly Image Gallery |
affected up to and including 1.8.23
Other versions: unaffected
|
Is my server affected?
This CVE is in Photo Gallery by 10Web – Mobile-Friendly Image Gallery of 10web, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Other references
- https://www.wordfence.com/threat-intel/vulnerabilities/id/76c38826-4d49-4204-b6b6-b01d01373fa9?source=cve wordfence.com
- https://plugins.trac.wordpress.org/browser/photo-gallery/trunk/filemanager/controller.php#L178 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/photo-gallery/trunk/filemanager/controller.php#L512 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/photo-gallery/trunk/filemanager/controller.php#L436 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/changeset/3098798/ plugins.trac.wordpress.org
- https://wordpress.org/plugins/photo-gallery/#developers wordpress.org
Source: the record CVE-2024-5481 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse