Patchfirst
CVE-2023-32235 Public exploit High · 7.5 EPSS 39.1%

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.

Fix:upgrade ghost to 5.59.1 also fixes CVE-2023-40028 Details ↓

Summary

Ghost versions before 5.42.1 contain a directory traversal flaw in the static theme middleware (frontend/web/middleware/static-theme.js), which serves assets from the active theme's folder. The flaw lets an attacker send a crafted /assets/built%2F..%2F..%2F/ request, and no authentication, user interaction or special configuration is needed, so it can be exploited remotely over the network to read arbitrary files within the theme folder.

Heading is the official description · CVE.org
Breakdown
65.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 7 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 2 months after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+2 mo
  3. First seen exploitedVulnCheck KEV evidence+7 mo

7 fixes in ghost over 3 years. The latest fix listed for ghost is 5.76.0.

Fixes in ghostnpm package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.3.3CVE-2021-2948429 Apr 2021
  2. 4.10.0CVE-2021-391923 Sep 2021
  3. 5.22.7CVE-2022-4165423 Dec 2022
  4. 5.42.1CVE-2023-322355 May 2023
  5. 5.46.1CVE-2023-311338 May 2023
  6. 5.59.1CVE-2023-4002815 Aug 2023
  7. 5.76.0CVE-2024-2372521 Jan 2024Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: ghost.

Upgrade to 5.59.1

Fixes this CVE and 1 other known vulnerability in this package (CVE-2023-40028).

Still affected on this line by CVE-2026-26980 (fixed in 6.19.1, a newer line).

npmnpm install ghost@5.59.1

First fixed in 5.42.1 for CVE-2023-32235.

Affected versions

If you runUpgrade to
All versions before 5.42.15.59.1first fix for this CVE: 5.42.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close