Improper Certificate Validation Affecting wolfssl package, versions [5.6.4,)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (10th 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-CONAN-WOLFSSL-13057328
  • published26 Sept 2025
  • disclosed18 Jul 2025
  • creditThomas Leong

Introduced: 18 Jul 2025

CVE-2025-7395  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade wolfssl to version or higher.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation via the certificate verification process on MacOS systems when built with both WOLFSSL_SYS_CA_CERTS and WOLFSSL_APPLE_NATIVE_CERT_VALIDATION options enabled. An attacker can impersonate a trusted server by presenting a certificate issued by a trusted certificate authority, regardless of the actual domain name. This occurs because the native trust store verification routine overrides errors produced elsewhere in the wolfSSL certificate verification process, including failures due to hostname matching/SNI, OCSP, CRL, etc.

Workaround

This vulnerability can be mitigated by manually loading CA certificates into the software instead of relying on native certificate verification.

CVSS Base Scores

version 4.0
version 3.1