CVE-2026-56822
Java vulnerability analysis and mitigation

Overview

CVE-2026-56822 is a Time-of-Check Time-of-Use (TOCTOU) race condition in Netty's OcspServerCertificateValidator component, affecting the Maven package io.netty:netty-handler-ssl-ocsp. The flaw causes the SslHandshakeCompletionEvent to be forwarded to downstream pipeline handlers before the asynchronous OCSP certificate revocation check completes, allowing sensitive application data to be transmitted to a server with a revoked certificate. Affected versions include all releases < 4.1.136.Final and >= 4.2.0.Final, < 4.2.16.Final. The vulnerability was published on July 14, 2026, and added to the GitHub Advisory Database on July 22, 2026, with a CVSS v3.1 base score of 7.4 (High) (Github Advisory, Netty Advisory).

Technical details

The root cause is a TOCTOU race condition (CWE-367) in io.netty.handler.ssl.ocsp.OcspServerCertificateValidator#userEventTriggered. When an SslHandshakeCompletionEvent is received, the validator immediately calls ctx.fireUserEventTriggered(evt) to notify downstream handlers that the TLS handshake succeeded, and only then initiates an asynchronous OCSP query via OcspClient.query. This ordering means downstream handlers may begin sending or receiving application data before the OCSP response is evaluated. If the OCSP response later indicates the server certificate is REVOKED, the channel is closed — but the data exchange has already occurred. A proof-of-concept test case is included in the advisory, demonstrating that a client sends SECRET_DATA to a server before the OCSP check can intervene (Github Advisory, Netty Advisory).

Impact

Exploitation allows a malicious server operating with a revoked TLS certificate to receive sensitive application data (e.g., HTTP requests, credentials, session tokens) from a Netty client during the window between TLS handshake completion and OCSP validation failure. Conversely, the client may also process and act upon malicious responses sent by the revoked server during this window, creating both confidentiality and integrity risks. Availability is not directly impacted. Only client applications that use OcspServerCertificateValidator for server certificate revocation enforcement are affected (Github Advisory).

Exploitation steps

  1. Setup malicious server: Obtain or generate a TLS certificate that has been revoked by its issuing CA, and configure a server (e.g., a Java TLS server) to present this revoked certificate during the handshake.
  2. Target vulnerable client: Identify a Netty-based client application (using io.netty:netty-handler-ssl-ocsp versions < 4.1.136.Final or >= 4.2.0.Final, < 4.2.16.Final) that uses OcspServerCertificateValidator for OCSP-based revocation checking.
  3. Intercept or serve connection: Position the malicious server to accept connections from the target client (e.g., via DNS spoofing, BGP hijacking, or direct exposure).
  4. Complete TLS handshake: Allow the TLS handshake to complete normally. The vulnerable OcspServerCertificateValidator will immediately fire SslHandshakeCompletionEvent downstream before initiating the OCSP check.
  5. Receive sensitive data: During the window before the asynchronous OCSP query returns a REVOKED status, the client's downstream handlers send application data (e.g., HTTP requests containing credentials or session tokens) to the malicious server. The server receives and logs this data.
  6. Optionally inject malicious response: Before the channel is closed by the OCSP failure, the malicious server can also send crafted application-layer responses that the client may process.
  7. Channel closure: The OCSP check eventually returns REVOKED and closes the channel, but the data exchange has already occurred (Github Advisory, Netty Advisory).

Indicators of compromise

  • Network: Outbound TLS connections from Netty client applications to servers presenting revoked certificates, followed by abrupt channel closure shortly after handshake completion; OCSP query traffic to unexpected or attacker-controlled OCSP responder endpoints.
  • Logs: Application logs showing TLS handshake success events immediately followed by channel close events with OCSP revocation errors; log entries indicating OcspServerCertificateValidator closing a channel after data was already written.
  • Application Behavior: Unexpected transmission of sensitive data (e.g., HTTP requests) to endpoints that subsequently close the connection; client-side errors indicating OCSP revocation failure after a brief period of apparent successful communication.

Mitigation and workarounds

Upgrade the io.netty:netty-handler-ssl-ocsp Maven dependency to the patched versions: 4.1.136.Final or 4.2.16.Final, which ensure the SslHandshakeCompletionEvent is only forwarded to downstream handlers after OCSP validation completes. No configuration-based workaround is documented; upgrading is the only recommended remediation. Applications not using OcspServerCertificateValidator are not affected (Netty 4.1.136 Release, Netty 4.2.16 Release, Github Advisory).

Community reactions

The advisory was published by Netty maintainer normanmaurer on July 14, 2026, and credited reporter violetagg for discovery. No significant broader media coverage or notable community commentary beyond the official advisory has been identified at this time (Netty Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54609HIGH8.6
  • JavaScript logoJavaScript
  • qti-neon
NoNoJul 28, 2026
CVE-2026-43910HIGH8.2
  • Java logoJava
  • io.appium:java-client
NoYesJul 28, 2026
CVE-2026-56822HIGH7.4
  • Java logoJava
  • cassandra-5.0
NoYesJul 29, 2026
CVE-2026-56821HIGH7.4
  • Java logoJava
  • apache-hop
NoYesJul 29, 2026
CVE-2026-59921MEDIUM5.7
  • Java logoJava
  • strimzi-kafka-operator-fips
NoYesJul 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management