# CVE-2025-68474: ESF-IDF Has Out-of-Bounds Write in ESP32 Bluetooth AVRCP Vendor Command Handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v4.0, CNA) `CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:L`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-12-26T23:57:54.853Z
- **Modified:** 2026-10-07T13:10:00.713Z

## Who should check

- Anyone running espressif esp-idf \>= 5.5-beta1, \<= 5.5.1; \>= 5.4-beta1, \<= 5.4.3; \>= 5.3-beta1, \<= 5.3.4; \>= 5.2-beta1, \<= 5.2.6; \<= 5.1.6

## Description

ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.5.1, 5.4.3, 5.3.4, 5.2.6, 5.1.6, and earlier, in the avrc\_vendor\_msg() function of the ESP-IDF BlueDroid AVRCP stack, the allocated buffer size was validated using AVRC\_MIN\_CMD\_LEN (20 bytes). However, the actual fixed header data written before the vendor payload exceeds this value. This totals 29 bytes written before p\_msg-\>p\_vendor\_data is copied. Using the old AVRC\_MIN\_CMD\_LEN could allow an out-of-bounds write if vendor\_len approaches the buffer limit. For commands where vendor\_len is large, the original buffer allocation may be insufficient, causing writes beyond the allocated memory. This can lead to memory corruption, crashes, or other undefined behavior. The overflow could be larger when assertions are disabled.

## Affected and fixed versions

- espressif esp-idf: \>= 5.5-beta1, \<= 5.5.1; \>= 5.4-beta1, \<= 5.4.3; \>= 5.3-beta1, \<= 5.3.4; \>= 5.2-beta1, \<= 5.2.6; \<= 5.1.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68474. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68474.md
Affected: espressif esp-idf >= 5.5-beta1, <= 5.5.1; >= 5.4-beta1, <= 5.4.3; >= 5.3-beta1, <= 5.3.4; >= 5.2-beta1, <= 5.2.6; <= 5.1.6
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for espressif esp-idf: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68474 being exploited?

There is no confirmed exploitation: CVE-2025-68474 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68474?

Medium: CVSS 6.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-68474?

espressif esp-idf \>= 5.5-beta1, \<= 5.5.1; \>= 5.4-beta1, \<= 5.4.3; \>= 5.3-beta1, \<= 5.3.4; \>= 5.2-beta1, \<= 5.2.6; \<= 5.1.6.

### Is there a fix for CVE-2025-68474?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-68474?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/espressif/esp-idf/security/advisories/GHSA-43gh-7r4f-qp57>
- patch: <https://github.com/espressif/esp-idf/commit/0b0b59f2e19cb99dfa1b28c284d1c5c1d276a132>
- patch: <https://github.com/espressif/esp-idf/commit/565fa98d0cfd58102204c1cb636747e17ee59845>
- patch: <https://github.com/espressif/esp-idf/commit/8262ee807d5cd425f66304f703eeb3382fb888c0>
- patch: <https://github.com/espressif/esp-idf/commit/a6c1bc5e3e91ad1cb964ce2c178ee40a5d10a4a0>
- patch: <https://github.com/espressif/esp-idf/commit/aa0e3d75db995b7137b55349fc92ee684b47092d>
- patch: <https://github.com/espressif/esp-idf/commit/b9ba1e29b65536ab4b670ac099585d09adce0376>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68474>

HTML: <https://flawdb.com/CVE-2025-68474> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68474>
