CVE-2025-9810
published medium CVSS 3.1 · 6.8TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| antirez | — | linenoise0 · Other versions: affected | Affected | Not stated | CyberArk |
| Amazon Linux | AL2 | Release evaluationALAS2REDIS6-2025-014 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1195 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | redisaarch64 | Listed in advisory | Not stated | ALAS2REDIS6-2025-014 |
| Amazon Linux | AL2 | redisnoarch | Listed in advisory | Not stated | ALAS2REDIS6-2025-014 |
| Amazon Linux | AL2 | redissrc | Listed in advisory | Not stated | ALAS2REDIS6-2025-014 |
| Amazon Linux | AL2 | redisx86_64 | Listed in advisory | Not stated | ALAS2REDIS6-2025-014 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | redis6aarch64 | Listed in advisory | Not stated | ALAS2023-2025-1195 |
| Amazon Linux | AL2023 | redis6noarch | Listed in advisory | Not stated | ALAS2023-2025-1195 |
| Amazon Linux | AL2023 | redis6src | Listed in advisory | Not stated | ALAS2023-2025-1195 |
| Amazon Linux | AL2023 | redis6x86_64 | Listed in advisory | Not stated | ALAS2023-2025-1195 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- CyberArk · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| antirez | linenoise | 0 (affected)Default: affected | CyberArk · cna |
Weaknesses
1- CWE-367 CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
4Provider assertions
3CyberArk · cna
TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5812db6feb969ccaed54b37986c67f513c979be469a646b8d1667a92df002795
- Ingested
- 23 Sep 2026, 08:59:43 UTC
- Source record
- Official CVE record