{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39285 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2022-39285 is a high-severity cross-site scripting vulnerability in Zoneminder Zoneminder, published on 7 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-39285 and fix it if it is affected.\n\nWhat it is: CVE-2022-39285 is a high-severity cross-site scripting vulnerability in Zoneminder Zoneminder, published on 7 Oct 2022. Any signed-in user can exploit it over the network, 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-2022-39285 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-39285/ (Markdown: https://insights.sbomify.com/CVE-2022-39285/index.md)","id":"CVE-2022-39285","markdown":"https://insights.sbomify.com/CVE-2022-39285/index.md","name":"CVE-2022-39285","record":{"aliases":["DEBIAN-CVE-2022-39285","GHSA-h6xp-cvwv-q433","UBUNTU-CVE-2022-39285"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"CCTV software","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts into ZoneMinder logs, leading to code execution and account takeover when victims view the logs.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zoneminder","vendor":"zoneminder"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"ZoneMinder is a free, open source Closed-circuit television software application The file parameter is vulnerable to a cross site scripting vulnerability (XSS) by backing out of the current \"tr\" \"td\" brackets. This then allows a malicious user to provide code that will execute when a user views the specific log on the \"view=log\" page. This vulnerability allows an attacker to store code within the logs that will be executed when loaded by a legitimate user. These actions will be performed with the permission of the victim. This could lead to data loss and/or further exploitation including account takeover. This issue has been addressed in versions `1.36.27` and `1.37.24`. Users are advised to upgrade. Users unable to upgrade should disable database logging.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2023-03-27","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-03-27","kind":"exploitdb","ref":"51071","stars":null,"title":"Zoneminder \u003c v1.37.24 - Log Injection \u0026 Stored XSS \u0026 CSRF Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"Stored Cross-Site Scripting Vulnerability In File Parameter in zoneminder","id":"CVE-2022-39285","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"zoneminder:zoneminder","products":["zoneminder:zoneminder"],"type":"xss","year":"2022"},"n_packages":0,"n_references":4,"next":{"headline":"Execution with Unnecessary Privileges in JupyterApp","id":"CVE-2022-39286"},"packages":[],"prev":{"headline":"Secure or HttpOnly flag set in Config\\Cookie is not reflected in Cookies issued in Codeigniter4","id":"CVE-2022-39284"},"products":["zoneminder"],"published":"2022-10-07","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":"Path traversal in n/a","id":"CVE-2022-29806","kev_date_added":null,"published":"2022-04-26"},{"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":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["ZoneMinder"]},"summary":"Attackers can inject malicious scripts into ZoneMinder logs, leading to code execution and account takeover when victims view the logs.","url":"https://insights.sbomify.com/CVE-2022-39285/"}