CVE-2024-5481 Path traversal in Photo Gallery by 10Web – Mobile-Friendly Image Gallery

Medium 6.8 Published Updated

Authenticated attackers can read arbitrary files and delete directories via path traversal in the Photo Gallery plugin, potentially exposing sensitive data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-5481?

CVE-2024-5481 is a medium-severity path traversal vulnerability in Photo Gallery by 10Web – Mobile-Friendly Image Gallery, published on 7 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-22, CWE-35

Which versions are affected by CVE-2024-5481?

It affects 1 product.

Products include 10web Photo Gallery.

How do I fix CVE-2024-5481?

No fix has been published for CVE-2024-5481 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-5481 being exploited?

There is no known exploitation of CVE-2024-5481 in the wild and no public exploit code.

Sources

Also known as GHSA-h438-86cm-g2q6.

Is CVE-2024-5481 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free