Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-82481 – Directory Traversal – cohttp (OCaml) before 6.3.0

Be the first to know when new zero-days emerge:

Summary

CVE-2026-82481 is a directory traversal vulnerability in cohttp, a widely used HTTP library for OCaml, affecting all versions prior to 6.3.0. The flaw resides in the Cohttp.Path.resolve_local_file helper function used by cohttp-based static file servers (including cohttp-lwt, cohttp-async, and cohttp-mirage) to map incoming request URIs to local filesystem paths. An unauthenticated remote attacker can exploit this to read files outside the intended document root, and the issue has been rated HIGH severity with a CVSS score of 8.7.

Technical details

  • Root cause: Cohttp.Path.resolve_local_file removed . and .. path segments before percent-decoding the request URI, rather than decoding first. This allowed percent-encoded traversal sequences (e.g. ..%2f..%2f) to bypass the directory-escape checks, since the literal .. was not visible to the sanitization logic until after it had already been evaluated. Additionally, empty path segments and trailing slashes were not properly normalized, further weakening path validation.
  • CWE classification: CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize).
  • Trigger conditions: Any application built on cohttp that serves static files from a document root using resolve_local_file (or that relies on similar un-normalized path handling for access-control decisions) is affected.
  • Attack vector: Network — an attacker sends a crafted HTTP request containing percent-encoded directory traversal sequences to a cohttp-based web server.
  • Impact: Disclosure of arbitrary files readable by the server process outside the configured document root (high confidentiality impact); no reported impact to integrity or availability.

Affected software

  • cohttp (OCaml/opam package cohttp) — all versions prior to 6.3.0
  • Downstream libraries built on the same path-resolution logic: cohttp-lwt, cohttp-async, cohttp-mirage (including its static file server)
  • Note: cohttp-eio uses an independent path-resolution implementation and is not affected by this specific issue

Severity

  • CVSS Score: 8.7 (High)
  • CVSS 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
  • Network attack vector, low attack complexity, no privileges or user interaction required, high confidentiality impact.

Mitigation and recommended actions

  • Immediate: Upgrade cohttp and any dependent packages (cohttp-lwt, cohttp-async, cohttp-mirage) to version 6.3.0 or later, which percent-decodes the request path exactly once before removing ./.. segments and normalizes empty segments and trailing slashes.
  • For custom access-control logic: Applications that make authorization decisions based on raw request paths should adopt the new Cohttp.Path.normalise function to obtain a properly decoded and normalized path before performing path-segment comparisons (e.g., checking for an "admin" prefix), rather than parsing the raw, potentially encoded URI.
  • If immediate upgrade is not possible: Restrict or validate incoming request paths at a reverse proxy or WAF layer to reject requests containing percent-encoded traversal sequences (%2e%2e, ..%2f, etc.) destined for cohttp-based backends, and ensure the server process runs with least-privilege filesystem access to limit the blast radius of any file disclosure.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge