CVE-2025-23938

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 Image Gallery Box by CRUDLab plugin versions up to 1.0.3, potentially leading to sensitive information disclosure or code execution.

💻 Affected Systems

Products:
  • Image Gallery Box by CRUDLab WordPress plugin
Versions: n/a through 1.0.3
Operating Systems: Any OS running PHP
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 theft, and complete system takeover.

🟠

Likely Case

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

🟢

If Mitigated

No impact if proper file permissions and web server configurations prevent access to sensitive files.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires understanding of PHP local file inclusion techniques and target system file structure.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.4 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/image-gallery-box-by-crudlab/vulnerability/wordpress-image-gallery-box-by-crudlab-plugin-1-0-3-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 'Image Gallery Box by CRUDLab'. 4. Click 'Update Now' if available. 5. If no update available, deactivate and delete plugin, then install fresh version from WordPress repository.

🔧 Temporary Workarounds

Disable vulnerable plugin

WordPress

Temporarily disable the Image Gallery Box plugin until patched

wp plugin deactivate image-gallery-box-by-crudlab

Restrict PHP file functions

PHP

Configure PHP to disable dangerous functions via php.ini

disable_functions = include,require,include_once,require_once

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict web server permissions to prevent access to sensitive directories

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Image Gallery Box by CRUDLab version number

Check Version:

wp plugin get image-gallery-box-by-crudlab --field=version

Verify Fix Applied:

Verify plugin version is 1.0.4 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual file access patterns in web server logs
  • PHP include/require errors with suspicious file paths

Network Indicators:

  • HTTP requests with file path traversal patterns in parameters

SIEM Query:

web_access_logs WHERE uri CONTAINS 'include' OR uri CONTAINS 'require' AND (uri CONTAINS '../' OR uri CONTAINS '/etc/' OR uri CONTAINS '/proc/')

🔗 References

📤 Share & Export