Patchfirst
CVE-2023-40028 Public exploit Medium · 4.9 EPSS 65.7%

Arbitrary file read via symlinks in Ghost

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

TryGhost · Ghost

Summary

The flaw is an arbitrary file read vulnerability in the Ghost content management system from TryGhost, affecting versions prior to 5.59.1, where uploaded symlinks are not properly restricted. An attacker who holds an authenticated user account (the attack requires high privileges on the vector and no user interaction) can upload symlink files that cause the server to read any file on the host operating system.

Official description · CVE.org

Ghost is an open source content management system. Versions prior to 5.59.1 are subject to a vulnerability which allows authenticated users to upload files that are symlinks. This can be exploited to perform an arbitrary file read of any file on the host operating system. Site administrators can check for exploitation of this issue by looking for unknown symlinks within Ghost's `content/` folder. Version 5.59.1 contains a fix for this issue. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Breakdown
28.3 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 7 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+7 mo

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

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

  1. 5.22.7CVE-2022-4165423 Dec 2022
  2. 5.42.1CVE-2023-322355 May 2023
  3. 5.46.1CVE-2023-311338 May 2023
  4. 5.59.1CVE-2023-4002815 Aug 2023
  5. 5.76.0CVE-2024-2372521 Jan 2024
  6. 5.89.5CVE-2024-4340920 Aug 2024
  7. 6.0.9CVE-2025-986217 Sep 2025Latest listed

Affected versions and fixes

as published in the CVE record

TryGhost Ghost

Affected: < 5.59.1

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-32235).

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

npmnpm install ghost@5.59.1

The first fix for CVE-2023-40028.

Affected versions

If you runUpgrade to
All versions before 5.59.15.59.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