CVE-2025-11254

4.3 MEDIUM

📋 TL;DR

This CSV injection vulnerability in the Contest Gallery WordPress plugin allows unauthenticated attackers to embed malicious formulas in exported CSV files. When victims download and open these files in spreadsheet applications like Excel, the formulas can execute arbitrary code on their local systems. All WordPress sites using Contest Gallery plugin versions up to 27.0.3 are affected.

💻 Affected Systems

Products:
  • Contest Gallery - Upload, Vote & Sell with PayPal and Stripe WordPress plugin
Versions: All versions up to and including 27.0.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in gallery submission export functionality. Requires user to download and open CSV file in vulnerable spreadsheet application.

⚠️ 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

Remote code execution on victim's local machine when malicious CSV file is opened in vulnerable spreadsheet software, potentially leading to full system compromise.

🟠

Likely Case

Data theft or malware installation on individual user workstations when malicious CSV files are opened by administrators or users.

🟢

If Mitigated

Limited impact if users open CSV files in text editors or properly configured spreadsheet software with formula execution disabled.

🌐 Internet-Facing: MEDIUM - Attackers can exploit without authentication but require user interaction (downloading and opening CSV file).
🏢 Internal Only: LOW - Primarily affects external users downloading gallery submissions, though internal administrators could also be targeted.

🎯 Exploit Status

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

Exploitation requires social engineering to convince users to download and open malicious CSV files. No authentication needed to submit malicious gallery entries.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 28.0.0

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3375891/contest-gallery/tags/28.0.0/functions/backend/render/cg-backend-gallery-general.php

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Contest Gallery' plugin. 4. Click 'Update Now' if update available. 5. Alternatively, download version 28.0.0+ from WordPress plugin repository and manually update.

🔧 Temporary Workarounds

Disable gallery submissions

all

Temporarily disable gallery submission functionality until patch can be applied

Sanitize CSV exports

wordpress

Add custom code to sanitize CSV output by prefixing formula characters with apostrophe

Add to theme functions.php or custom plugin: add_filter('contest_gallery_csv_export', 'sanitize_csv_output'); function sanitize_csv_output($data) { return preg_replace('/^[=+\-@]/', "'$0", $data); }

🧯 If You Can't Patch

  • Educate users to never open CSV files from untrusted sources in spreadsheet applications
  • Configure spreadsheet software to disable automatic formula execution for downloaded files

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Contest Gallery version. If version is 27.0.3 or lower, system is vulnerable.

Check Version:

wp plugin list --name='contest-gallery' --field=version (if WP-CLI installed)

Verify Fix Applied:

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

📡 Detection & Monitoring

Log Indicators:

  • Multiple gallery submissions containing formula characters (=, +, -, @)
  • Unusual CSV export requests

Network Indicators:

  • CSV file downloads containing formula payloads in HTTP responses

SIEM Query:

source="wordpress" AND ("contest-gallery" OR "cg-backend-gallery") AND ("csv" OR "export") AND ("=" OR "+" OR "-" OR "@")

🔗 References

📤 Share & Export