Bug 2588739 (CVE-2026-142447)

Summary: CVE-2026-142447 io.netty/netty-handler-ssl-ocsp: Netty: OcspServerCertificateValidator still delivers buffered data from a revoked peer after OCSP fails
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: fmariani, gmalinko, janstey, jwon, mcarlett, pjindal, rstepani, tcunning, tmielke, yfang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in netty-handler-ssl-ocsp. A remote attacker presenting a revoked security certificate can bypass security controls during Online Certificate Status Protocol (OCSP) verification. Due to improper data handling when processing revoked certificates, initial application data sent immediately after the Transport Layer Security (TLS) handshake is delivered to downstream application handlers before the connection is terminated. This flaw allows an attacker to conduct a man-in-the-middle attack and cause the application to accept initial data from an invalid server.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-02 16:50:08 UTC
OcspServerCertificateValidator in netty-handler-ssl-ocsp is meant to hold back application data until OCSP confirms the peer certificate is valid. The earlier fix for CVE-2026-56822 changed the handler to extend ByteToMessageDecoder, which buffers inbound data while the OCSP query is in flight. However, once the query completes, the handler is always removed from the pipeline, even when the certificate status is not valid. Removal causes ByteToMessageDecoder to flush the buffered bytes to the next handler. When the status is REVOKED and closeAndThrowIfNotValid is true (the default), the channel close is processed asynchronously. The buffered data from the revoked peer is therefore delivered to downstream handlers before the channel-inactive event fires.

A server presenting a revoked certificate can thus still deliver the first application data it sends after the TLS handshake, such as an SMTP, FTP, IMAP or POP3 banner or other early responses, into the client's pipeline. This bypasses the fail-closed behavior that clients enabled the validator to obtain, and allows a revoked certificate to be used in a man-in-the-middle attack. This is an incomplete fix for CVE-2026-56822.

This affects users of netty-handler-ssl-ocsp that install OcspServerCertificateValidator on client pipelines, in versions up to and including 4.1.138.Final and from 4.2.0.Final through 4.2.18.Final. The default configuration (closeAndThrowIfNotValid=true) is affected. The issue is fixed in 4.1.139.Final and 4.2.19.Final.

Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <= 4.1.138.Final
Patched versions: 4.2.19.Final; 4.1.139.Final
CVSS: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N (8.3)
CWE: CWE-367
Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-m3w2-2657-46g8
CVE requested by the Netty Project via PSIRTSUPT-32166.