CVE-2026-78851 Path traversal in n/a

Medium 6.5 Published Updated

Remote attackers can exploit a directory traversal flaw in Grav CMS to access sensitive information via the mediaDirFunc method.

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-2026-78851?

CVE-2026-78851 is a medium-severity path traversal vulnerability in n/a, published on 15 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Directory Traversal vulnerability in Grav CMS 2.0.3 through 2.0.6 allows a remote attacker to obtain sensitive information via the GravExtension.php and the mediaDirFunc method.

Weakness: CWE-22, CWE-200

Which versions are affected by CVE-2026-78851?

How do I fix CVE-2026-78851?

No fix has been published for CVE-2026-78851 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-2026-78851 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-78851 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-hjqx-6v9v-mwvj.

Is CVE-2026-78851 in your software?

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

Check your SBOMs for free