Skip to main content

wolfSSL EUVDEUVD-2026-39555

| CVE-2026-6731 MEDIUM
Improper Certificate Validation (CWE-295)
2026-06-25 wolfSSL GHSA-9c3c-227q-3j67
6.0
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain subordinate CA signing capability
  2. Delivery
    Issue leaf cert with violating CN and no SAN extension
  3. Exploit
    Present crafted cert to wolfSSL-based TLS verifier
  4. Execution
    ConfirmNameConstraints skips CN evaluation (altNames == NULL)
  5. Persist
    Certificate accepted despite policy violation
  6. Impact
    Impersonate restricted domain to wolfSSL client or server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires two concurrent conditions: first, the verifying application must use wolfSSL's certificate manager (wolfSSL_CertManagerVerifyBuffer or equivalent) to validate a certificate chain that includes at least one CA certificate carrying a DNS name constraints extension; second, the malicious leaf certificate must omit the SAN extension entirely (cert->altNames == NULL) while placing the policy-violating name solely in the Subject CN field. Certificates that include a SAN extension are correctly evaluated against name constraints and are not affected - the bypass is specific to the SAN-absent fallback path. Exploitation is further limited by the requirement that the attacker must be able to obtain or produce a certificate signed by a CA within the constrained hierarchy (i.e., a compromised or cooperating subordinate CA, or a CA that does not enforce its own name constraint policy at issuance time). Deployments using unconstrained CAs - which covers most public internet TLS - are unaffected because no name constraint extension is present to bypass.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N) scores 6.0 and reflects a meaningful but bounded integrity risk: network-reachable, low privilege, but requiring an attack prerequisite (AT:P) - specifically, the attacker must be able to issue or obtain a certificate under a name-constrained CA hierarchy. This precondition substantially limits the realistic attacker population: exploitation requires either compromise of a subordinate CA, access to an unconstrained intermediate, or participation in a PKI where the constraining CA itself is misconfigured. The integrity impact is high (VI:H) because a successful bypass allows a certificate with a CN violating the CA's domain policy to pass validation, enabling host impersonation within wolfSSL-protected TLS sessions. No KEV listing and no public POC are present in the input data, and EPSS data was not provided - meaning real-world exploitation frequency is unknown but not confirmed active. The risk is real for any deployment that relies on name-constrained CAs for policy enforcement (e.g., enterprise PKI, government PKI, IoT device provisioning); it is lower for deployments using unconstrained CAs (which represents the majority of public web PKI usage). CVSS vector consistency is internally sound: the integrity-only impact correctly captures that this is an authentication/policy bypass, not data disclosure.

Exploit ScenarioDerived

An attacker with access to a subordinate CA operating under a name-constrained root (e.g., a corporate PKI that permits only *.corp.example.com) issues a leaf certificate with CN=attacker.evil.com and deliberately omits the SAN extension. When a wolfSSL-based TLS client or server verifies this certificate against the constrained CA chain, the ConfirmNameConstraints function skips CN evaluation because cert->altNames is NULL, and the certificate is accepted as valid despite the CN violating the permitted DNS namespace. The attacker can then use this certificate to impersonate any host within the constrained domain space from the perspective of wolfSSL verifiers.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 25, 2026

X.509 DNS name constraint enforcement in wolfSSL fails to evaluate the Subject Common Name when no Subject Alternative Name extension is present, allowing a certificate whose CN violates an issuing CA's DNS name constraints to be accepted as valid. Affected deployments include any application using wolfSSL's certificate manager for chain verification where name-constrained intermediate or root CAs are in use. An attacker who can obtain or forge a certificate with a non-compliant CN and no SAN can bypass the policy boundary the constraining CA was intended to enforce, enabling impersonation of hosts outside the permitted domain set. No public exploit identified at time of analysis; upstream fix available as a GitHub pull request.

RemediationAI

Apply the upstream fix from wolfSSL GitHub pull request #10223 (https://github.com/wolfSSL/wolfssl/pull/10223) once it is merged and incorporated into a tagged release; monitor https://www.wolfssl.com/docs/security-vulnerabilities/ for the official advisory and released version number. Until a patched release is available, compensating controls include: (1) Avoiding reliance on name-constrained CA hierarchies for access control in wolfSSL-based deployments - this removes the policy mechanism that the bypass circumvents, though it weakens PKI policy enforcement overall; (2) Requiring the presence of a SAN extension in all issued leaf certificates within constrained hierarchies, since the bypass only activates when cert->altNames == NULL - this can be enforced at the issuing CA's certificate profile configuration; (3) Performing an additional application-layer hostname verification step independent of wolfSSL's certificate manager when name constraints are security-critical. Note that workaround (1) removes a security control rather than adding one and should be considered a temporary measure only.

Affected VersionsENISA

wolfSSL 3.9.10 ≤5.9.1

Affected Packages

euvd wolfssl no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

wolfSSL (cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*) is an embedded TLS/SSL library commonly deployed in IoT, automotive, and resource-constrained environments. RFC 5280 defines X.509 name constraints as a CA extension that restricts the namespace of subordinate certificates. Per RFC 6125, when a certificate has no SAN extension, hostname verification implementations MAY fall back to matching against the Subject CN as a DNS name. The vulnerability (CWE-295: Improper Certificate Validation) resides in wolfcrypt/src/asn.c within the ConfirmNameConstraints function: prior to the fix introduced in PR #10223, a code comment acknowledged the gap ('Should it also consider CN in subject?') but left the CN unchecked when cert->altNames == NULL. The fix adds a conditional block that, when no altNames are present and cert->subjectCN is non-null, constructs a synthetic DNS-type name record from the CN and applies it to the existing name-constraint evaluation logic. This means the bypass is configuration-independent and affects the core ASN.1 path validation logic.

Know when Wolfssl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wolfSSL) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

AC:H reflects the prerequisite of CA issuance access within a constrained hierarchy; PR:L because subordinate CA or cert-issuance privilege is required; no confidentiality or availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

X.509 name constraint bypass via the Subject Common Name when treated as a DNS-type name. A certificate whose Subject CN violates an issuing CA's DNS name constraints could be accepted.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
widely used embedded TLS library, especially in IoT and automotive
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2017-13099 HIGH POC
7.5 Dec 13

wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i

CVE-2017-2800 CRITICAL POC
9.8 May 24

A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting

CVE-2026-89136 HIGH POC
8.3 Sep 27

Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve

CVE-2026-93302 HIGH POC
8.3 Sep 27

wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C

CVE-2026-89102 HIGH POC
8.3 Sep 27

Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce

CVE-2015-6925 HIGH POC
7.5 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra

CVE-2022-39173 HIGH POC
7.5 Sep 29

In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (

CVE-2022-38152 HIGH POC
7.5 Aug 31

An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2020-11713 HIGH POC
7.5 Apr 12

wolfSSL 4.3.0 has mulmod code in wc_ecc_mulmod_ex in ecc.c that does not properly resist timing side-channel attacks. Ra

CVE-2019-18840 HIGH POC
7.5 Nov 09

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh

CVE-2020-15309 HIGH POC
7.0 Aug 21

An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).

CVE-2020-24613 MEDIUM POC
6.8 Aug 24

wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy