cve.bz

CVE-2026-119298 schollz croc: External Control of File Name or Path

4.2 mediumEPSS 0.3%Fix available

Medium (4.2) in schollz croc. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/schollz/croc/v11 11.5.2.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-73 External Control of File Name or Path
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/schollz/croc/v11 (Go): fixed in 11.5.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-119298 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-119298?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-119298?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-119298 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
schollz croc< 11.5.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x89h-7h96-v88fGogithub.com/schollz/croc/v11<11.5.211.5.2
GHSA-x89h-7h96-v88fGogithub.com/schollz/croc/v10<=10.7.0no fix published
GHSA-x89h-7h96-v88fGogithub.com/schollz/croc/v9<=9.6.17no fix published
GHSA-x89h-7h96-v88fGogithub.com/schollz/croc/v8<=8.6.12no fix published
GHSA-x89h-7h96-v88fGogithub.com/schollz/croc/v6<=6.4.11no fix published
GHSA-x89h-7h96-v88fGogithub.com/schollz/croc<=3.0.6no fix published

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this vulnerability as having a Moderate severity because exploitation requires explicit recipient approval to initiate the session, and the blast radius is strictly limited to pre-existing files adhering to a specific prefix. An attacker cannot traverse outside the current target directory or silently overwrite arbitrary filenames. Moreover, croc is an interactive command-line utility that is not included in Red Hat Enterprise Linux or core enterprise server environments.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-119298.

Attack patterns (CAPEC)

  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON