CVE-2024-31450 json
Owncast vulnerable to arbitrary file deletion in emoji.go (GHSL-2023-277)
published 2024-04-19 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2541 , GHSA-9355-27m8-h74v , GO-2024-2741
- cvss
- 2.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 62%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/owncast/owncast 0.1.3
- owncast_project owncast 0.1.3
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.97% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2023-277_Owncast/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/owncast/owncast | <0.1.3 |
0.1.3 |
Affected products
- owncast owncast
- owncast_project owncast
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/owncast/owncast/commit/1b14800c7d7f54be14ed4d130bfe7f480645076e
web, patch
-
securitylab.github.com
/advisories/GHSL-2023-277_Owncast/
exploit, third-party-advisory
-
github.com
/owncast/owncast/blob/v0.1.2/controllers/admin/emoji.go#L63
web, product
-
github.com
/owncast/owncast/releases/tag/v0.1.3
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-31450
advisory
-
github.com
/owncast/owncast
package
-
securitylab.github.com
/advisories/GHSL-2023-277_Owncast
advisory
-
github.com
/advisories/GHSA-9355-27m8-h74v
advisory
Sources
- CVE List CVE-2024-31450
- GitHub Advisory GHSA-9355-27m8-h74v
- NVD CVE-2024-31450
- OSV GO-2024-2741
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.