CVE-2025-57889 WordPress InPost Gallery Plugin <= 2.1.4.5 - Local File Inclusion Vulnerability
Attackers can exploit a local file inclusion vulnerability in the InPost Gallery plugin to read sensitive files or execute arbitrary code.
- 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-2025-57889?
CVE-2025-57889 is a high-severity path traversal vulnerability in RealMag777 InPost Gallery, published on 5 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in RealMag777 InPost Gallery inpost-gallery allows PHP Local File Inclusion.This issue affects InPost Gallery: from n/a through <= 2.1.4.5.
Weakness: CWE-98
Which versions are affected by CVE-2025-57889?
How do I fix CVE-2025-57889?
No fix has been published for CVE-2025-57889 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-2025-57889 being exploited?
There is no known exploitation of CVE-2025-57889 in the wild and no public exploit code.
Sources
Also known as GHSA-5hj5-v8f2-9g26.