# CVE-2026-119298: croc: Overwrite-confirmation bypass via a crafted "croc-stdin-" filename on receive

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-10-30T16:12:49.765Z
- Modified: 2026-11-23T20:41:36.549Z
- Also known as: GHSA-x89h-7h96-v88f, GO-2026-6958
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

croc is a tool that allows any two computers to simply and securely transfer files and folders. Prior to 11.5.2, the receive-side file-readiness loop in src/croc/croc.go treats any sender-controlled basename beginning with croc-stdin- as a trusted text-transfer artifact even when SendingText is false. This skips askReceiveOverwrite and rename handling for a predictable exact-name collision in the receiver's working directory, allowing a remote sender whose transfer the user accepts to overwrite or truncate a matching regular file through recipientInitializeFile, or to remove and replace a matching destination with an empty file or an in-directory symlink through createEmptyFileAndFinish, without confirmation. The impact is limited to pre-existing names in the croc-stdin- namespace that the sender can predict; other filenames retain the prompt, dotfiles outside that namespace are not reachable, and symlink targets remain confined to the receive directory. This issue is fixed in version 11.5.2.

(As written by CVE List.)

## Affected

- schollz croc: < 11.5.2
- github.com/schollz/croc/v11 (Go): before 11.5.2
- github.com/schollz/croc/v10 (Go): up to 10.7.0; all versions
- github.com/schollz/croc/v9 (Go): up to 9.6.17; all versions
- github.com/schollz/croc/v8 (Go): up to 8.6.12; all versions
- github.com/schollz/croc/v6 (Go): up to 6.4.11; all versions
- github.com/schollz/croc (Go): up to 3.0.6; all versions

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`

## References

- <https://github.com/schollz/croc/security/advisories/GHSA-x89h-7h96-v88f> (advisory, web)
- <https://github.com/schollz/croc/pull/1327> (fix, web)
- <https://github.com/schollz/croc/commit/25fe49b6f14db99f517e902cfef76299ad0a95a3> (fix, web)
- <https://github.com/schollz/croc/releases/tag/v11.5.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119298> (advisory)
- <https://github.com/schollz/croc> (package)

## Sources

- CVE List: [CVE-2026-119298](https://www.cve.org/CVERecord?id=CVE-2026-119298), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-x89h-7h96-v88f](https://github.com/advisories/GHSA-x89h-7h96-v88f), CC-BY-4.0, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-6958](https://pkg.go.dev/vuln/GO-2026-6958), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-119298](https://nvd.nist.gov/vuln/detail/CVE-2026-119298), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-119298 · Whole record: https://cve.day/CVE-2026-119298.json · Rebuilt by cve.day 2026-11-25T22:59:47.968Z
