{"schemaVersion":3,"id":"CVE-2021-30004","aliases":["ALPINE-CVE-2021-30004","MGASA-2021-0254","SUSE-SU-2021:1125-1","SUSE-SU-2021:1166-1","DEBIAN-CVE-2021-30004","openSUSE-SU-2021:0563-1"],"status":"published","duplicateOf":null,"title":null,"description":"In wpa_supplicant and hostapd 2.9, forging attacks may occur because AlgorithmIdentifier parameters are mishandled in tls/pkcs1.c and tls/x509v3.c.","dates":{"published":"2021-04-02T00:00:00.000Z","modified":"2026-07-07T18:29:25.266Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01637,"percentile":0.7598,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.04600000000000021,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01683},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01637,"percentile":0.7598}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01683,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01637,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01637,"percentile":0.7598}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"alpine","product":"hostapd","name":"hostapd","label":"hostapd","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/hostapd","purlType":"apk","versions":[{"text":"< 2.9-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-r3","eol":null,"hubHref":null},{"vendor":"alpine","product":"wpa_supplicant","name":"wpa_supplicant","label":"wpa_supplicant","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/wpa_supplicant","purlType":"apk","versions":[{"text":"< 2.9-r8","noFixRecorded":false,"fixedIn":null},{"text":"< 2.9-r11","noFixRecorded":false,"fixedIn":null},{"text":"< 2.9-r13","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-r8 | < 2.9-r11 | < 2.9-r13","eol":null,"hubHref":null},{"vendor":"debian","product":"wpa","name":"wpa","label":"wpa","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/wpa","purlType":"deb","versions":[{"text":"< 2:2.10-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:2.10-1","eol":null,"hubHref":null},{"vendor":"mageia","product":"hostapd","name":"hostapd","label":"hostapd","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/hostapd","purlType":"rpm","versions":[{"text":"< 2.9-1.3.mga7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-1.3.mga7","eol":null,"hubHref":null},{"vendor":"mageia","product":"wpa_supplicant","name":"wpa_supplicant","label":"wpa_supplicant","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/wpa_supplicant","purlType":"rpm","versions":[{"text":"< 2.9-1.5.mga7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-1.5.mga7","eol":null,"hubHref":null},{"vendor":"mageia","product":"hostapd","name":"hostapd","label":"hostapd","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/hostapd","purlType":"rpm","versions":[{"text":"< 2.9-5.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-5.1.mga8","eol":null,"hubHref":null},{"vendor":"mageia","product":"wpa_supplicant","name":"wpa_supplicant","label":"wpa_supplicant","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/wpa_supplicant","purlType":"rpm","versions":[{"text":"< 2.9-8.2.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-8.2.mga8","eol":null,"hubHref":null},{"vendor":"opensuse","product":"wpa_supplicant&distro=openSUSE Leap 15.2","name":"wpa_supplicant","label":"wpa_supplicant&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/wpa_supplicant&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 2.9-lp152.8.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-lp152.8.12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"wpa_supplicant&distro=SUSE Linux Enterprise Micro 5.0","name":"wpa_supplicant","label":"wpa_supplicant&distro=SUSE Linux Enterprise Micro 5.0","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/wpa_supplicant&distro=SUSE Linux Enterprise Micro 5.0","purlType":"rpm","versions":[{"text":"< 2.9-4.29.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-4.29.1","eol":null,"hubHref":null},{"vendor":"suse","product":"wpa_supplicant&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","name":"wpa_supplicant","label":"wpa_supplicant&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/wpa_supplicant&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","purlType":"rpm","versions":[{"text":"< 2.9-4.29.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-4.29.1","eol":null,"hubHref":null},{"vendor":"suse","product":"wpa_supplicant&distro=SUSE Linux Enterprise Server 12 SP5","name":"wpa_supplicant","label":"wpa_supplicant&distro=SUSE Linux Enterprise Server 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/wpa_supplicant&distro=SUSE Linux Enterprise Server 12 SP5","purlType":"rpm","versions":[{"text":"< 2.9-23.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-23.12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"wpa_supplicant&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","name":"wpa_supplicant","label":"wpa_supplicant&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/wpa_supplicant&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","purlType":"rpm","versions":[{"text":"< 2.9-23.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9-23.12.1","eol":null,"hubHref":null},{"vendor":"w1.fi","product":"hostapd","name":"hostapd","label":"hostapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.9","eol":null,"hubHref":"/vendor/w1fi/hostapd"},{"vendor":"w1.fi","product":"wpa_supplicant","name":"wpa supplicant","label":"wpa_supplicant","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.9","eol":null,"hubHref":"/vendor/w1fi/wpa_supplicant"}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://w1.fi/cgit/hostap/commit/?id=a0541334a6394f8237a4393b7372693cd7e96f15","label":"w1.fi/cgit/hostap/commit/?id=a0541334a6394f8237a4393b7372693cd7e96f15","hostname":"w1.fi","tags":["Patch","Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202309-16","label":"security.gentoo.org/glsa/202309-16","hostname":"security.gentoo.org","tags":["Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-30004","label":"security.alpinelinux.org/vuln/CVE-2021-30004","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0254.html","label":"advisories.mageia.org/MGASA-2021-0254.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29046","label":"bugs.mageia.org/show_bug.cgi?id=29046","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EXT3Y5NEGCCPGZ7FTYURPUBTHNNJA6MF/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["WEB"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/4XPNZHCXJ32COQGQ62HNGD6DHPO5E552/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["WEB","Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211125-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20211125-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1184348","label":"bugzilla.suse.com/1184348","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-30004","label":"www.suse.com/security/cve/CVE-2021-30004","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211166-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20211166-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-30004","label":"security-tracker.debian.org/tracker/CVE-2021-30004","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30004","label":"nvd.nist.gov/vuln/detail/CVE-2021-30004","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:0519-1","OPENSUSE-SU-2021:0545-1","OPENSUSE-SU-2024:10846-1","OPENSUSE-SU-2024:11515-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0519-1","OPENSUSE-SU-2021:0545-1","OPENSUSE-SU-2024:10846-1","OPENSUSE-SU-2024:11515-1"]},"timeline":[{"kind":"published","date":"2021-04-02T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-07T18:29:25.266Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:31:56.533Z","stale":false,"partial":false}}