CVE-2022-27139
CRITICAL 9.8CVSS 3.1Arbitrary file upload in Ghost
An arbitrary file upload vulnerability in the file upload module of Ghost v4.39.0 allows attackers to execute arbitrary code via a crafted SVG file. NOTE: Vendor states that as outlined in Ghost's security documentation, upload of SVGs is only possible by trusted authenticated users. The uploading of SVG files to Ghost does not represent a remote code execution vulnerability. SVGs are not executable on the server, and may only execute javascript in a client's browser - this is expected and intentional functionality
- Published
- 12 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-434
- Also known as
- BIT-ghost-2022-27139GHSA-fvc6-qjp7-m4g4
- Sources
- NVDJSONOSV GHSA-fvc6-qjp7-m4g4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ghost | ghostcpe:2.3:a:ghost:ghost:4.39.0:*:*:*:*:node.js:*:* |
= 4.39.0 | |
| OSV | npm | ghost | <= 4.39.0 |
References
- http://ghost.org/docs/security/#privilege-escalation-attacks · WEB
- https://youtu.be/FCqWEvir2wE · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-27139 · ADVISORY
- https://github.com/TryGhost/Ghost · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 12 Apr 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2022)