CVE-2025-0859

6.5 MEDIUM

📋 TL;DR

This vulnerability in the BoldGrid Post and Page Builder WordPress plugin allows authenticated attackers with Contributor-level access or higher to perform path traversal attacks via the template_via_url() function. This enables reading arbitrary files on the server, potentially exposing sensitive information like configuration files, credentials, or source code. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Post and Page Builder by BoldGrid – Visual Drag and Drop Editor for WordPress
Versions: All versions up to and including 1.27.6
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin and at least one user with Contributor role or higher.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers gain access to sensitive files like wp-config.php containing database credentials, server configuration files, or other sensitive data, leading to complete site compromise, data theft, or lateral movement within the server environment.

🟠

Likely Case

Attackers with contributor accounts exfiltrate sensitive configuration files, potentially obtaining database credentials, API keys, or other secrets that could lead to further exploitation.

🟢

If Mitigated

With proper access controls and file permissions, attackers can only read files accessible to the web server user, limiting exposure to non-sensitive files.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires authenticated access (Contributor role or higher). The vulnerability is well-documented with public proof-of-concept available in the GitHub commit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.27.7

Vendor Advisory: https://wordpress.org/plugins/post-and-page-builder/#developers

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Post and Page Builder by BoldGrid'. 4. Click 'Update Now' if available, or manually update to version 1.27.7 or higher. 5. Verify the update completed successfully.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the Post and Page Builder plugin until patched

wp plugin deactivate post-and-page-builder

Restrict user roles

all

Remove Contributor and higher roles from untrusted users

wp user list --role=contributor --field=ID
wp user set-role <user_id> subscriber

🧯 If You Can't Patch

  • Implement strict file system permissions to limit web server user access to sensitive directories
  • Deploy web application firewall (WAF) rules to detect and block path traversal attempts

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Post and Page Builder by BoldGrid' version 1.27.6 or lower

Check Version:

wp plugin get post-and-page-builder --field=version

Verify Fix Applied:

Verify plugin version is 1.27.7 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests to /wp-admin/admin-ajax.php with action=boldgrid_editor_preview_template_via_url containing file path traversal patterns (../)
  • Unusual file read attempts from web server user

Network Indicators:

  • POST requests to admin-ajax.php with template_via_url parameters containing path traversal sequences

SIEM Query:

source="web_access.log" AND uri="/wp-admin/admin-ajax.php" AND post_data="*template_via_url*" AND (post_data="*../*" OR post_data="*..\\*" OR post_data="*%2e%2e%2f*")

🔗 References

📤 Share & Export