Skip to main content
← All vulnerabilities
CVE-2026-119298EUVD-2026-114188

croc: Overwrite-confirmation bypass via a crafted "croc-stdin-" filename on receive

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 11.5.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

The croc file-transfer tool (its receiving side) is affected. A remote sender can exploit a naming quirk to overwrite, truncate, or replace an existing file in the receiver's working directory without the usual overwrite confirmation, but only when the file name starts with "croc-stdin-" and the user has accepted the transfer.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • schollz croc

    fixed in 11.5.2

References 4

GitHub · schollz/croc