CVE-2022-39285Stored Cross-Site Scripting Vulnerability In File Parameter in zoneminder
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | zoneminder | Fix pending | UBUNTU-CVE-2022-39285 | |
| Ubuntu 26.04 | zoneminder | Under investigation | UBUNTU-CVE-2022-39285 | |
| Ubuntu 25.10 | zoneminder | Will not fix Debian security team has a note limiting security support for ZoneMinder for installations behind a trusted HTTP zone, more information can be found at… | UBUNTU-CVE-2022-39285 | |
| Ubuntu 24.04 | zoneminder | Under investigation | UBUNTU-CVE-2022-39285 | |
| Ubuntu 22.04 | zoneminder | Fix pending | UBUNTU-CVE-2022-39285 | |
| Ubuntu 20.04 | zoneminder | Fix pending | UBUNTU-CVE-2022-39285 | |
| Ubuntu 16.04 | zoneminder | Will not fix Debian security team has a note limiting security support for ZoneMinder for installations behind a trusted HTTP zone, more information can be found at… | UBUNTU-CVE-2022-39285 | |
| Ubuntu 14.04 | zoneminder | Will not fix Debian security team has a note limiting security support for ZoneMinder for installations behind a trusted HTTP zone, more information can be found at… | ||
| Debian 14 | zoneminder | Fixed | 1.36.31+dfsg1-1 | DEBIAN-CVE-2022-39285 |
| Debian 13 | zoneminder | Fixed | 1.36.31+dfsg1-1 | DEBIAN-CVE-2022-39285 |
| Debian 12 | zoneminder | Fixed | 1.36.31+dfsg1-1 | DEBIAN-CVE-2022-39285 |
| Alpine Linux 3.24 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.23 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.22 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.21 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.20 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.19 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.18 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
| Alpine Linux 3.17 | zoneminder | Fixed | 1.36.31-r0 | ALPINE-CVE-2022-39285 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- zoneminder: affected: < 1.36.27, >= 1.37.0, < 1.37.24
References
- https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-h6xp-cvwv-q433
- https://github.com/ZoneMinder/zoneminder/commit/c0a4c05e84eea0f6ccf7169c014efe5422c9ba0d
- https://github.com/ZoneMinder/zoneminder/commit/d289eb48601a76e34feea3c1683955337b1fae59
- http://packetstormsecurity.com/files/171498/Zoneminder-Log-Injection-XSS-Cross-Site-Request-Forgery.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.