# CVE-2026-142205: PocketSphinx through 5.1.1 Heap Buffer Overflow via Model File Parsers

Source: https://aplosec.si/cve/CVE-2026-142205/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142205

High 8.5 · Reported · No fix listed · CWE-787 · PyPI

# PocketSphinx through 5.1.1 Heap Buffer Overflow via Model File Parsers

CVE-2026-142205 · published 2026-12-02

In plain words: this type of bug lets someone read or corrupt memory the program should keep private (memory safety). No fixed release is listed yet.

## Summary

CVE-2026-142205 affects PocketSphinx (PyPI) <= 5.1.1: Heap Buffer Overflow via Model File Parsers (CWE-787). No fixed release is listed. CVSS 4.0 base score 8.5 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

PocketSphinx through 5.1.1 contains heap buffer overflow vulnerabilities in its acoustic model, language model and feature transform loaders because file-supplied counts and indices go unvalidated. Attackers can supply crafted model files that trigger out-of-bounds reads and writes in bin_mdef_read, read_mixw, gauden_param_read, feat_read_lda and ngrams_raw_read_dmp, causing crashes or code execution.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/pocketsphinx-through-5.1.1-heap-buffer-overflow-via-model-file-parsers](https://www.vulncheck.com/advisories/pocketsphinx-through-5.1.1-heap-buffer-overflow-via-model-file-parsers)

- [Vulnerable codehttps://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/bin_mdef.c#L486-L505](https://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/bin_mdef.c#L486-L505)

- [Vulnerable codehttps://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/s2_semi_mgau.c#L1140-L1185](https://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/s2_semi_mgau.c#L1140-L1185)

- [Vulnerable codehttps://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/lm/ngrams_raw.c#L330-L351](https://github.com/cmusphinx/pocketsphinx/blob/v5.1.1/src/lm/ngrams_raw.c#L330-L351)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142205](https://www.cve.org/CVERecord?id=CVE-2026-142205)

**Severity:** High 8.5 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142205)

**Package:** PocketSphinx

**Ecosystem:** PyPI

**Affected:** <= 5.1.1

**Fixed:** None

**Weakness:** CWE-787

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
