Miggo Logo

CVE-2022-22885: Improper Certificate Validation in Hutool

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.68033%
Published
2/17/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
cn.hutool:hutool-httpmaven< 5.7.195.7.19

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper certificate validation in Hutool's HTTP client. The GHSA advisory references DefaultSSLInfo in its documentation links, which is responsible for SSL configuration. In secure implementations, SSLContext initialization requires proper TrustManager configuration. The vulnerability's nature (ignoring all validation) strongly suggests DefaultSSLInfo's SSLContext creation method was using a TrustManager that bypassed certificate checks (e.g., TrustAllManager). This matches the CWE-295 pattern and aligns with the fixed version's likely correction to implement proper certificate validation.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*utool v*.*.**'s *ttpR*qu*st w*s *is*ov*r** to i*nor* *ll TLS/SSL **rti*i**t* v*li**tion.

Reasoning

T** vuln*r**ility st*ms *rom improp*r **rti*i**t* v*li**tion in *utool's *TTP *li*nt. T** **S* **visory r***r*n**s ****ultSSLIn*o in its *o*um*nt*tion links, w*i** is r*sponsi*l* *or SSL *on*i*ur*tion. In s**ur* impl*m*nt*tions, SSL*ont*xt initi*liz*