CVE-2025-8562 Custom Query Shortcode <= 0.4.0 - Authenticated (Contributor+) Path Traversal via lens Parameter

Medium 6.5 Published Updated

Authenticated contributors can exploit a path traversal vulnerability in the Custom Query Shortcode plugin to read sensitive server files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-8562?

CVE-2025-8562 is a medium-severity path traversal vulnerability in peterhebert Custom Query Shortcode, published on 25 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2025-8562?

How do I fix CVE-2025-8562?

No fix has been published for CVE-2025-8562 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-8562 being exploited?

There is no known exploitation of CVE-2025-8562 in the wild and no public exploit code.

Sources

Also known as GHSA-9mgr-j5g2-cm6j.

Is CVE-2025-8562 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free