{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "5.1.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "5.2.0"
                  },
                  {
                    "fixed": "5.2.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "5.3.0"
                  },
                  {
                    "fixed": "5.3.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "5.4.0"
                  },
                  {
                    "last_affected": "5.4.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "5.5.0"
                  },
                  {
                    "fixed": "5.5.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "6.0.0"
                  },
                  {
                    "fixed": "6.0.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "2fed52c72944781562fb63b8be7b6d29f3cff97e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "812f7de59efdf79529e1c10cd788d324fa05f10d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "c146056e55815cad542aff640a21e3f94879dd6a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ce902a85135b0e069c125b11735aa8757fb528b2"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "f9da09de61e98c9074d5cb89d5b1b4c37739fa85"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v5.2.8",
                "range": [
                  {
                    "fixed": "530b95fc293b465142dcb4bc82d55ef09d7ad9c0"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v5.3.6",
                "range": [
                  {
                    "fixed": "79e3454c68248bd7d881721c9b2e94561378a8ce"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v5.5.6",
                "range": [
                  {
                    "fixed": "880a203ae603d08a94d06aa01e0d6761958e5e9e"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v6.0.3",
                "range": [
                  {
                    "fixed": "76f5dedd9950a3012fee8fb7d5586df21fc67802"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "9be74663d1f657ef3c736b5017c03f4b1532fe86"
            },
            {
              "fixed": "530b95fc293b465142dcb4bc82d55ef09d7ad9c0"
            },
            {
              "fixed": "79e3454c68248bd7d881721c9b2e94561378a8ce"
            },
            {
              "last_affected": "296b6eab9445fd720e71aecab961e2d3fbca9944"
            },
            {
              "fixed": "880a203ae603d08a94d06aa01e0d6761958e5e9e"
            },
            {
              "fixed": "76f5dedd9950a3012fee8fb7d5586df21fc67802"
            },
            {
              "fixed": "00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca"
            },
            {
              "fixed": "2fed52c72944781562fb63b8be7b6d29f3cff97e"
            },
            {
              "fixed": "812f7de59efdf79529e1c10cd788d324fa05f10d"
            },
            {
              "fixed": "c146056e55815cad542aff640a21e3f94879dd6a"
            },
            {
              "fixed": "ce902a85135b0e069c125b11735aa8757fb528b2"
            },
            {
              "fixed": "f9da09de61e98c9074d5cb89d5b1b4c37739fa85"
            }
          ],
          "repo": "https://github.com/espressif/esp-idf",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-rjvf-fxv5-x87j"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-195",
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113781.json"
  },
  "details": "ESP-IDF is the Espressif Internet of Things (IoT) Development Framework. Prior to 5.2.8, 5.3.6, 5.5.6, and 6.0.3, the Bluedroid BLE Mesh GATT server read handler bt_mesh_bta_gatts_cb in esp_ble_mesh stores a signed attribute-read callback length in an unsigned 16-bit variable. A negative ATT error code is therefore interpreted as a very large successful length and used for a memory copy from a small stack buffer into the GATT response structure. A remote attacker within Bluetooth LE range who can connect to an exposed PB-GATT provisioning or Mesh Proxy service can trigger a failed attribute read with a crafted request. On devices where the affected attributes are accessible without pairing, exploitation requires neither pairing nor user interaction; access requirements depend on device configuration. The resulting out-of-bounds read and stack-based buffer overflow corrupts the Bluetooth host task stack, causing a crash and device restart and potentially further memory corruption. The issue affects devices built with CONFIG_BT_BLUEDROID_ENABLED=y and BLE Mesh GATT enabled; the NimBLE host path is not affected. This issue is fixed in versions 5.2.8, 5.3.6, 5.5.6, and 6.0.3.",
  "id": "CVE-2026-113781",
  "modified": "2026-11-17T23:45:49.523115262Z",
  "published": "2026-11-17T19:07:15.437Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113781.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espressif/esp-idf/commit/00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espressif/esp-idf/commit/2fed52c72944781562fb63b8be7b6d29f3cff97e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espressif/esp-idf/commit/812f7de59efdf79529e1c10cd788d324fa05f10d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espressif/esp-idf/commit/c146056e55815cad542aff640a21e3f94879dd6a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espressif/esp-idf/commit/ce902a85135b0e069c125b11735aa8757fb528b2"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espressif/esp-idf/commit/f9da09de61e98c9074d5cb89d5b1b4c37739fa85"
    },
    {
      "type": "WEB",
      "url": "https://github.com/espressif/esp-idf/releases/tag/v5.2.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/espressif/esp-idf/releases/tag/v5.3.6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/espressif/esp-idf/releases/tag/v5.5.6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/espressif/esp-idf/releases/tag/v6.0.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/espressif/esp-idf/security/advisories/GHSA-rjvf-fxv5-x87j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-113781"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ESP-IDF: Buffer Overflow in BLE Mesh GATTS Read Callback Handler"
}