{"id":"CVE-2022-39285","summary":"Stored Cross-Site Scripting Vulnerability In File Parameter in zoneminder","details":"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.","aliases":["GHSA-h6xp-cvwv-q433"],"modified":"2026-04-10T04:50:21.102139Z","published":"2022-10-07T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39285.json","cwe_ids":["CWE-79"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/171498/Zoneminder-Log-Injection-XSS-Cross-Site-Request-Forgery.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39285.json"},{"type":"ADVISORY","url":"https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-h6xp-cvwv-q433"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39285"},{"type":"FIX","url":"https://github.com/ZoneMinder/zoneminder/commit/c0a4c05e84eea0f6ccf7169c014efe5422c9ba0d"},{"type":"FIX","url":"https://github.com/ZoneMinder/zoneminder/commit/d289eb48601a76e34feea3c1683955337b1fae59"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zoneminder/zoneminder","events":[{"introduced":"0"},{"fixed":"5f8ca42d9681e0bfd82c096cae28f0fa08eed5fa"}]}],"versions":["1.32.3","1.34.0","1.36.0","1.36.1","1.36.14","1.36.17","1.36.18","1.36.2","1.36.20","1.36.21","1.36.22","1.36.23","1.36.24","1.36.25","1.36.26","1.36.3","1.36.4","list","v1.25","v1.26.0","v1.26.1","v1.26.2","v1.26.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39285.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H"}]}