PocketSphinx acoustic and language model loaders accept malicious files
What this means
An attacker who can place a crafted model file where PocketSphinx loads it can crash the application or run code with the same permissions as the process. This threatens any service that accepts model files from untrusted sources or loads models from shared storage.
SecurityElites Manager Brief: the decision in one minute
PocketSphinx does not check if model files are valid before loading them. A bad model file can crash the service or let an attacker run code. You need to either stop using PocketSphinx, isolate it, or add defenses around file loading.
| SecurityElites Fix-First Score | 47 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Security and speech recognition teams. |
| Likely effort | An estimate is 4–8 hours per deployment to audit where models come from, isolate the service, and implement defenses. It could take longer if models are fetched from many sources or if you need to migrate to an alternative. |
Questions to ask your team or supplier
- Where do we get our PocketSphinx model files from, and do we trust all sources? Can we sign or hash them to verify they have not been tampered with?
- If PocketSphinx crashes or is exploited, what data or systems could be compromised? Can we isolate it so the blast radius is smaller?
- Do we have a plan to migrate away from PocketSphinx, and what other speech recognition libraries or services could we use instead?
Message you can forward to the owning team
Security notice: PocketSphinx acoustic and language model loaders accept malicious files (CVE-2026-142205)
Severity: High (8.5 of 10)
SecurityElites Fix-First Score: 47 of 100
SecurityElites fix window: Within 30 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-142205-pocketsphinx-acoustic-and-language-model-loaders-accept-malicious-files/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01975What is at stake in your AI setup
- Acoustic and language model files: an attacker can corrupt, replace or extract them, degrading speech recognition quality or stealing intellectual property.
- Speech input and transcripts: if the compromised PocketSphinx process has access to audio data or logs, an attacker may read them.
- Credentials or API keys: if the process can access secrets to fetch models or report results, an attacker may steal them.
Who is exposed
- Voice assistants and speech-to-text services that load acoustic or language models at runtime.
- Services that accept model files uploaded by users or pulled from external sources.
- Embedded or edge deployments of PocketSphinx where the model is not built in.
- Applications that load models from shared network storage.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| cmusphinx PocketSphinx | Every version up to and including 5.1.1 | No fixed version recorded. Follow the steps below. |
The fixed version here was taken from the wording of the official description, because the national database has not listed it yet.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Where the attacker must be | Already on the machine, or able to get a user to open something on it |
|---|---|
| Account needed | None. No login is needed |
| Does a person have to do something | Yes, a small ordinary action by a user |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
Read from the official severity rating: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Kind of coding mistake
- CWE-787: memory is written out of bounds
Where it sits in the standards
OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain (unsafe model and data files)
If you cannot upgrade today
- Restrict filesystem permissions so that only trusted users can write to directories where PocketSphinx loads model files; use Unix permissions, SELinux or AppArmor.
- If PocketSphinx downloads models from the internet, pin the URL and validate the downloaded file with a checksum before PocketSphinx loads it.
- Run PocketSphinx in a separate process or container with no access to sensitive data or network resources, and communicate with it via a narrow interface.
Signs it may already have been used against you
- Check application logs and system crash reports for segmentation faults or buffer overflows in PocketSphinx functions: bin_mdef_read, read_mixw, gauden_param_read, feat_read_lda or ngrams_raw_read_dmp.
- Monitor the directory where PocketSphinx loads model files for the appearance of unexpected or recently modified files, especially from untrusted sources.
- Review process execution logs to see if PocketSphinx spawned child processes or made unusual system calls after loading a model file.
- If PocketSphinx runs in a container or VM, check whether it attempted to access files, network sockets or APIs it should not have.
Log searches to start from
Crashes or errors in PocketSphinx model loaders (adapt field names to your logs)Splunk
process=pocketsphinx OR process=sphinxbase (error OR crash OR segmentation OR "buffer overflow") (bin_mdef_read OR read_mixw OR gauden_param_read OR feat_read_lda OR ngrams_raw_read_dmp)Unexpected model file access or modification (adapt field names to your logs)Elastic
process.name:pocketsphinx* AND (event.type:change OR event.action:file_modify) AND file.path:*model*Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Identify all use of PocketSphinxSearch your codebase, container images and deployed services for PocketSphinx or pocketsphinx in dependencies, imports and package lists. Record the version number of each instance.
- Check the current versionFor each service, confirm whether it is running PocketSphinx version 5.1.1 or earlier. If you do not know the version, assume it is affected until you can verify.
- List all sources of model filesDocument where each instance of PocketSphinx loads acoustic models, language models and feature transforms from: built-in, downloaded from a website, provided by users, fetched from a database or other source. Note which sources are under your control.
- Assess the risk for each deploymentFor each service, decide whether an attacker could supply or modify a model file. Rate the risk as high if model files come from the internet, users or shared storage; rate it as lower if models are built into the binary and never updated.
- Plan a mitigation strategyNo patched version of PocketSphinx is available. Choose one or more of these: stop using PocketSphinx and migrate to a maintained alternative; run PocketSphinx in a sandboxed process with restricted privileges; validate model files cryptographically (using signatures or checksums) before loading; restrict where model files can be loaded from; limit network access and file permissions of the process.
- Isolate the processIf PocketSphinx must remain in use, run it with the lowest possible privileges, in a container with no network access, or in a separate virtual machine. Ensure that code execution via a crafted model cannot compromise other services or data.
- Add file integrity checksIf you control the source of model files, generate a cryptographic hash (such as SHA-256) of each model file. Before PocketSphinx loads a model, verify that its hash matches the known good value. Store hashes securely, separate from model files.
- Review logs for suspicious model loadsCheck whether PocketSphinx has crashed or behaved unexpectedly in the past. Look for any unexpected model files in directories where PocketSphinx searches for them, or for downloads from unusual sources.
How to confirm it is fixed: Confirm that PocketSphinx is no longer used, that model files are protected by filesystem permissions or digital signatures, and that any remaining PocketSphinx process runs with restricted privileges and cannot access sensitive data.
SecurityElites Quick Fixes: copy and paste
Find PocketSphinx in Python dependenciesfor this issue
grep -r "pocketsphinx\|sphinxbase" requirements.txt setup.py pyproject.toml 2>/dev/null || pip show pocketsphinx 2>/dev/null | grep VersionFind PocketSphinx in C/C++ projectsfor this issue
find . -name 'CMakeLists.txt' -o -name '*.cmake' | xargs grep -l pocketsphinx 2>/dev/null; grep -r '#include.*sphinxbase.h\|#include.*pocketsphinx.h' . 2>/dev/nullVerify model file ownership and permissionsfor this issue
find /path/to/models -type f \( -name '*.cfg' -o -name '*.Dat' -o -name '*.fea' \) -exec ls -l {} \; 2>/dev/nullLoad PyTorch weights without running codegeneral hardening
import torch
state = torch.load("model.pt", weights_only=True)Load safetensors weightsgeneral hardening
from safetensors.torch import load_file
state = load_file("model.safetensors")Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## PocketSphinx acoustic and language model loaders accept malicious files (CVE-2026-142205)
**Severity:** High 8.5 | **SE Fix-First Score:** 47/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01975 https://securityelites.com/ai-vulnerabilities/cve-2026-142205-pocketsphinx-acoustic-and-language-model-loaders-accept-malicious-files/
### Why this matters
An attacker who can place a crafted model file where PocketSphinx loads it can crash the application or run code with the same permissions as the process. This threatens any service that accepts model files from untrusted sources or loads models from shared storage.
### What to do
1. Identify all use of PocketSphinx
2. Check the current version
3. List all sources of model files
4. Assess the risk for each deployment
5. Plan a mitigation strategy
6. Isolate the process
7. Add file integrity checks
8. Review logs for suspicious model loads
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-142205-pocketsphinx-acoustic-and-language-model-loaders-accept-malicious-files/
### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that PocketSphinx is no longer used, that model files are protected by filesystem permissions or digital signatures, and that any remaining PocketSphinx process runs with restricted privileges and cannot access sensitive data.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
The same kind of mistake in other AI tools
- PyTorch Lightning loads untrusted checkpoint files without safety checks High · CVE-2026-142196
- Listdom WordPress plugin allows anyone to run code on the server Critical · CVE-2026-126756
- DLOmix can run attacker code when loading PyTorch model files High · CVE-2026-141343
- HoloViz Lumen lets dashboard viewers run Python code on the server High · CVE-2026-141342
- RVC-Boss GPT-SoVITS can be made to run code when loading model files Critical · CVE-2026-140281
Change history
- 2 Dec 2026: Made public
- 2 Dec 2026: Fixed version added, from the vendor's own CVE record
- 2 Dec 2026: Fixed version added, from the wording of the official description
- 2 Dec 2026: Published
- 2 Dec 2026: Fixed version added, from the wording of the official description
Official record
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.
Weakness type: CWE-787
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-142205For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.