{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-42553","id":"CVE-2021-42553","title":"STM32 USB Host Library Buffer Overflow","description":"A buffer overflow vulnerability in stm32_mw_usb_host of STMicroelectronics in versions before 3.5.1 allows an attacker to execute arbitrary code when the descriptor contains more endpoints than USBH_MAX_NUM_ENDPOINTS. The library is typically integrated when using a RTOS such as FreeRTOS on STM32 MCUs.","descriptionLong":"A buffer overflow vulnerability in stm32_mw_usb_host of STMicroelectronics in versions before 3.5.1 allows an attacker to execute arbitrary code when the descriptor contains more endpoints than USBH_MAX_NUM_ENDPOINTS. The library is typically integrated when using a RTOS such as FreeRTOS on STM32 MCUs.","published":"2022-10-21T00:00:00.000Z","updated":"2026-10-20T14:28:24.838617270Z","reserved":"2021-10-15T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"NCSC.ch","metric":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"NCSC.ch"},"metrics":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"NCSC.ch"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"ncsc.ch"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"medium","products":["STMicroelectronics STM32Cube  STM32 USB Host Library"],"affectedProducts":[{"vendor":"STMicroelectronics STM32Cube ","product":"STM32 USB Host Library","defaultStatus":null,"versions":[{"version":"all","status":"affected","lessThan":"3.5.1","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-120"],"aliases":[],"references":[{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host","tags":["x_transferred","Product","package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01304,"epssPercentile":0.71137,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-42553","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42553","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-42553","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-42553","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}