{"answers":{"affected":"3 open source packages ship an affected version, including github.com/AlexxIT/go2rtc. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29192 exists.","fix":"Upgrade github.com/AlexxIT/go2rtc to 1.9.0 or later.","what":"CVE-2024-29192 is a high-severity vulnerability in AlexxIT go2rtc, published on 4 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-29192 and fix it if it is affected.\n\nWhat it is: CVE-2024-29192 is a high-severity vulnerability in AlexxIT go2rtc, published on 4 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29192 exists.\n\nAffected packages and fixed versions:\n- github.com/AlexxIT/go2rtc (Go): affected all versions; fixed in 1.9.0\n- github.com/AlexxIT/go2rtc (Go): affected all versions; fixed in 1.9.0\n- github.com/AlexxIT/go2rtc (Go): affected all versions; fixed in 1.9.0\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-29192/ (Markdown: https://insights.sbomify.com/CVE-2024-29192/index.md)","id":"CVE-2024-29192","markdown":"https://insights.sbomify.com/CVE-2024-29192/index.md","name":"CVE-2024-29192","record":{"aliases":["GHSA-qgj8-g9q4-7f2p","GO-2024-3052"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Go camera streaming app","requires_auth":"none","summary":"Cross-site request forgery in go2rtc allows attackers to modify configuration and execute arbitrary commands via the exec handler if the victim visits a malicious site.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go2rtc","vendor":"alexxit"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"gotortc is a camera streaming application. Versions 1.8.5 and prior are vulnerable to Cross-Site Request Forgery. The `/api/config` endpoint allows one to modify the existing configuration with user-supplied values. While the API is only allowing localhost to interact without authentication, an attacker may be able to achieve that depending on how go2rtc is set up on the upstream application, and given that this endpoint is not protected against CSRF, it allows requests from any origin (e.g. a \"drive-by\" attack) . The `exec` handler allows for any stream to execute arbitrary commands. An attacker may add a custom stream through `api/config`, which may lead to arbitrary command execution. In the event of a victim visiting the server in question, their browser will execute the requests against the go2rtc instance. Commit 8793c3636493c5efdda08f3b5ed5c6e1ea594fd9 adds a warning about secure API access.","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":"GHSL-2023-206 gotortc Cross-Site Request Forgery vulnerability","id":"CVE-2024-29192","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"csrf","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"GHSL-2023-207 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29193"},"packages":[{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":null,"source":"GHSA-qgj8-g9q4-7f2p"},{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":"pkg:golang/github.com/AlexxIT/go2rtc","source":"GHSA-qgj8-g9q4-7f2p"},{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":"pkg:golang/github.com/AlexxIT/go2rtc","source":"GO-2024-3052"}],"prev":{"headline":"GHSL-2023-205 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29191"},"products":["go2rtc"],"published":"2024-04-04","related":[{"cvss_score":6.1,"headline":"GHSL-2023-205 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29191","kev_date_added":null,"published":"2024-04-04"},{"cvss_score":6.1,"headline":"GHSL-2023-207 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29193","kev_date_added":null,"published":"2024-04-04"}],"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-29","vendors":["AlexxIT"]},"summary":"Cross-site request forgery in go2rtc allows attackers to modify configuration and execute arbitrary commands via the exec handler if the victim visits a malicious site.","url":"https://insights.sbomify.com/CVE-2024-29192/"}