Improper Certificate Validation Affecting aws-crt package, versions <1.9.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-AWSCRT-1924913
  • published23 Nov 2021
  • disclosed23 Nov 2021
  • creditUnknown

Introduced: 23 Nov 2021

CVE-2021-40831  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade aws-crt to version 1.9.0 or higher.

Overview

aws-crt is a NodeJS/browser bindings to the aws-c-* libraries

Affected versions of this package are vulnerable to Improper Certificate Validation. It appends a user supplied Certificate Authority (CA) to the root CAs instead of overriding it on macOS systems. Additionally, SNI validation is also not enabled when the CA has been “overridden”. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system’s default trust-store. Attackers with access to a host’s trust stores or with ability to compromise a CA already in the host's trust store (note: the attacker must also be able to spoof DNS in this case) may be able to use this issue to bypass CA pinning.

CVSS Scores

version 3.1