Summary
croc: Overwrite-confirmation bypass via a crafted "croc-stdin-" filename on receive
Impact
An attacker who can send a file to a victim (croc's sender-is-untrusted model; the receiver accepts a transfer from them) can silently overwrite, truncate, or delete-and-replace an existing croc-stdin-* file in the receiver's working directory without the confirmation every other received name triggers. The attack needs the colliding file to already exist with an exact name the sender can predict; receiver-side text artifacts get unpredictable os.CreateTemp-style suffixes, so the practical target is a name the attacker knows (e.g. a file the user deliberately kept, or a name pattern from an earlier transfer the same peer sent). With the noisy prompt gone, the substitution is invisible to the user. Severity is bounded because the vulnerable names must start with the croc-stdin- prefix (dotfiles such as .bashrc cannot be named this way), so the attack cannot reach outside that namespace.
CVSS 3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - base score 5.4 (Medium).
- Attack Vector (AV): Network - the sender is a remote peer; no local access needed.
- Attack Complexity (AC): Low - a crafted basename and a normal file transfer; no special conditions.
- Privileges Required (PR): None - the sender has no account on the receiver.
- User Interaction (UI): Required - the victim must run croc receive and accept the transfer.
- Scope (S): Unchanged - the vulnerable component is the croc receiver itself.
- Confidentiality (C): None - no read primitive; planted symlink targets are confined to the receive directory.
- Integrity (I): Low - the modification is limited to files whose names carry the
croc-stdin-prefix, and it requires an exact-name collision with a pre-existing file; per CVSS 3.1, "can modify only certain files" is I:L - dotfiles such as.bashrcare unreachable. - Availability (A): Low - the truncate-to-empty and remove-and-replace branches leave the previous file unavailable or destroyed. CWE-693 (Protection Mechanism Failure) is the root-cause classification: the overwrite protection mechanism is bypassed by a sender-controlled filename; CWE-73 (External Control of File Name or Path) is the companion classification and is the GHSA-selectable one (CWE-693 is not in GitHub's selectable set), while CWE-22 (path traversal) is not accurate here because writes stay confined to the receive root. Alternative reading: if the bounded namespace is scored as full integrity within reach - total content replacement of every colliding
croc-stdin-*file - Integrity: High yieldsCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L= 7.1 (High).
CVE-2026-119298 has a CVSS score of 4.2 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (11.5.2); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
Frequently Asked Questions
- What is CVE-2026-119298? CVE-2026-119298 is a medium-severity security vulnerability in github.com/schollz/croc/v11 (go), affecting versions < 11.5.2. It is fixed in 11.5.2.
- How severe is CVE-2026-119298? CVE-2026-119298 has a CVSS score of 4.2 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which packages are affected by CVE-2026-119298?
github.com/schollz/croc/v11(go) (versions < 11.5.2)github.com/schollz/croc/v10(go) (versions <= 10.7.0)github.com/schollz/croc/v9(go) (versions <= 9.6.17)github.com/schollz/croc/v8(go) (versions <= 8.6.12)github.com/schollz/croc/v6(go) (versions <= 6.4.11)github.com/schollz/croc(go) (versions <= 3.0.6)
- Is there a fix for CVE-2026-119298? Yes. CVE-2026-119298 is fixed in 11.5.2. Upgrade to this version or later.
- Is CVE-2026-119298 exploitable, and should I be worried? Whether CVE-2026-119298 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-119298 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-119298? Upgrade
github.com/schollz/croc/v11to 11.5.2 or later.