CVE-2025-57889

7.5 HIGH

📋 TL;DR

This vulnerability allows attackers to include local files on the server through improper filename control in PHP include/require statements. It affects WordPress sites running the InPost Gallery plugin versions up to 2.1.4.5, potentially enabling attackers to read sensitive files or execute code.

💻 Affected Systems

Products:
  • RealMag777 InPost Gallery WordPress Plugin
Versions: n/a through 2.1.4.5
Operating Systems: Any OS running PHP and WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with vulnerable plugin version. PHP configuration with allow_url_include disabled does not prevent local file inclusion.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise through local file inclusion leading to remote code execution, data exfiltration, and complete system takeover.

🟠

Likely Case

Sensitive file disclosure (configuration files, database credentials, user data) and limited code execution within web server context.

🟢

If Mitigated

Limited impact with proper file permissions, web application firewalls, and restricted PHP configurations.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Simple HTTP requests can trigger the vulnerability. Public proof-of-concept exists in vulnerability databases.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.1.4.6 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/inpost-gallery/vulnerability/wordpress-inpost-gallery-plugin-2-1-4-5-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find InPost Gallery and click 'Update Now'. 4. Verify version is 2.1.4.6 or higher.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate inpost-gallery

Restrict File Access

linux

Set strict file permissions on sensitive directories

chmod 600 wp-config.php
chmod 700 wp-content/plugins/inpost-gallery/

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict PHP configuration with open_basedir and disable dangerous functions

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel → Plugins → InPost Gallery version. If version is 2.1.4.5 or lower, system is vulnerable.

Check Version:

wp plugin get inpost-gallery --field=version

Verify Fix Applied:

Verify plugin version is 2.1.4.6 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file paths in PHP include/require statements
  • Multiple requests to plugin files with path traversal parameters

Network Indicators:

  • HTTP requests containing '../' patterns or file inclusion parameters to plugin endpoints

SIEM Query:

source="web_logs" AND (uri="*inpost-gallery*" AND (params="*../*" OR params="*php://*" OR params="*file=*"))

🔗 References

📤 Share & Export