CVE-2022-22885: Improper Certificate Validation in Hutool
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68033%
CWE
Published
2/17/2022
Updated
2/3/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
cn.hutool:hutool-http | maven | < 5.7.19 | 5.7.19 |
Vulnerability Intelligence
Miggo AI
Root 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.