01 Record
CVE-2025-9810
TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
MediumPUBLISHEDCNA: CyberArk
CNA base score6.8 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
02 Description
TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.10% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 1.2% of scored records. A rank, not a probability.
- NVD base score
- 5.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2025-09-01 19:03Z1 YR AGO
- Last updated
- 2026-04-22 15:06Z6 MO AGO
- Reserved
- 2025-09-01
- Assigning CNA
- CyberArk
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 6.8)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- Weaknesses
- CWE-367Time-of-check Time-of-use (TOCTOU) Race ConditionBase
- Data version
- 5.2
- Document digest
- bf54214fe222d90d89ae5ebbb9e54d2c49856daf448e14b7d988c25849640a25
05 Affected products
VendorProductVersionsPlatforms
06 References
- github.comhttps://github.com/antirez/linenoise/blob/master/linenoise.c#L1321
- github.comhttps://github.com/antirez/linenoise/pull/202
- github.comhttps://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321
- github.comhttps://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
07 Remediation
call fchmod() on the fd instead of chmod() on the path