CVE-2026-33171: Path Traversal in Statamic CMS
A path traversal (local file inclusion) flaw existed in Statamic CMS's file handling logic, where user input reached a file sink without adequate sanitisation. An attacker could read files they were not supposed to access.
Published on snehbavarva.medium.com
Technically everyone is using AI right now. In all of the best possible ways and I was thinking what if I can make the whole autonomous system for finding the bugs in popular repo?
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing sanitisation of user-controlled input between the HTTP request source and the file-handling sink, allowing traversal sequences to escape the intended directory.
Impact
An attacker could read files they were not supposed to access; the advisory classified it as moderate severity.
What the attacker needed
Access to the vulnerable Statamic instance
The fix
The vulnerability was fixed in PR #14272 and a GitHub Security Advisory was published.
How it was found
- Point the analysis workflow at the Statamic codebase and map its architecture and routes.
- Trace how user input flows from HTTP requests into the application.
- Identify the file handling logic where input reaches a file sink without sanitisation.
- Deploy Statamic v6.6.3 locally and build a manual proof of concept.
- Confirm the path traversal allows reading files that should not be accessible.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Path traversal means a program takes a file name from a user and uses it to open a file without checking that the name stays inside the intended folder. By supplying a name that climbs out of that folder, an attacker can make the server hand back files it should keep private, such as configuration or system files. Here the CMS's file handling logic let that happen.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.