LibreSSL HTTP header injection in libcrypto OCSP requests
OpenBSD LibreSSL
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| OpenBSD LibreSSL |
| No fix yet |
Original description
LibreSSL through 4.4.0 contains a CRLF injection vulnerability in the libcrypto OCSP_sendreq_new() and OCSP_parse_url() functions, which write unvalidated request paths into the OCSP POST request line. Attackers can embed carriage return and line feed characters in a certificate's Authority Information Access OCSP URI to inject HTTP headers or split requests sent to responders and proxies.
From the CVE record · VulnCheck
References
- github.com/openbsd/src/commit/d3f7195f4849d8a699cea4a3a67677f4b3dc1591Patch
- github.com/openbsd/src/blob/3903c41d301d66facec69f7bf776b182cbc5ed62/lib/libcrypto/ocsp/ocsp_ht.c#L184
- ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.4.0-relnotes.txt
- github.com/libressl/portable
- vulncheck.com/advisories/libressl-through-4.4.0-crlf-injection-via-ocsp-sendreq-new-request-line
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118371.json
- nvd.nist.gov/vuln/detail/CVE-2026-118371