ghost

CVE-2022-28397

CVE-2022-28397 is a critical-severity unrestricted upload of dangerous file types vulnerability in ghost (npm), affecting versions <= 4.42.0. No fixed version is listed yet.

Key facts
CVSS score
9.8
Critical
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
ghost
Fixed in
Not available
Disclosed
2022

Summary

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.

Impact

What is unrestricted upload of dangerous file types?

The application accepts file uploads without adequately restricting the file type or content. Typical impact: remote code execution if the uploaded file can be served and executed on the server.

Severity and exposure

CVE-2022-28397 has a CVSS score of 9.8 (Critical). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

No fixed version is listed yet, so configuration controls and monitoring matter more in the interim.

Affected versions

npm

  • ghost (<= 4.42.0)

Security releases

Not available
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2022-28397 is reachable in your applications. Explore open-source security for your team.

See if CVE-2022-28397 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2022-28397 in your environment

Remediation advice

No fixed version is listed for CVE-2022-28397 yet.

In the interim: Validate file type by inspecting the content, not just the extension or MIME type declared by the client. Store uploads outside the web root.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2022-28397

What is CVE-2022-28397?

CVE-2022-28397 is a critical-severity unrestricted upload of dangerous file types vulnerability in ghost (npm), affecting versions <= 4.42.0. No fixed version is listed yet. The application accepts file uploads without adequately restricting the file type or content.

How severe is CVE-2022-28397?

CVE-2022-28397 has a CVSS score of 9.8 (Critical). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of ghost are affected by CVE-2022-28397?

ghost (npm) versions <= 4.42.0 is affected.

Is there a fix for CVE-2022-28397?

No fixed version is listed for CVE-2022-28397 yet. Monitor the advisory for updates and apply mitigations in the interim.

Is CVE-2022-28397 exploitable, and should I be worried?

Whether CVE-2022-28397 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2022-28397 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2022-28397?

No fixed version is listed yet. In the interim: Validate file type by inspecting the content, not just the extension or MIME type declared by the client. Store uploads outside the web root.

Stop the waste.
Protect your environment with Kodem.