{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.2"
              },
              {
                "last_affected": "5.2"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "46f076895ce28035fd190828810f123d8a22221c"
            },
            {
              "last_affected": "46f076895ce28035fd190828810f123d8a22221c"
            }
          ],
          "repo": "https://github.com/jarun/nnn",
          "type": "GIT"
        }
      ],
      "versions": [
        "5.2"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "CERT-PL",
    "cwe_ids": [
      "CWE-197"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65610.json"
  },
  "details": "nnn stores homelen variable as uchar_t, which can only represent values in the range 0-255. An attacker who can influence the victim's execution environment can provide an arbitrary HOME path with length that is truncated to 0. The expression (homelen - 1) is promoted to signed int and becomes -1 and producing an out-of-bounds read and an out-of-bounds write one byte before the path buffer. \n\n\n\n\nMaintainer of this project was notified about this vulnerability. It might has been addressed, but the maintainer did not provide a vulnerable version range. Only version 5.2 was tested and confirmed as vulnerable.",
  "id": "CVE-2026-65610",
  "modified": "2026-08-30T03:30:36.881023473Z",
  "published": "2026-08-19T13:21:13.455Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://cert.pl/en/posts/2026/08/CVE-2026-65609"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65610.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-65610"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/jarun/nnn"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Numeric Truncation Error in nnn"
}