{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "80fd0569d166cd32886a640e58f3bf292807a3c0"
            }
          ],
          "repo": "https://github.com/antirez/linenoise",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "TOCTOU  in linenoiseHistorySave in linenoise allows local attackers to overwrite arbitrary files and change permissions via a symlink race between fopen(\"w\") on the history path and subsequent chmod() on the same path.",
  "id": "CVE-2025-9810",
  "modified": "2026-03-10T21:47:49.632743575Z",
  "published": "2025-09-01T19:15:32.573Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/antirez/linenoise/pull/202"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L",
      "type": "CVSS_V3"
    }
  ]
}