# CVE-2026-116741: Speex through 1.2.1 Out-of-Bounds Write via speex_bits_read_whole_bytes

Status: published. Published: 2026-10-26. Updated: 2026-11-02.

Speex (libspeex) through 1.2.1 contains an out-of-bounds write vulnerability in speex_bits_read_whole_bytes() in libspeex/bits.c that mishandles length truncation for non-owned SpeexBits buffers. Attackers can stream crafted Speex data into buffers set up with speex_bits_init_buffer() or speex_bits_set_bit_buffer() to corrupt heap or stack memory and crash applications.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://gitlab.xiph.org/xiph/speex/-/merge_requests/32

## Affected products and versions

- xiph / speex (xiph/speex): ≥ 0; ≤ 1.2.1 (affected, custom). Source: CNA: VulnCheck

## Severity and prioritization

- CVSS 4.0: 8.3 (high); CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N; source: CNA: VulnCheck

- CVSS 3.1: 6.5 (medium); CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H; source: CNA: VulnCheck

- CISA KEV: No listing in collected sources

- EPSS: 0.41% as of 2026-11-02; percentile 35.12%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-787

## Exploit evidence

- exploit: https://hackmd.io/@haindpwn/cve-2026-116741-speex-bits-read-whole-bytes-oob-write (ADP: CISA-ADP)

## References

- https://github.com/xiph/speex/issues/42 (CNA: VulnCheck; issue-tracking)

- https://github.com/xiph/speex (CNA: VulnCheck; product)

- https://github.com/xiph/speex/blob/Speex-1.2.1/libspeex/bits.c#L177 (CNA: VulnCheck; technical-description)

- https://hackmd.io/@haindpwn/speex-bits-read-whole-bytes-oob-write (CNA: VulnCheck; third-party-advisory)

- https://gitlab.xiph.org/xiph/speex/-/merge_requests/32 (CNA: VulnCheck; patch)

- https://www.vulncheck.com/advisories/speex-through-1.2.1-out-of-bounds-write-via-speex-bits-read-whole-bytes (CNA: VulnCheck; third-party-advisory)

- https://hackmd.io/@haindpwn/cve-2026-116741-speex-bits-read-whole-bytes-oob-write (ADP: CISA-ADP; exploit)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2026-116741; retrieved 2026-11-02; source updated 2026-11-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-116741; retrieved 2026-11-02; source updated Not reported

Revision: 5007cc97c3a053eb90dc6e690bf3a2163729b87787298277e1f30ae4ed47accf

Canonical: https://y2.dev/cve/CVE-2026-116741

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.