{"id":"CVE-2022-39285","aliases":["ALPINE-CVE-2022-39285","DEBIAN-CVE-2022-39285","EUVD-2022-41786","GHSA-h6xp-cvwv-q433","UBUNTU-CVE-2022-39285"],"status":"published","title":"Stored Cross-Site Scripting Vulnerability In File Parameter in zoneminder","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.","severity":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.05123,"percentile":0.92493,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-79"],"published":"2022-10-07T00:00:00Z","modified":"2026-11-03T07:31:26Z","exploits":[{"source":"exploitdb","id":"EDB-51071","title":"Zoneminder \u003c v1.37.24 - Log Injection \u0026 Stored XSS \u0026 CSRF Bypass","type":"webapps","platform":"php","date":"2023-03-27","verified":true,"url":"https://www.exploit-db.com/exploits/51071"}],"fixes":[{"ecosystem":"Alpine:v3.17","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"zoneminder","fixed_in":["1.36.31-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"zoneminder","fixed_in":["1.36.31+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"zoneminder","fixed_in":["1.36.31+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"zoneminder","fixed_in":["1.36.31+dfsg1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.17","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36.31+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.28.1-8","1.29.0+dfsg-1","1.29.0+dfsg-1ubuntu1","1.29.0+dfsg-1ubuntu2","1.29.0+dfsg-1ubuntu2+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.32.3-2build1","1.32.3-2ubuntu1","1.32.3-2ubuntu2","1.32.3-2ubuntu2+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36.7+dfsg1-1","1.36.10+dfsg1-1","1.36.11+dfsg1-1","1.36.12+dfsg1-1","1.36.12+dfsg1-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36.33+dfsg1-1build1","1.36.33+dfsg1-1build2","1.36.33+dfsg1-1build3","1.36.33+dfsg1-1build4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36.35+dfsg1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36.37+dfsg1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"zoneminder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36.35+dfsg1-1","1.36.37+dfsg1-1"]}],"products":[{"vendor":"zoneminder","product":"zoneminder"}],"references":[{"url":"https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-h6xp-cvwv-q433","tags":["x_transferred","Exploit","Patch","Third Party Advisory","advisory","report"]},{"url":"https://github.com/ZoneMinder/zoneminder/commit/c0a4c05e84eea0f6ccf7169c014efe5422c9ba0d","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/ZoneMinder/zoneminder/commit/d289eb48601a76e34feea3c1683955337b1fae59","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://packetstormsecurity.com/files/171498/Zoneminder-Log-Injection-XSS-Cross-Site-Request-Forgery.html","tags":["x_transferred","web"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-39285","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39285.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39285","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-39285","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-39285","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39285","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-39285","title":"Stored Cross-Site Scripting Vulnerability In File Parameter in zoneminder","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.","status":"published","published":"2022-10-07T00:00:00Z","modified":"2025-04-22T17:19:26.192Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:39.559326Z"}],"euvd":[{"id":"EUVD-2022-41786","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.","status":"published","published":"2022-10-07T00:00:00Z","modified":"2025-04-22T17:19:26Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:16.055056Z"}],"nvd":[{"id":"CVE-2022-39285","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.","status":"published","published":"2022-10-07T21:15:11.397Z","modified":"2026-06-17T04:58:04.28Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:29.026521Z"}],"osv":[{"id":"ALPINE-CVE-2022-39285","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.","status":"published","published":"2022-10-07T21:15:11.397Z","modified":"2026-11-03T07:31:26.103239894Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T07:50:01.054176Z"},{"id":"CVE-2022-39285","title":"Stored Cross-Site Scripting Vulnerability In File Parameter in zoneminder","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.","status":"published","published":"2022-10-07T00:00:00Z","modified":"2026-10-28T02:30:54.765318565Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:26.860704Z"},{"id":"DEBIAN-CVE-2022-39285","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.","status":"published","published":"2022-10-07T21:15:11.397Z","modified":"2026-11-03T08:00:45.125011342Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T08:25:15.646766Z"},{"id":"UBUNTU-CVE-2022-39285","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.","status":"published","published":"2022-10-07T21:15:00Z","modified":"2026-10-17T12:57:15.13082998Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","level":"high"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:53:55.502114Z"}]}}
