CVE-2022-22885
Java vulnerability analysis and mitigation

Overview

Hutool v5.7.18's HttpRequest component was discovered to contain a security vulnerability that ignores all TLS/SSL certificate validation. This vulnerability was identified with CVE-2022-22885 and was disclosed on February 16, 2022. The issue affects the HttpRequest functionality in Hutool version 5.7.18 (MITRE).

Technical details

The vulnerability stems from the HttpRequest component's default behavior of using TrustAnyHostnameVerifier, which accepts all SSL/TLS certificates regardless of their validity. This implementation returns true for all hostname verifications, effectively bypassing the security checks meant to validate the authenticity of server certificates. The vulnerability has been assigned a CVSS v3 Base Score of 9.8 Critical, indicating its severe impact on security (AttackerKB).

Impact

The vulnerability's impact is significant as it could allow attackers to perform man-in-the-middle attacks by bypassing certificate validation. This means that malicious actors could potentially intercept and manipulate HTTPS traffic between the application and external servers without detection. The high CVSS score reflects the potential for complete compromise of confidentiality, integrity, and availability of the affected systems (MITRE).

Mitigation and workarounds

Users should update to a version of Hutool that properly implements certificate validation or explicitly configure their applications to use proper certificate validation mechanisms. When using HttpRequest, it is recommended to implement proper hostname verification by using javax.net.ssl.HttpsURLConnection.DefaultHostnameVerifier instead of the default TrustAnyHostnameVerifier (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-66516CRITICAL10
  • JavaJava
  • tika
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 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