Advisory

GHSA-x89h-7h96-v88f

Details, part 3 of 3. The advisory

Details

Resources

  • Source at pinned commit: https://github.com/schollz/croc/blob/b6f27da9401f2c3647c1adb6b77a46bb8c0923d2/src/croc/croc.go (prompt-gate ~L3405-3430; createEmptyFileAndFinish L3245-3280; recipientInitializeFile L3109-3160 (os.O_RDWR open at L3136-3138))
  • Exemption origin: https://github.com/schollz/croc/commit/b687778d ("bug fix: doesn't ask overwrite text Fixes #384", 2021-04-29)
  • createEmptyFileAndFinish origin (pre-gate, name-unrestricted until 615af377): https://github.com/schollz/croc/commit/6386e4a8
  • Refactor that kept the exemption filename-only: https://github.com/schollz/croc/commit/615af377 ("fix: gate overwrites and receive hash algorithms", 2026-08-29, first released v11.3.6)
  • Prior related disclosure (arbitrary file deletion via croc-marked-files.txt, fixed 11.0.3 by c0d51f0, different sink and mechanism): oss-sec 2026/Q3 #497 - https://seclists.org/oss-sec/2026/q3/497
  • Related prior advisory in the same class (sender-controlled names reaching the filesystem, fixed 9.6.16, does not cover this prompt bypass): GHSA-ppjh-xp5v-46wc (CVE-2023-43619)

Sources & licences