CVE-2026-82481
—Directory Traversal in cohttp (OCaml) Allows Arbitrary File Read
CVE-2026-82481 is a directory traversal flaw (CWE-180, incorrect handling of relative paths) in the cohttp HTTP library for OCaml, fixed in version 6.3.0. A remote, unauthenticated attacker can send crafted HTTP requests containing relative path components (such as ../ sequences) that escape the intended directory root, and the library resolves them incorrectly. The CVSS 4.0 vector shows network attack with no privileges or user interaction and high confidentiality impact only, meaning the attacker gains the ability to read arbitrary files accessible to the server process, such as configuration files or credentials, with no modification or disruption. Any application or service built with cohttp and using its HTTP server functionality to serve files from a directory is affected if it runs cohttp versions prior to 6.3.0. There is no known public proof-of-concept, the flaw is not listed in CISA KEV, and EPSS puts 30-day exploitation probability at only about 0.5%.
What to do: Upgrade any OCaml applications using cohttp to version 6.3.0 or later. If upgrading is not immediately possible, restrict or patch file-serving endpoints to normalize request paths and reject path components containing '..' before resolving them, and review which cohttp-based services are exposed to untrusted networks.
| cohttp project (OCaml) cohttp | all versions before 6.3.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
The cohttp package before 6.3.0 for OCaml allows directory traversal.
- Weakness
- CWE-180
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:A/V:D/RE:M/U:X
In the news0 stories
No ingested article mentions this CVE yet.