CVE-2025-8562
Custom Query Shortcode <= 0.4.0 - Authenticated (Contributor+) Path Traversal via lens Parameter
- State
- Published
- Severity
- 6.5 Medium
- Published
- Aug 25, 2025
- Updated
- Apr 8, 2026
- Reserved
- Aug 4, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | Wordfence |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
Custom Query Shortcodepeterhebert |
|
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/9e37c664-76ed-4ede-88fd-e41b9969685f?source=cve
- https://plugins.svn.wordpress.org/custom-query-shortcode/tags/0.4.0/init.php
- https://wordpress.org/plugins/custom-query-shortcode/#developers
- https://plugins.trac.wordpress.org/changeset/3348818/
- https://github.com/peterhebert/custom-query-shortcode/pull/1
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.