CVE-2025-27277

7.1 HIGH

📋 TL;DR

This CSRF vulnerability in the WordPress 'Add Linked Images To Gallery' plugin allows attackers to trick authenticated administrators into performing unintended actions. Attackers could exploit this to inject malicious content or modify plugin settings. All WordPress sites using affected plugin versions are vulnerable.

💻 Affected Systems

Products:
  • WordPress Add Linked Images To Gallery plugin
Versions: All versions up to and including 1.4
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress administrator to be logged in and visit a malicious page while authenticated.

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

Attackers could chain CSRF with stored XSS to compromise administrator accounts, deface websites, or steal session cookies, potentially leading to full site takeover.

🟠

Likely Case

Attackers trick administrators into adding malicious images or links to galleries, enabling content injection or redirecting visitors to malicious sites.

🟢

If Mitigated

With proper CSRF protections and user awareness, exploitation attempts would fail, limiting impact to failed attack attempts.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Exploitation requires social engineering to trick authenticated administrators. No authentication bypass needed.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 1.4

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/add-linked-images-to-gallery-v01/vulnerability/wordpress-add-linked-images-to-gallery-plugin-1-4-csrf-to-stored-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Add Linked Images To Gallery'. 4. Click 'Update Now' if update available. 5. If no update, deactivate and remove plugin immediately.

🔧 Temporary Workarounds

Implement CSRF Tokens

WordPress

Add nonce verification to plugin forms and AJAX requests

Add wp_nonce_field() to forms
Verify with wp_verify_nonce() in processing

Disable Plugin

WordPress CLI

Temporarily disable vulnerable plugin until patched

wp plugin deactivate add-linked-images-to-gallery

🧯 If You Can't Patch

  • Implement web application firewall with CSRF protection rules
  • Educate administrators about CSRF risks and safe browsing practices

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > Installed Plugins for 'Add Linked Images To Gallery' version 1.4 or earlier

Check Version:

wp plugin get add-linked-images-to-gallery --field=version

Verify Fix Applied:

Verify plugin version is greater than 1.4 or plugin is removed

📡 Detection & Monitoring

Log Indicators:

  • Multiple failed CSRF token validations
  • Unexpected gallery modifications by administrators

Network Indicators:

  • POST requests to plugin endpoints without referrer headers
  • Suspicious external referrers in admin requests

SIEM Query:

source="wordpress.log" AND ("csrf" OR "nonce_failure" OR "add-linked-images-to-gallery")

🔗 References

📤 Share & Export