Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-8562: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in peterhebert Custom Query Shortcode

0
Medium
VulnerabilityCVE-2025-8562cvecve-2025-8562cwe-22
Published: Mon Aug 25 2025 (08/25/2025, 09:23:49 UTC)
Source: CVE Database V5
Vendor/Project: peterhebert
Product: Custom Query Shortcode

Description

The Custom Query Shortcode plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 0.4.0 via the 'lens' parameter. This makes it possible for authenticated attackers, with Contributor-level access and above, to read the contents of files on the server, which can contain sensitive information.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 17:14:28 UTC

Technical Analysis

CVE-2025-8562 is a path traversal vulnerability classified under CWE-22 found in the Custom Query Shortcode plugin for WordPress, developed by peterhebert. The vulnerability exists in all versions up to and including 0.4.0 and is exploitable via the 'lens' parameter. An attacker with authenticated access at the Contributor level or higher can manipulate this parameter to traverse directories and read arbitrary files on the server. This can lead to unauthorized disclosure of sensitive information such as configuration files, credentials, or other data stored on the web server. The vulnerability does not require user interaction beyond authentication, and the attack vector is network-based. The CVSS v3.1 base score is 6.5, reflecting a medium severity due to the ease of exploitation (low attack complexity), the requirement for authenticated access, and the high impact on confidentiality. There is no impact on integrity or availability. No patches or fixes are currently linked, and no known exploits are reported in the wild. The vulnerability highlights the risk of insufficient input validation and improper restriction of file path parameters in WordPress plugins, which can expose sensitive server files to authorized but potentially malicious users.

Potential Impact

The primary impact of CVE-2025-8562 is unauthorized disclosure of sensitive information stored on the web server hosting the vulnerable WordPress plugin. Attackers with Contributor-level access can read arbitrary files, potentially exposing database credentials, configuration files, or other critical data. This can lead to further compromise if attackers leverage the disclosed information for privilege escalation or lateral movement. Although the vulnerability does not directly affect system integrity or availability, the confidentiality breach can have severe consequences, including data leaks, compliance violations, and reputational damage. Organizations relying on the Custom Query Shortcode plugin are at risk, especially if they grant Contributor or higher privileges to untrusted users. The vulnerability could be exploited in targeted attacks against websites with sensitive data or in multi-tenant hosting environments where file disclosure could affect multiple clients.

Mitigation Recommendations

1. Immediately restrict Contributor-level and higher privileges to trusted users only to reduce the risk of exploitation. 2. Monitor and audit user activities related to the Custom Query Shortcode plugin, focusing on unusual usage of the 'lens' parameter. 3. Disable or remove the Custom Query Shortcode plugin until a security patch or update is released by the vendor. 4. Implement web application firewall (WAF) rules to detect and block path traversal attempts targeting the 'lens' parameter. 5. Harden server file permissions to limit access to sensitive files, minimizing the impact if traversal occurs. 6. Regularly scan WordPress installations for vulnerable plugin versions and apply updates promptly once available. 7. Educate site administrators about the risks of granting elevated privileges unnecessarily and enforce the principle of least privilege. 8. Consider isolating WordPress instances or using containerization to limit the scope of potential breaches.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-08-04T19:06:37.983Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68ac315cad5a09ad004a8675

Added to database: 8/25/2025, 9:48:12 AM

Last enriched: 2/26/2026, 5:14:28 PM

Last updated: 3/26/2026, 7:45:07 AM

Views: 131

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses