{"answers":{"affected":"3 open source packages ship an affected version, including github.com/owncast/owncast. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31450 exists.","fix":"Upgrade github.com/owncast/owncast to 0.1.3 or later.","what":"CVE-2024-31450 is a low-severity path traversal vulnerability in owncast, published on 19 Apr 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-31450 and fix it if it is affected.\n\nWhat it is: CVE-2024-31450 is a low-severity path traversal vulnerability in owncast, published on 19 Apr 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31450 exists.\n\nAffected packages and fixed versions:\n- github.com/owncast/owncast (Go): affected all versions; fixed in 0.1.3\n- github.com/owncast/owncast (Go): affected all versions; fixed in 0.1.3\n- github.com/owncast/owncast (Go): affected all versions; fixed in 0.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-31450/ (Markdown: https://insights.sbomify.com/CVE-2024-31450/index.md)","id":"CVE-2024-31450","markdown":"https://insights.sbomify.com/CVE-2024-31450/index.md","name":"CVE-2024-31450","record":{"aliases":["GHSA-9355-27m8-h74v","GO-2024-2741"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Owncast streaming server","requires_auth":"high_privilege","summary":"Administrators can delete arbitrary files on the server via path traversal in the emoji deletion API endpoint.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"owncast","vendor":"owncast_project"}],"cvss":{"score":2.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Owncast vulnerable to arbitrary file deletion in emoji.go (GHSL-2023-277)","id":"CVE-2024-31450","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":4,"next":{"headline":"Limited file write in routes.py (GHSL-2023-250)","id":"CVE-2024-31451"},"packages":[{"ecosystem":"Go","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"github.com/owncast/owncast","purl":null,"source":"GHSA-9355-27m8-h74v"},{"ecosystem":"Go","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"github.com/owncast/owncast","purl":"pkg:golang/github.com/owncast/owncast","source":"GHSA-9355-27m8-h74v"},{"ecosystem":"Go","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"github.com/owncast/owncast","purl":"pkg:golang/github.com/owncast/owncast","source":"GO-2024-2741"}],"prev":{"headline":"Lua library commands may lead to stack overflow and RCE in Redis","id":"CVE-2024-31449"},"products":["owncast"],"published":"2024-04-19","related":[{"cvss_score":9.8,"headline":"OwnCast remote code execution vulnerability","id":"CVE-2023-46480","kev_date_added":null,"published":"2023-11-27"},{"cvss_score":8.8,"headline":"SQL Injection in owncast/owncast","id":"CVE-2022-3751","kev_date_added":null,"published":"2022-11-29"},{"cvss_score":8.3,"headline":"Server-Side Request Forgery (SSRF) in owncast/owncast","id":"CVE-2023-3188","kev_date_added":null,"published":"2023-06-10"},{"cvss_score":8.2,"headline":"Owncast cross origin request","id":"CVE-2024-29026","kev_date_added":null,"published":"2024-03-20"},{"cvss_score":8.2,"headline":"Unsafe inline XSS Owncast","id":"CVE-2021-39183","kev_date_added":null,"published":"2021-12-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["owncast"]},"summary":"Administrators can delete arbitrary files on the server via path traversal in the emoji deletion API endpoint.","url":"https://insights.sbomify.com/CVE-2024-31450/"}