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.
Problem types
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
*
Timeline
2025-08-05: | Vendor Notified |
2025-08-24: | Disclosed |
Credits
Muhammad Yudha - DJ
References
www.wordfence.com/...-76ed-4ede-88fd-e41b9969685f?source=cve
plugins.svn.wordpress.org/...y-shortcode/tags/0.4.0/init.php
wordpress.org/plugins/custom-query-shortcode/
plugins.trac.wordpress.org/changeset/3348818/
github.com/peterhebert/custom-query-shortcode/pull/1