{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.1.0"
              },
              {
                "fixed": "0.42.0"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "b9b30140a200a33734c610302c244abe39fc8477"
            },
            {
              "fixed": "c1ad4f969318a621c95c87c1efb79f3ef490adb5"
            }
          ],
          "repo": "https://github.com/hashicorp/consul-template",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "HashiCorp",
    "cwe_ids": [
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5061.json"
  },
  "details": "The consul-template library before version 0.42.0 is vulnerable to a sandbox path bypass in the file template helper that may allow reading an out-of-sandbox file. This vulnerability (CVE-2026-5061) is fixed in consul-template 0.42.0.",
  "id": "CVE-2026-5061",
  "modified": "2026-07-08T05:37:32.325150952Z",
  "published": "2026-05-12T13:58:20.409Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://discuss.hashicorp.com/t/hcsec-2026-12-consul-template-vulnerable-to-sandbox-path-bypass-in-file-helper-through-symlink-attack/77414"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5061.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5061"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/hashicorp/consul-template"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack"
}