{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-27840 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-27840 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-27840 is a medium-severity vulnerability in Espressif ESP32, published on 8 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-27840 and fix it if it is affected.\n\nWhat it is: CVE-2025-27840 is a medium-severity vulnerability in Espressif ESP32, published on 8 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-27840 in the wild and no public exploit code.\n\nAffected product: Espressif ESP32. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27840/ (Markdown: https://insights.sbomify.com/CVE-2025-27840/index.md)","id":"CVE-2025-27840","markdown":"https://insights.sbomify.com/CVE-2025-27840/index.md","name":"CVE-2025-27840","record":{"aliases":["GHSA-jfwf-rfmg-7f8m"],"analysis":{"component_type":"hardware_firmware","fix_type":"no_fix_stated","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"ESP32 firmware","requires_auth":"high_privilege","summary":"Hidden HCI commands in Espressif ESP32 chips allow attackers to write memory, potentially enabling code execution or privilege escalation.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"esp32_firmware","vendor":"espressif"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:P/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-912","name":"Hidden Functionality"}],"description":"Espressif ESP32 chips allow 29 hidden HCI commands, such as 0xFC02 (Write memory).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-03-09","github_poc":4,"max_poc_stars":13,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-03-30T16:12:10Z","kind":"github_poc","ref":"https://github.com/demining/Bluetooth-Attacks-CVE-2025-27840","stars":13,"title":"Bitcoin Cryptanalysis: CVE-2025-27840 Vulnerability in ESP32 Microcontrollers Puts Billions of IoT Devices at Risk via Wi-Fi \u0026 Bluetooth"},{"date":"2025-03-09T16:15:47Z","kind":"github_poc","ref":"https://github.com/em0gi/CVE-2025-27840","stars":11,"title":"Expanded version of the code shown at RootedCON redone in python - CVE-2025-27840"},{"date":"2025-04-08T14:27:06Z","kind":"github_poc","ref":"https://github.com/v3ilsm1th/CVE-2025-27840-WIP","stars":0,"title":"A Work-In-Progress for CVE-2025-27840 "},{"date":"2026-08-05T03:06:49Z","kind":"github_poc","ref":"https://github.com/JasonW88/esp32-cve-2025-27840-power-trace-experiment","stars":0,"title":"Firmware for getting a power trace of the behavior of the bluetooth module on the ESP32 when the ESP32 is sent the undocumented hci bluetooth commands (CVE-2025-27840). Uses ESP-IDF v5.0.8 and v5.0.9."}],"tier":"poc_unverified"},"has_fix":null,"headline":"Security feature bypass in ESP32","id":"CVE-2025-27840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":0,"n_references":15,"next":{"headline":"Information disclosure in n/a","id":"CVE-2025-27845"},"packages":[],"prev":{"headline":"Business logic in SDK","id":"CVE-2025-27839"},"products":["ESP32"],"published":"2025-03-08","related":[{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2021-34173","kev_date_added":null,"published":"2021-07-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-12","vendors":["Espressif"]},"summary":"Hidden HCI commands in Espressif ESP32 chips allow attackers to write memory, potentially enabling code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2025-27840/"}