CVE-2024-23724 Ghost has possible Cross-site Scripting issue

Critical 9.0 Published Updated

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.

PackageAffectedFixed in
ghost BitnamiAll versions5.82.11
ghost npmAll versions to 5.76.0None
ghost npmAll versions to 5.76.0None

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.

Sources

Also known as BIT-ghost-2024-23724, GHSA-99vc-xw8j-phjm.

Is CVE-2024-23724 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free