{"schemaVersion":4,"id":"CVE-2026-82391","aliases":[],"status":"published","duplicateOf":null,"title":"Out-of-bounds write in Zephyr HTTP/2 server static-filesystem handler via corrupted receive-buffer length","description":"The HTTP/2 front-end of the Zephyr HTTP server aliased connection receive state as a scratch output. In subsys/net/lib/http/http_server_http2.c, handle_http2_static_fs_resource() passed &client->data_len as the file_size out-parameter of http_server_find_file(). client->data_len is the count of unprocessed bytes remaining in the fixed-size per-connection receive buffer client->buffer[CONFIG_HTTP_SERVER_CLIENT_BUFFER_SIZE] (256 bytes by default), an invariant every frame handler and the socket receive path rely on. Serving any static file therefore replaced that bounded value with the file's on-disk size, and nothing resets it afterwards.\n\nThe defect is reached by an unauthenticated HTTP/2 GET for any file under the web root, in applications that register a static-filesystem resource (HTTP_RESOURCE_TYPE_STATIC_FS) with CONFIG_FILE_SYSTEM=y; CONFIG_HTTP_SERVER_VERSION_2 is enabled by default and no TLS or credentials are required on this path. Once client->data_len exceeds the buffer size, the frame dispatch loop in subsys/net/lib/http/http_server_core.c keeps parsing past the end of the received data, and the peer controls the bytes at client->cursor, so it can choose which fabricated frame the state machine consumes next by appending bytes after its request.\n\nThe inflated length defeats the only guards on the buffer. parse_http_frame_header() and the per-frame handlers read and skip up to a 24-bit frame length beyond the buffer (out-of-bounds read); the compaction memmove(client->buffer, client->cursor, client->data_len) at the end of request handling copies the file-size number of bytes into the 256-byte buffer, overflowing the rest of struct http_client_ctx — including the current_detail/current_stream pointers, the parser_settings function-pointer table and the inactivity_timer work handler — and the adjacent client contexts in static memory; and the subsequent zsock_recv(client->fd, client->buffer + client->data_len, sizeof(client->buffer) - client->data_len, 0) underflows its size argument, writing attacker-supplied data of attacker-chosen length out of bounds.\n\nThe impact is remote memory corruption in the server's single address space: at minimum a crash or hang of the device, and plausibly control-data overwrite leading to code execution. The HTTP/1 and HTTP/3 static-filesystem handlers already used a local variable and are unaffected; the fix makes the HTTP/2 handler use a local size_t file_size as well.","dates":{"published":"2026-11-10T22:07:39.047Z","modified":"2026-11-13T13:36:09.236Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00837,"percentile":0.59042,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-11T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00837,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00837,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00837,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00837,"percentile":0.59042}],"last30":[{"date":"2026-11-11T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00782,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00837,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00837,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00837,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00837,"percentile":0.59042}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"zephyrproject","product":"zephyr","name":"zephyr","label":"zephyr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.0.0","startInclusive":true,"end":"4.3.2","endInclusive":false}},{"text":"≥ 4.4.0, < 4.5.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.4.0","startInclusive":true,"end":"4.5.0","endInclusive":false}}],"versionsText":"≥ 4.0.0, < 4.3.2 | ≥ 4.4.0, < 4.5.0","eol":null,"hubHref":"/vendor/zephyrproject/zephyr"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/4e0a5f38b14dba5891fb558c49a526f9f6a3cc29","label":"github.com/zephyrproject-rtos/zephyr/commit/4e0a5f38b14dba5891fb558c49a526f9f6a3cc29","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-8jrg-wx88-g75j","label":"github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-8jrg-wx88-g75j","hostname":"github.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-10T22:07:39.047Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-13T13:36:09.236Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 4.3.2, 4.5.0 (CNA); fix release not confirmed","rank":[0,0,0,0,1,91],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00837,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-13T13:36:09.236Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-13T13:36:09.236Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-13T13:35:55.858Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00837,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:03:11.234Z","stale":false,"partial":false}}