Description
The cohttp package before 6.3.0 for OCaml allows directory traversal.
Published: 2026-08-29
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The cohttp package for OCaml, prior to version 6.3.0, contains a directory traversal vulnerability rooted in CWE‑180. An attacker through crafted input can cause the server to read files outside the intended directory, potentially exposing sensitive data such as configuration files, logs, or private source code.

Affected Systems

Mirage’s cohttp library, used in OCaml projects, is affected in all releases before 6.3.0. No other vendor or product is listed. If a system incorporates an older cohttp dependency, it is vulnerable.

Risk and Exploitability

The CVSS score is 8.7, indicating high severity, although no EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is remote: an attacker sends a request that contains a path containing ".." or other traversal sequences. If the application exposes cohttp to unauthenticated users, the attacker may read arbitrary files; if authentication is required, the risk is still high but mitigated to the extent that the attacker has valid credentials. The lack of exploitation data suggests that the vulnerability may not be widely used yet, but its high severity warrants immediate action.

Generated by OpenCVE AI on August 29, 2026 at 16:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade cohttp to version 6.3.0 or later.
  • Disallow or restrict any paths that may be exposed via cohttp if an upgrade is postponed.
  • Validate and sanitize all request paths, rejecting any that contain traversal sequences such as "..".

Generated by OpenCVE AI on August 29, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 29 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Title Directory Traversal Vulnerability in Mirage CoHTTP Before 6.3.0

Sat, 29 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Description The cohttp package before 6.3.0 for OCaml allows directory traversal.
Weaknesses CWE-180
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/AU:Y/R:A/V:D/RE:M'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-29T14:43:52.887Z

Reserved: 2026-08-29T14:43:52.512Z

Link: CVE-2026-82481

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-29T15:17:55.487

Modified: 2026-08-29T15:17:55.487

Link: CVE-2026-82481

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-29T17:00:05Z

Weaknesses
  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize