# CVE-2026-54559: PocketSphinx: Buffer overflows in language and acoustic model loading code

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2026-07-17T21:19:17.000Z
- Modified: 2026-09-30T17:51:36.337Z
- Also known as: GHSA-56r5-2p2f-7cxp, PYSEC-2026-3498
- Weaknesses: CWE-119, CWE-121, CWE-122
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PocketSphinx is a small speech recognizer. Prior to 5.1.1, the trie language-model loaders in src/lm/ngram_model_trie.c do not adequately validate boundary conditions in ARPA, DMP, and binary format headers, and the acoustic-model loaders in src/mdef.c and src/util/bio.c use sscanf with unbounded string fields. Loading an invalid, corrupted, or malicious language or acoustic model can therefore cause stack or heap buffer overflows and memory corruption. An attacker who can write to a directory selected by POCKETSPHINX_PATH can replace or add a model file that PocketSphinx later loads; users of PocketSphinx 5prealpha have no backported patch and must migrate to the fixed release. This issue is fixed in version 5.1.1.

(As written by CVE List.)

## Affected

- cmusphinx pocketsphinx: < 5.1.1
- pocketsphinx (PyPI): before 5.1.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/cmusphinx/pocketsphinx/security/advisories/GHSA-56r5-2p2f-7cxp> (exploit, web)
- <https://github.com/cmusphinx/pocketsphinx/commit/2a3c03788a9973eff548664334fb781e9f4ad4a5> (exploit)
- <https://github.com/cmusphinx/pocketsphinx/releases/tag/v5.1.1> (exploit, web)
- <https://github.com/cmusphinx/pocketsphinx> (exploit, package)
- <https://pypi.org/project/pocketsphinx> (package)
- <https://github.com/advisories/GHSA-56r5-2p2f-7cxp> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54559> (advisory)

## Sources

- CVE List: [CVE-2026-54559](https://www.cve.org/CVERecord?id=CVE-2026-54559), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-56r5-2p2f-7cxp](https://github.com/advisories/GHSA-56r5-2p2f-7cxp), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-54559](https://nvd.nist.gov/vuln/detail/CVE-2026-54559), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3498](https://osv.dev/vulnerability/PYSEC-2026-3498), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-54559 · Whole record: https://cve.day/CVE-2026-54559.json · Rebuilt by cve.day 2026-11-25T22:59:38.360Z
