CRLF injection in OpenBSD LibreSSL OCSP request handling

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-118371?

CVE-2026-118371 is a vulnerability classified as Improper Neutralization of CRLF Sequences, affecting LibreSSL (affected versions: ≤ 4.4.0). This vulnerability is rated Medium, with a CVSS score of 6.3. Current sources do not report this vulnerability as exploited.

Overview

Original source data

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.

Affected products and scope

Every LibreSSL release from the start of the affected range up to and including the highest version named in the advisory is affected, across both the OpenBSD source tree and the portable packaging. Versions outside that range, meaning later releases that contain the fix, are unaffected by default. The vulnerable code is in libcrypto's OCSP client path, so only deployments where LibreSSL actually performs OCSP lookups against responder URLs taken from certificates exercise it. Applications that never enable OCSP checking, or that only ever check certificates whose Authority Information Access extension you control, do not reach the flaw.

Technical details

The weakness is CWE-93, improper neutralization of CRLF sequences. It sits in libcrypto's OCSP-over-HTTP code: the functions OCSP_sendreq_new() and OCSP_parse_url() take the request path derived from the OCSP URI and place it into the POST request line sent to the responder, without rejecting embedded carriage return and line feed characters. The OCSP URI is not hard-coded by the application; it is read from the Authority Information Access extension of the certificate being checked. That makes the certificate the input channel. A URI containing CRLF sequences breaks out of the request line, and the bytes that follow are interpreted by the receiving HTTP parser as headers or as the start of a second request.

Exploitability

The attack vector is network-based and needs no privileges and no user interaction on the client side. It does require attack prerequisites: a certificate carrying a crafted Authority Information Access OCSP URI has to reach a LibreSSL client that performs OCSP checking, which is why the record does not treat this as trivially exploitable. No exploitation in the wild is reported, no public exploit is listed, and the predicted exploitation activity is low. A patch exists.

Technical impact

An attacker gains control over the structure of the HTTP request that a LibreSSL-based client sends to an OCSP responder or through an intermediary proxy. In practical terms that means injected headers, or a request split that the recipient parses as more than one message. The record assigns no confidentiality or availability impact and only a limited integrity impact, so nothing here supports reading response data, impersonating a responder to the client, or running code. The effect is bounded by what the receiving HTTP stack does with the malformed request.

Business impact

The exposure is the HTTP conversation LibreSSL has with an OCSP responder, and with any proxy sitting between the client and that responder. An attacker able to influence the certificate can shape what that request looks like on the wire, so the responder or proxy may act on headers the client never intended to send, or see two requests where one was issued. That is an integrity problem on the revocation-checking path, not a route to reading data or executing code, and the record describes no availability impact. Teams that should care are the ones shipping LibreSSL inside an appliance, agent, container image or packaged product, and the ones operating responders or forward proxies that receive OCSP traffic from LibreSSL clients. Revocation checking is part of how certificate validation is described to auditors and customers, so unexplained behaviour on that path is a question you may have to answer.

Remediation

Update LibreSSL to a release that includes the fix, then rebuild and redistribute anything that statically links or bundles it. The record marks a patch as available and points to the upstream source commit, so the fixed code is public. Ports and packages that vendor LibreSSL need the same treatment from their maintainers, and embedded products need a firmware or application update rather than a configuration change. The record describes no configuration workaround, so patching is the action; staying on an affected release leaves the request-building path unchanged.

Detection

On the responder and proxy side, inspect OCSP request logs for request lines containing raw or encoded carriage return and line feed sequences, for header lines that do not belong to a normal OCSP POST, and for connections where more than one request arrives when the client should have sent one. HTTP parsers that log the full request line and headers are the useful source here, since a rejected or mangled request is itself a signal. On the client side, inventory which software links LibreSSL and whether it performs OCSP checking at all, and review certificates presented to those clients for Authority Information Access OCSP URLs containing control characters. Correlating an odd request at the responder with the certificate that triggered it is what turns a log line into an answer.

Sources (10)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.