{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:dokku:dokku:*:*:*:*:-:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.38.2"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a553f0496629a9806167b7da39a949531e3391d9"
            }
          ],
          "repo": "https://github.com/dokku/dokku",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-xh7p-9crg-pchr"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-522"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45407.json"
  },
  "details": "Dokku is a docker-powered PaaS. Prior to 0.38.2, the git:auth command creates $DOKKU_ROOT/.netrc using bash's touch command, which applies the default umask of 0644. This pre-creation defeats the netrc binary's built-in 0600 permission setting, leaving git credentials readable by any local user who can traverse the dokku home directory. This vulnerability is fixed in 0.38.2.",
  "id": "CVE-2026-45407",
  "modified": "2026-07-15T01:49:22.129691555Z",
  "published": "2026-06-26T16:21:25.215Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45407.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/dokku/dokku/security/advisories/GHSA-xh7p-9crg-pchr"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45407"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dokku/dokku/pull/8589"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Dokku: Git Credentials in .netrc Stored World-Readable Due to Premature touch"
}