CVE-2021-30004: In wpa_supplicant and hostapd 2.9, forging attacks may occur because AlgorithmIdentifier parameters are mishan
CVE-2021-30004 is a medium-severity flaw (CVSS 5.3) affecting hostapd, wpa supplicant. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
In wpa_supplicant and hostapd 2.9, forging attacks may occur because AlgorithmIdentifier parameters are mishandled in tls/pkcs1.c and tls/x509v3.c.
Why this priority
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.6% (top 24%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2021-04-02 |
| Last modified | 2026-07-07 |
Last updated 2026-07-07 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-30004?
hostapd: downgrade or apply the listed mitigation; wpa supplicant: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-30004 being exploited?
CVE-2021-30004 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-30004 affect?
CVE-2021-30004 affects hostapd, wpa supplicant. Severity is medium (CVSS 5.3). In wpa_supplicant and hostapd 2.9, forging attacks may occur because AlgorithmIdentifier parameters are mishandled in tls/pkcs1.c and tls/x509v3.c.
How urgent is CVE-2021-30004?
Priority 43/100. Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-58374 MEDIUM 6.5 UPGRADE In hostapd before 2.12, a missing bounds check in AP-mode Wi-Fi 7 (IEEE 802.11be) Multi-Link Operation (MLO) a
- CVE-2022-37660 MEDIUM 6.5 UPGRADE In hostapd 2.10 and earlier, the PKEX code remains active even after a successful PKEX association
- CVE-2022-23304 CRITICAL 9.8 UPGRADE UPGRADE The implementations of EAP-pwd in hostapd before 2.10 and wpa_supplicant before 2.10 are vulnerable to side-ch
- CVE-2022-23303 CRITICAL 9.8 UPGRADE UPGRADE The implementations of SAE in hostapd before 2.10 and wpa_supplicant before 2.10 are vulnerable to side channe
- CVE-2025-24912 LOW 3.7 UPGRADE hostapd fails to process crafted RADIUS packets properly