Home

Description

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.

PUBLISHED Reserved 2025-09-01 | Published 2025-09-01 | Updated 2026-04-22 | Assigner CyberArk




MEDIUM: 6.8CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Problem types

CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Product status

Default status
affected

Any version
affected

Credits

@disconnect3d finder

Simcha Kosman analyst

References

github.com/...d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c

github.com/...ommit/f2558e1e588b1ba384ec73a2cf5c9a46409753db

github.com/antirez/linenoise/blob/master/linenoise.c

github.com/antirez/linenoise/pull/202

cve.org (CVE-2025-9810)

nvd.nist.gov (CVE-2025-9810)

Download JSON