CVE-2024-31450
JSON

2.7low

Owncast vulnerable to arbitrary file deletion in emoji.go (GHSL-2023-277)

Severity
2.7low CVSS:3.1 by GitHub_M
Exploit likelihood
0.97% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9355-27m8-h74vGO-2024-2741

Description

Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server. The Owncast application exposes an administrator API at the URL /api/admin. The emoji/delete endpoint of said API allows administrators to delete custom emojis, which are saved on disk. The parameter name is taken from the JSON request and directly appended to the filepath that points to the emoji to delete. By using path traversal sequences (../), attackers with administrative privileges can exploit this endpoint to delete arbitrary files on the system, outside of the emoji directory. This vulnerability is fixed in 0.1.3.

Affected

Product or packageVersionsReported by
owncast owncast< 0.1.3CVE List
owncast_project owncast*0.1.3, before 0.1.3CVE List, NVD
github.com/owncast/owncast (Go)before 0.1.3GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M2.7low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
GitHub2.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server. The Owncast application exposes an administrator API at the URL /api/admin. The emoji/delete endpoint of said API allows administrators to delete custom emojis, which are saved on disk. The parameter name is taken from the JSON request and directly appended to the filepath that points to the emoji to delete. By using path traversal sequences (../), attackers with administrative privileges can exploit this endpoint to delete arbitrary files on the system, outside of the emoji directory. This vulnerability is fixed in 0.1.3.

Go Vulnerability Database

Owncast Path Traversal vulnerability in github.com/owncast/owncast

NVD (es)

Owncast es un servidor de chat y transmisión de video en vivo de código abierto, autohospedado, descentralizado y de un solo usuario. La aplicación Owncast expone una API de administrador en la URL /api/admin. El endpoint emoji/eliminar de dicha API permite a los administradores eliminar emojis personalizados, que se guardan en el disco. El nombre del parámetro se toma de la solicitud JSON y se agrega directamente a la ruta del archivo que apunta al emoji que se eliminará. Al utilizar secuencias de path traversal (../), los atacantes con privilegios administrativos pueden aprovechar este endpoint para eliminar archivos arbitrarios en el sistema, fuera del directorio emoji. Esta vulnerabilidad se solucionó en 0.1.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-31450 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-9355-27m8-h74v changed 2024-11-18CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2741 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-31450 changed 2026-06-17Public domain