Miggo Logo

CVE-2021-40831: Improper certificate management in AWS IoT Device SDK v2

6.3

CVSS Score
3.1

Basic Information

EPSS Score
0.50855%
Published
11/24/2021
Updated
11/18/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdkmaven< 1.5.01.5.0
aws-iot-device-sdk-v2npm< 1.6.01.6.0
awsiotsdkpip< 1.7.01.7.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly states the 'aws_tls_ctx_options_override_default_trust_store_*' functions were updated to fix the issue. These functions handle trust store configuration, and their flawed macOS implementation caused improper certificate validation by appending rather than replacing system CAs. The confidence is high because the advisory directly links the vulnerability to these functions, and the commit diffs show updates to underlying dependencies (aws-crt) that would include fixes to these functions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** *WS IoT **vi** S*K v* *or J*v*, Pyt*on, *++ *n* No**.js *pp*n*s * us*r suppli** **rti*i**t* *ut*ority (**) to t** root **s inst*** o* ov*rri*in* it on m**OS syst*ms. ***ition*lly, SNI v*li**tion is *lso not *n**l** w**n t** ** **s ***n "ov*rri***

Reasoning

T** vuln*r**ility **s*ription *xpli*itly st*t*s t** '*ws_tls_*tx_options_ov*rri**_****ult_trust_stor*_*' *un*tions w*r* up**t** to *ix t** issu*. T**s* *un*tions **n*l* trust stor* *on*i*ur*tion, *n* t**ir *l*w** m**OS impl*m*nt*tion **us** improp*r