CVE-2023-32235 Path Traversal in Ghost
Remote attackers can read arbitrary files in the active theme folder via directory traversal in Ghost CMS.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-32235?
CVE-2023-32235 is a high-severity path traversal vulnerability in n/a, published on 5 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Ghost before 5.42.1 allows remote attackers to read arbitrary files within the active theme's folder via /assets/built%2F..%2F..%2F/ directory traversal. This occurs in frontend/web/middleware/static-theme.js.
Weakness: CWE-22
Which versions are affected by CVE-2023-32235?
3 open source packages ship an affected version, including ghost. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ghost Bitnami | All versions | 5.42.1 |
ghost npm | All versions | 5.42.1 |
ghost npm | All versions | 5.42.1 |
Products include Ghost Ghost.
How do I fix CVE-2023-32235?
Upgrade ghost to 5.42.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-32235 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-32235 exists.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as BIT-ghost-2023-32235, GHSA-wf7x-fh6w-34r6.