{"id":"UBUNTU-CVE-2024-58386","details":"ZoneMinder versions 1.37.0 before 1.38.0 contain a path traversal vulnerability in the files view that allows authenticated users to read arbitrary files. The path parameter is not properly validated before being passed to output_file, enabling attackers with Events view permission to access sensitive files like configuration files containing database credentials.","modified":"2026-09-29T23:41:13.230455696Z","published":"2026-09-29T00:00:00Z","upstream":["CVE-2024-58386"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-58386"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-58386"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder/blob/1.37.64/web/skins/classic/views/files.php#L26-L39"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder/commit/071d968bc8ecd5c4f56a87cbe0c3063bc35dbc5d"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder/commit/3b379e99c0c1e539334ad4186c15ad0dc6c238b9"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder/issues/4472"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.0"},{"type":"REPORT","url":"https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-8fw2-wh82-vv4h"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/zoneminder-1.37-x-path-traversal-via-files-view"}],"affected":[{"package":{"name":"zoneminder","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/zoneminder?arch=source&distro=esm-apps%2Fxenial"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"zoneminder","binary_version":"1.29.0+dfsg-1ubuntu2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58386.json"}},{"package":{"name":"zoneminder","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/zoneminder?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.32.3-2build1","1.32.3-2ubuntu1","1.32.3-2ubuntu2","1.32.3-2ubuntu2+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"zoneminder","binary_version":"1.32.3-2ubuntu2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58386.json"}},{"package":{"name":"zoneminder","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/zoneminder?arch=source&distro=esm-apps%2Fjammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"zoneminder","binary_version":"1.36.12+dfsg1-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58386.json"}},{"package":{"name":"zoneminder","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/zoneminder?arch=source&distro=noble"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"zoneminder","binary_version":"1.36.33+dfsg1-1build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58386.json"}},{"package":{"name":"zoneminder","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/zoneminder?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.36.35+dfsg1-1","1.36.37+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"zoneminder","binary_version":"1.36.37+dfsg1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58386.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}