{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-29806 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2022-29806 is a critical path traversal vulnerability in Zoneminder Zoneminder, published on 26 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29806 and fix it if it is affected.\n\nWhat it is: CVE-2022-29806 is a critical path traversal vulnerability in Zoneminder Zoneminder, published on 26 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-29806 exists.\n\nAffected product: Zoneminder Zoneminder. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2022-29806/ (Markdown: https://insights.sbomify.com/CVE-2022-29806/index.md)","id":"CVE-2022-29806","markdown":"https://insights.sbomify.com/CVE-2022-29806/index.md","name":"CVE-2022-29806","record":{"aliases":["DEBIAN-CVE-2022-29806","GHSA-xr7v-8xc4-62vc","UBUNTU-CVE-2022-29806"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Video surveillance software","requires_auth":"none","summary":"Attackers can achieve remote code execution in ZoneMinder by exploiting a path traversal vulnerability in language handling to write debug logs to arbitrary locations.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"zoneminder","vendor":"zoneminder"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"ZoneMinder before 1.36.13 allows remote code execution via an invalid language. Ability to create a debug log file at an arbitrary pathname contributes to exploitability.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2022-04-27","github_poc":1,"max_poc_stars":3,"metasploit":1,"nuclei":0,"refs":[{"date":"2025-04-28T15:20:22Z","kind":"github_poc","ref":"https://github.com/Sigm0n/CVE-2022-29806","stars":3,"title":"ZoneMinder up to 1.36.12 Language privilege escalation (and RCE) - Poc Exploit"},{"date":"2022-04-27","kind":"metasploit","ref":"exploit/unix/webapp/zoneminder_lang_exec","stars":null,"title":"ZoneMinder Language Settings Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in n/a","id":"CVE-2022-29806","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"zoneminder:zoneminder","products":["zoneminder:zoneminder"],"type":"path_traversal","year":"2022"},"n_packages":0,"n_references":5,"next":{"headline":"SQL injection in n/a","id":"CVE-2022-29807"},"packages":[],"prev":{"headline":"Deserialization in n/a","id":"CVE-2022-29805"},"products":["n/a"],"published":"2022-04-26","related":[{"cvss_score":10,"headline":"Command injection in n/a","id":"CVE-2008-3882","kev_date_added":null,"published":"2008-09-02"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2025-65791","kev_date_added":null,"published":"2026-02-18"},{"cvss_score":9.8,"headline":"ZoneMinder Time-based SQL Injection","id":"CVE-2024-43360","kev_date_added":null,"published":"2024-08-12"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2019-8423","kev_date_added":null,"published":"2019-02-18"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2019-8424","kev_date_added":null,"published":"2019-02-18"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2019-8427","kev_date_added":null,"published":"2019-02-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution in ZoneMinder by exploiting a path traversal vulnerability in language handling to write debug logs to arbitrary locations.","url":"https://insights.sbomify.com/CVE-2022-29806/"}