{"api_version":"1","generated_at":"2026-04-23T01:19:43+00:00","cve":"CVE-2021-42553","urls":{"html":"https://cve.report/CVE-2021-42553","api":"https://cve.report/api/cve/CVE-2021-42553.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-42553","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-42553"},"summary":{"title":"CVE-2021-42553","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.","state":"PUBLIC","assigner":"vulnerability@ncsc.ch","published_at":"2022-10-21 10:15:00","updated_at":"2023-03-07 13:15:00"},"problem_types":["CWE-120"],"metrics":[],"references":[{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","name":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","refsource":"CONFIRM","tags":[],"title":"Fix buffer overflow by Defonceuse · Pull Request #4 · STMicroelectronics/stm32_mw_usb_host · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host","name":"https://github.com/STMicroelectronics/stm32_mw_usb_host","refsource":"MISC","tags":[],"title":"GitHub - STMicroelectronics/stm32_mw_usb_host: Provides the USB Host library part of the STM32Cube MCU Component \"middleware\" for all STM32xx series.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42553","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42553","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"github.com/Defonceuse","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"42553","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"st","cpe5":"stm32_mw_usb_host","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"vulnerability@ncsc.ch","ID":"CVE-2021-42553","STATE":"PUBLIC","TITLE":"STM32 USB Host Library Buffer Overflow"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"STM32 USB Host Library","version":{"version_data":[{"version_affected":"<","version_name":"all","version_value":"3.5.1"}]}}]},"vendor_name":"STMicroelectronics STM32Cube "}]}},"credit":[{"lang":"eng","value":"github.com/Defonceuse"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"PHYSICAL","availabilityImpact":"HIGH","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"buffer overflow"}]}]},"references":{"reference_data":[{"name":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","refsource":"CONFIRM","url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4"},{"name":"https://github.com/STMicroelectronics/stm32_mw_usb_host","refsource":"MISC","url":"https://github.com/STMicroelectronics/stm32_mw_usb_host"}]},"source":{"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-10-21 10:15:00","lastModifiedDate":"2023-03-07 13:15:00","problem_types":["CWE-120"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:st:stm32_mw_usb_host:-:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"42553","Ordinal":"219043","Title":"CVE-2021-42553","CVE":"CVE-2021-42553","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"42553","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}