{"id":"CVE-2026-54559","published":"2026-09-14T20:07:50Z","modified":"2026-09-15T19:30:40Z","title":"PocketSphinx: Buffer overflows in language and acoustic model loading code","vendor":"cmusphinx","product":"pocketsphinx","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00548,"percentile":0.46795,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/cmusphinx/pocketsphinx/security/advisories/GHSA-56r5-2p2f-7cxp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cmusphinx/pocketsphinx/commit/2a3c03788a9973eff548664334fb781e9f4ad4a5","tags":["x_refsource_MISC"]},{"url":"https://github.com/cmusphinx/pocketsphinx/releases/tag/v5.1.1","tags":["x_refsource_MISC"]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":9.36},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"cmusphinx","affectedVersions":[{"vendor":"cmusphinx","product":"pocketsphinx","versions":["< 5.1.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-15T19:30:28.938576Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pocketsphinx","vulnerableRanges":["<5.1.1"],"patched":["5.1.1"],"from":["GHSA-56r5-2p2f-7cxp","PYSEC-2026-3498"],"provenance":"source"}],"summary":{"text":"PocketSphinx, the small speech recognizer from cmusphinx, has buffer overflow flaws in its language-model and acoustic-model loading code, including the trie loaders in src/lm/ngram_model_trie.c and the acoustic-model loaders in src/mdef.c and src/util/bio.c, where headers and unbounded string fields are not properly validated. An attacker who can write to a directory selected by POCKETSPHINX_PATH can plant a malicious or corrupted model file that PocketSphinx later loads, causing memory corruption, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:41Z"},"euvd":{"id":"EUVD-2026-78066","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/cmusphinx/pocketsphinx/security/advisories/GHSA-56r5-2p2f-7cxp","https://github.com/cmusphinx/pocketsphinx/commit/2a3c03788a9973eff548664334fb781e9f4ad4a5","https://github.com/cmusphinx/pocketsphinx/releases/tag/v5.1.1","https://github.com/cmusphinx/pocketsphinx"]}