CVE-2022-28397 Arbitrary file upload in Ghost

Critical 9.8 Published Updated

Trusted users can upload malicious files to execute arbitrary code, though the vendor considers this behavior intentional.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-28397?

CVE-2022-28397 is a critical vulnerability in n/a, published on 12 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An arbitrary file upload vulnerability in the file upload module of Ghost CMS v4.42.0 allows attackers to execute arbitrary code via a crafted file. NOTE: Vendor states as detailed in Ghost's security documentation, files can only be uploaded and published by trusted users, this is intentional.

Weakness: CWE-434

Which versions are affected by CVE-2022-28397?

3 open source packages ship an affected version, including ghost. It affects 1 product.

PackageAffectedFixed in
ghost BitnamiFrom 4.42.04.42.1
ghost npmAll versions to 4.42.0None
ghost npmAll versions to 4.42.0None

Products include Ghost Ghost.

How do I fix CVE-2022-28397?

Upgrade ghost to 4.42.1 or later.

Is CVE-2022-28397 being exploited?

There is no known exploitation of CVE-2022-28397 in the wild and no public exploit code.

Sources

Also known as BIT-ghost-2022-28397, GHSA-ffhq-g856-9f2p.

Is CVE-2022-28397 in your software?

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

Check your SBOMs for free