{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.37.0"
              },
              {
                "fixed": "1.38.0"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "39c2cc997beb038aed2e7f17abf372ee3b32e090"
            },
            {
              "fixed": "071d968bc8ecd5c4f56a87cbe0c3063bc35dbc5d"
            },
            {
              "fixed": "3b379e99c0c1e539334ad4186c15ad0dc6c238b9"
            }
          ],
          "repo": "https://github.com/zoneminder/zoneminder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8fw2-wh82-vv4h"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58386.json"
  },
  "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.",
  "id": "CVE-2024-58386",
  "modified": "2026-09-30T11:30:13.475412539Z",
  "published": "2026-09-28T22:00:16.575Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58386.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-8fw2-wh82-vv4h"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58386"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/zoneminder-1.37-x-path-traversal-via-files-view"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/ZoneMinder/zoneminder/issues/4472"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ZoneMinder/zoneminder/commit/071d968bc8ecd5c4f56a87cbe0c3063bc35dbc5d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ZoneMinder/zoneminder/commit/3b379e99c0c1e539334ad4186c15ad0dc6c238b9"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ZoneMinder/zoneminder"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ZoneMinder/zoneminder/blob/1.37.64/web/skins/classic/views/files.php#L26-L39"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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": "CVSS_V4"
    }
  ],
  "summary": "ZoneMinder 1.37.x Path Traversal via files view"
}