CVE-2025-8562: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in peterhebert Custom Query Shortcode
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 Analysis
Technical Summary
CVE-2025-8562 is a path traversal vulnerability (CWE-22) in the peterhebert Custom Query Shortcode WordPress plugin affecting all versions up to 0.4.0. The flaw exists in the handling of the 'lens' parameter, which allows authenticated users with at least Contributor privileges to read arbitrary files on the server. This can lead to disclosure of sensitive data. The vulnerability has a CVSS 3.1 base score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N), reflecting network attack vector, low attack complexity, required privileges, no user interaction, unchanged scope, high confidentiality impact, and no integrity or availability impact. There is no vendor advisory or patch link currently available, and no known exploits in the wild have been reported.
Potential Impact
An attacker with Contributor-level or higher access can exploit this vulnerability to read arbitrary files on the server via the vulnerable 'lens' parameter. This can lead to exposure of sensitive information stored on the server, compromising confidentiality. There is no indication of integrity or availability impact. The vulnerability requires authenticated access, limiting the attack surface to users with some level of trust within the WordPress environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict Contributor-level access to trusted users only and monitor for suspicious activity related to the 'lens' parameter. Consider disabling or removing the Custom Query Shortcode plugin if possible to eliminate the risk.
CVE-2025-8562: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in peterhebert 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
Technical Analysis
CVE-2025-8562 is a path traversal vulnerability (CWE-22) in the peterhebert Custom Query Shortcode WordPress plugin affecting all versions up to 0.4.0. The flaw exists in the handling of the 'lens' parameter, which allows authenticated users with at least Contributor privileges to read arbitrary files on the server. This can lead to disclosure of sensitive data. The vulnerability has a CVSS 3.1 base score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N), reflecting network attack vector, low attack complexity, required privileges, no user interaction, unchanged scope, high confidentiality impact, and no integrity or availability impact. There is no vendor advisory or patch link currently available, and no known exploits in the wild have been reported.
Potential Impact
An attacker with Contributor-level or higher access can exploit this vulnerability to read arbitrary files on the server via the vulnerable 'lens' parameter. This can lead to exposure of sensitive information stored on the server, compromising confidentiality. There is no indication of integrity or availability impact. The vulnerability requires authenticated access, limiting the attack surface to users with some level of trust within the WordPress environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict Contributor-level access to trusted users only and monitor for suspicious activity related to the 'lens' parameter. Consider disabling or removing the Custom Query Shortcode plugin if possible to eliminate the risk.
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: 4/9/2026, 6:03:55 PM
Last updated: 5/10/2026, 2:27:17 AM
Views: 154
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.