CVE-2022-27820
Java vulnerability analysis and mitigation

Overview

OWASP Zed Attack Proxy (ZAP) through version 2022-03-21 contains a security vulnerability where it does not verify the TLS certificate chain of HTTPS servers. This vulnerability was assigned CVE-2022-27820 and was initially reported through BugCrowd (GitHub Issue, OSS Security).

Technical details

The vulnerability stems from ZAP's behavior of not validating certificate chains when connecting to HTTPS servers. When connecting to a server with a self-signed or invalid certificate, ZAP generates a valid certificate from its own certificate authority, which is then configured as trusted in the browser to enable TLS interception. This occurs without warning or verification of the original server's certificate chain (OSS Security).

Impact

The vulnerability exposes users to two main security risks: 1) Man-in-the-middle (MITM) attacks where sensitive information could be intercepted when using a browser through ZAP, particularly concerning for existing browser profiles and active sessions, and 2) DNS rebinding attacks against HTTPS services configured as default virtual hosts, which could potentially allow attackers to conduct password brute force attempts, send stored XSS payloads, or target internal network services (GitHub Issue).

Mitigation and workarounds

Two potential solutions were proposed: 1) Mirror the status of the original certificate chain by not generating a ZAP-signed certificate when the HTTPS server presents an untrusted certificate chain, and replicating the validity period of the original certificate, or 2) Reject invalid certificate chains entirely, similar to mitmproxy's approach of returning a 502 error with an explanation of the certificate verification failure (GitHub Issue).

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-2025-14306CRITICAL10
  • JavaJava
  • net.sf.robocode:robocode.core
NoYesDec 09, 2025
CVE-2025-14307CRITICAL9.3
  • JavaJava
  • net.sf.robocode:robocode.battle
NoYesDec 09, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • at.yawk.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
GHSA-93fv-4pm9-xp28MEDIUM6.9
  • JavaJava
  • net.dv8tion:jda
NoYesDec 09, 2025

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