# CVE-2021-34259: A buffer overflow vulnerability in the USBHParseCfgDesc() function of STMicroelectronics STM32Cube Middleware v1.8.0 and below allows attac…

- Severity: Medium 6.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-22T19:40:34.000Z
- Modified: 2026-06-17T03:55:35.013Z
- Weaknesses: CWE-120
- Assigned by: mitre

## Description

A buffer overflow vulnerability in the USBH_ParseCfgDesc() function of STMicroelectronics STM32Cube Middleware v1.8.0 and below allows attackers to execute arbitrary code.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- st stm32cube_middleware: up to 1.8.0

## Every score

- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/STMicroelectronics/STM32CubeH7/issues/76> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-34259](https://www.cve.org/CVERecord?id=CVE-2021-34259), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-34259](https://nvd.nist.gov/vuln/detail/CVE-2021-34259), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-34259 · Whole record: https://cve.day/CVE-2021-34259.json · Rebuilt by cve.day 2026-11-25T22:58:02.844Z
