CVE-2024-23724 Ghost has possible Cross-site Scripting issue
Stored XSS in Ghost CMS allows contributors to escalate privileges and take over accounts via malicious SVG profile pictures.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-23724?
CVE-2024-23724 is a critical cross-site scripting vulnerability in n/a, published on 11 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Ghost through 5.76.0 allows stored XSS, and resultant privilege escalation in which a contributor can take over any account, via an SVG profile picture that contains JavaScript code to interact with the API on localhost TCP port 3001. NOTE: The discoverer reports that "The vendor does not view this as a valid vector."
Weakness: CWE-79
Which versions are affected by CVE-2024-23724?
3 open source packages ship an affected version, including ghost. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ghost Bitnami | All versions | 5.82.11 |
ghost npm | All versions to 5.76.0 | None |
ghost npm | All versions to 5.76.0 | None |
Products include Ghost Ghost.
How do I fix CVE-2024-23724?
Upgrade ghost to 5.82.11 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-23724 being exploited?
There is no known exploitation of CVE-2024-23724 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as BIT-ghost-2024-23724, GHSA-99vc-xw8j-phjm.