9.8critical
Arbitrary file upload in Ghost
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 4.04% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-fvc6-qjp7-m4g4BIT-GHOST-2022-27139
Description
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ghost (npm) | up to 4.39.0 | GitHub Advisory Database |
| ghost ghost | 4.39.0 | NVD |
| ghost (Bitnami) | from 4.39.0 before 4.39.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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
GitHub Advisory Database
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.
NVD (es)
** EN DISPUTA ** Una vulnerabilidad de carga de archivos arbitraria en el módulo de carga de archivos de Ghost versión v4.39.0, permite a atacantes ejecutar código arbitrario por medio de un archivo SVG diseñado. NOTA: El proveedor afirma que, tal y como se indica en la documentación de seguridad de Ghost, la carga de SVG sólo es posible por parte de usuarios autentificados de confianza. La carga de archivos SVG en Ghost no representa una vulnerabilidad de ejecución remota de código. Los SVG no son ejecutables en el servidor, y sólo pueden ejecutar javascript en el navegador de un cliente; se trata de una funcionalidad esperada e intencionada
References
| https://youtu.be/FCqWEvir2wE | advisory, exploit, third-party-advisory, web | |
| http://ghost.org/docs/security/#privilege-escalation-attacks | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-27139 | advisory, web | |
| https://github.com/TryGhost/Ghost | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-27139 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fvc6-qjp7-m4g4 changed 2023-12-06 | CC-BY-4.0 |
| NVD | CVE-2022-27139 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GHOST-2022-27139 changed 2026-09-08 | Apache-2.0 |