{"id":"CVE-2021-42553","state":"PUBLISHED","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.","publishedAt":"2022-10-21T00:00:00.000Z","updatedAt":"2025-05-07T20:10:49.445Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NCSC.ch"},"assigner":"NCSC.ch","products":["STMicroelectronics STM32Cube  STM32 USB Host Library"],"affected":[{"vendor":"STMicroelectronics STM32Cube ","product":"STM32 USB Host Library","versions":[{"version":"all","status":"affected","lessThan":"3.5.1","versionType":"custom"}]}],"references":["https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","https://github.com/STMicroelectronics/stm32_mw_usb_host"],"weaknesses":["CWE-120"],"ingestedAt":"2026-10-29T19:49:04.473Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/42xxx/CVE-2021-42553.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-42553","state":"PUBLISHED","datePublished":"2022-10-21T00:00:00.000Z","dateUpdated":"2025-05-07T20:10:49.445Z","assignerShortName":"NCSC.ch","assignerOrgId":"455daabc-a392-441d-aa46-37d35189897c","dateReserved":"2021-10-15T00:00:00.000Z"},"containers":{"cna":{"title":"STM32 USB Host Library Buffer Overflow","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"STMicroelectronics STM32Cube ","product":"STM32 USB Host Library","versions":[{"version":"all","status":"affected","lessThan":"3.5.1","versionType":"custom"}]}],"references":[{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4"},{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"PHYSICAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":6.8,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"buffer overflow"}]}],"providerMetadata":{"shortName":"NCSC.ch","orgId":"455daabc-a392-441d-aa46-37d35189897c","dateUpdated":"2023-03-07T00:00:00.000Z"},"credits":[{"lang":"en","value":"github.com/Defonceuse"}],"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","tags":["x_transferred"]},{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T03:38:49.280Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-07T20:06:01.309946Z","id":"CVE-2021-42553","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","type":"CWE","lang":"en","description":"CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-07T20:10:49.445Z"}}]}}}