---
id: CVE-2026-119298
title: >-
  croc: Overwrite-confirmation bypass via a crafted "croc-stdin-" filename on
  receive
summary: >-
  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…
severity: medium
cvss: 4.2
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L'
cvssSource: cna
cwe:
  - CWE-73
vendor: schollz
product: croc
affected:
  - croc < 11.5.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-30T18:25:15.351502Z'
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T18:35:53.606Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119298'
references:
  - url: 'https://github.com/schollz/croc/security/advisories/GHSA-x89h-7h96-v88f'
    label: 'https://github.com/schollz/croc/security/advisories/GHSA-x89h-7h96-v88f'
  - url: 'https://github.com/schollz/croc/pull/1327'
    label: 'https://github.com/schollz/croc/pull/1327'
  - url: >-
      https://github.com/schollz/croc/commit/25fe49b6f14db99f517e902cfef76299ad0a95a3
    label: >-
      https://github.com/schollz/croc/commit/25fe49b6f14db99f517e902cfef76299ad0a95a3
  - url: 'https://github.com/schollz/croc/releases/tag/v11.5.2'
    label: 'https://github.com/schollz/croc/releases/tag/v11.5.2'
tags:
  - cve.org
epss: 0.00302
epssPercentile: 0.23046
ingestedAt: '2026-11-05T16:24:31.332Z'
---

## Overview

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.

## Affected

- `croc < 11.5.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
