Go
CVE-2026-119298
croc: Overwrite-confirmation bypass via a crafted "croc-stdin-" filename on receive
- Severity
- Medium 4.2
- Published
- 9 Nov 2026
- Last changed
- 9 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 11.5.2
- Exploit chance
- 0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- CWE-73
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Change some data · Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L- Also known as
- GHSA-x89h-7h96-v88f
- Sources
- OSV.dev and GitHub
Description
croc is an end-to-end encrypted peer-to-peer file transfer tool. On the receiving side, the confirmation that normally protects an existing file from being overwritten or resumed is skipped whenever the received file's name starts with croc-stdin-, regardless of whether the incoming transfer is actually a text transfer. A sender can therefore name a file croc-stdin- and silently overwrite, truncate, or replace an existing file of that name in the receiver's working directory - including removing the existing file and substituting a symlink - without the Overwrite? prompt that the standard path requires. The exemption was introduced to keep croc's internal text-transfer artifacts from triggering prompts, but it is keyed on the filename prefix rather than on the transfer type, so any ordinary file transfer can claim the exemption.
Affected code at commit b6f27da9401f2c3647c1adb6b77a46bb8c0923d2 (HEAD, v11.5.1+1):
Affected software
| Software | Affected versions |
|---|---|
github.com/schollz/crocGo · osv:Go:github.com/schollz/croc |
|
github.com/schollz/croc/v10Go · osv:Go:github.com/schollz/croc/v10 |
|
github.com/schollz/croc/v11Go · osv:Go:github.com/schollz/croc/v11 |
|
github.com/schollz/croc/v6Go · osv:Go:github.com/schollz/croc/v6 |
|
github.com/schollz/croc/v8Go · osv:Go:github.com/schollz/croc/v8 |
|
github.com/schollz/croc/v9Go · osv:Go:github.com/schollz/croc/v9 |
|
About github.com/schollz/croc
This is the only vulnerability in github.com/schollz/croc in our list.
About github.com/schollz/croc/v10
This is the only vulnerability in github.com/schollz/croc/v10 in our list.
About github.com/schollz/croc/v11
This is the only vulnerability in github.com/schollz/croc/v11 in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119298
- GitHub Advisory Database https://github.com/advisories/GHSA-x89h-7h96-v88f