Ocaml: Windows command execution via filename quotes. (CVE-2026-41083)
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.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-41083) arises because the quoting mechanism used by OCaml's Filename.quote_command on Windows does not properly escape the '&' character. This allows an attacker who can specify the stdin, stdout, or stderr of a program to inject additional shell commands. The advisory includes an example where an attacker uses the '&' character in a filename to execute the 'tasklist' command. The issue was reported in April 2026 and fixed in OCaml 4.14.4, with the fix merged in June 2026.
Potential Impact
An attacker able to control the stdin, stdout, or stderr parameters of a program executed via Filename.quote_command on Windows can execute arbitrary shell commands. This can lead to unauthorized command execution with the privileges of the OCaml process. The CVSS score is 6.1 (medium severity), reflecting local attack vector with low complexity and no user interaction required, impacting confidentiality and integrity.
Mitigation Recommendations
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.
Ocaml: Windows command execution via filename quotes. (CVE-2026-41083)
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.
CVSS v3.1
Score 6.1medium
Affected software
pkg:opam/ocamlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-41083) arises because the quoting mechanism used by OCaml's Filename.quote_command on Windows does not properly escape the '&' character. This allows an attacker who can specify the stdin, stdout, or stderr of a program to inject additional shell commands. The advisory includes an example where an attacker uses the '&' character in a filename to execute the 'tasklist' command. The issue was reported in April 2026 and fixed in OCaml 4.14.4, with the fix merged in June 2026.
Potential Impact
An attacker able to control the stdin, stdout, or stderr parameters of a program executed via Filename.quote_command on Windows can execute arbitrary shell commands. This can lead to unauthorized command execution with the privileges of the OCaml process. The CVSS score is 6.1 (medium severity), reflecting local attack vector with low complexity and no user interaction required, impacting confidentiality and integrity.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- OSEC-2026-05
- Osv Schema Version
- 1.7.4
- Aliases
- ["CVE-2026-41083"]
- Ecosystems
- ["opam"]
- Database Specific Severity
- null
- Cvss Version
- 3.1
Patch Information
Threat ID: 6aa2af57acd9273b4925a2df
Added to database: 09/10/2026, 13:23:35 UTC
Last enriched: 09/10/2026, 13:26:21 UTC
Last updated: 09/10/2026, 15:25:28 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.