CVE-2026-41083: Ocaml · Windows command execution via filename quotes
Affects ocamlSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium · fixed in d5c65dc0034fbd75f10c6b54028e8b2740a7b189 : update ocaml when convenient.
Data as of 10 Sep 2026, 13:26 UTC
- Patch
- Available – fixed in d5c65dc0034fbd75f10c6b54028e8b2740a7b189, ce6d0f7b67145debec57e296dcc49d8619259198, 39d3f110eab62ab9f3013bb5f084af2dc3e3bb08 +2
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
opamocamlpkg:opam/ocamlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in OCaml version 4.14.4. Users should upgrade to version 4.14.4 or later to remediate this vulnerability. The fix is documented in the official OCaml pull request https://github.com/ocaml/ocaml/pull/14853. No additional mitigations are indicated by the vendor advisory.
Description
A vulnerability in OCaml on Windows allows command injection via improper quoting of stdin/stdout/stderr filenames. The function Filename.quote_command does not sufficiently escape the '&' character, enabling an attacker to inject shell commands if they can control these file descriptors. This issue affects multiple OCaml versions prior to 4.14.4 and certain 5.x versions. A fix has been released in OCaml 4.14.4.