Vulnerability · Published Apr 19, 2024 · Assigned by GitHub_M

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

Low 2.7

In plain English

A low-severity path traversal in owncast from owncast. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.7Low
Exploit odds (30 days)1.0%top 38.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/owncast/owncast0.1.3GHSA-9355-27m8-h74v
Gogithub.com/owncast/owncast0.1.3GO-2024-2741

Affected products (as reported)

VendorProductVersions
owncast owncast < 0.1.3

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L

References