pocketsphinx — security advisory
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.
- Products
- pocketsphinx
- Affected versions
- 0.8.0+real-0ubuntu6, 0.8.0+real5prealpha+1-13ubuntu1, 0.8.0+real5prealpha+1-14ubuntu1, 0.8.0+real5prealpha+1-15ubuntu1, 0.8.0+real5prealpha+1-15ubuntu4, 0.8.0+real5prealpha+1-15ubuntu5, 0.8.0+real5prealpha+1-15ubuntu6, 0.8.0+real5prealpha+1-6ubuntu1, 0.8.0+real5prealpha+1-6ubuntu3, 0.8.0+real5prealpha+1-6ubuntu4, 0.8.0+real5prealpha-1ubuntu2, 5.0.4-3ubuntu1, 5.0.4-4ubuntu1, 5.1.1-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-54559
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:46 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-54559
pocketsphinx
Fixed versions: Not specified
pocketsphinx
Fixed versions: Not specified
pocketsphinx
Fixed versions: Not specified
pocketsphinx
Fixed versions: Not specified
pocketsphinx
Fixed versions: Not specified
pocketsphinx
Fixed versions: Not specified
pocketsphinx
Fixed versions: Not specified
Complete source record
{
"id": "e3aa2b7d53908b86bb1b68ab9eede0e5b192f7006cec05cb7d78e790bf0dea83",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-54559",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-54559",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-54559",
"products": [
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.8.0+real-0ubuntu6",
"evidence": "/affected/0/versions"
},
{
"value": "0.8.0+real5prealpha-1ubuntu2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.8.0+real5prealpha-1ubuntu2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.8.0+real5prealpha+1-6ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "0.8.0+real5prealpha+1-6ubuntu3",
"evidence": "/affected/2/versions"
},
{
"value": "0.8.0+real5prealpha+1-6ubuntu4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.8.0+real5prealpha+1-13ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "0.8.0+real5prealpha+1-14ubuntu1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.8.0+real5prealpha+1-15ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "0.8.0+real5prealpha+1-15ubuntu4",
"evidence": "/affected/4/versions"
},
{
"value": "0.8.0+real5prealpha+1-15ubuntu5",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.4-3ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "5.0.4-4ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "5.1.1-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "pocketsphinx",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.8.0+real5prealpha+1-15ubuntu5",
"evidence": "/affected/6/versions"
},
{
"value": "0.8.0+real5prealpha+1-15ubuntu6",
"evidence": "/affected/6/versions"
},
{
"value": "5.0.4-3ubuntu1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-54559",
"aliases": [
"UBUNTU-CVE-2026-54559"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.8.0+real-0ubuntu6",
"0.8.0+real5prealpha-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "libpocketsphinx3",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "pocketsphinx",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "python-pocketsphinx",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.8.0+real5prealpha-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "libpocketsphinx3",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "pocketsphinx",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
},
{
"binary_name": "python-pocketsphinx",
"binary_version": "0.8.0+real5prealpha-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.8.0+real5prealpha+1-6ubuntu1",
"0.8.0+real5prealpha+1-6ubuntu3",
"0.8.0+real5prealpha+1-6ubuntu4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-6ubuntu4"
},
{
"binary_name": "libpocketsphinx3",
"binary_version": "0.8.0+real5prealpha+1-6ubuntu4"
},
{
"binary_name": "pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-6ubuntu4"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "0.8.0+real5prealpha+1-6ubuntu4"
},
{
"binary_name": "python3-pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-6ubuntu4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.8.0+real5prealpha+1-13ubuntu1",
"0.8.0+real5prealpha+1-14ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-14ubuntu1"
},
{
"binary_name": "libpocketsphinx3",
"binary_version": "0.8.0+real5prealpha+1-14ubuntu1"
},
{
"binary_name": "pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-14ubuntu1"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "0.8.0+real5prealpha+1-14ubuntu1"
},
{
"binary_name": "pocketsphinx-testdata",
"binary_version": "0.8.0+real5prealpha+1-14ubuntu1"
},
{
"binary_name": "swig-pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-14ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.8.0+real5prealpha+1-15ubuntu1",
"0.8.0+real5prealpha+1-15ubuntu4",
"0.8.0+real5prealpha+1-15ubuntu5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-15ubuntu5"
},
{
"binary_name": "libpocketsphinx3",
"binary_version": "0.8.0+real5prealpha+1-15ubuntu5"
},
{
"binary_name": "pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-15ubuntu5"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "0.8.0+real5prealpha+1-15ubuntu5"
},
{
"binary_name": "pocketsphinx-testdata",
"binary_version": "0.8.0+real5prealpha+1-15ubuntu5"
},
{
"binary_name": "swig-pocketsphinx",
"binary_version": "0.8.0+real5prealpha+1-15ubuntu5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"5.0.4-3ubuntu1",
"5.0.4-4ubuntu1",
"5.1.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "5.1.1-1"
},
{
"binary_name": "libpocketsphinx5",
"binary_version": "5.1.1-1"
},
{
"binary_name": "pocketsphinx",
"binary_version": "5.1.1-1"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "5.1.1-1"
},
{
"binary_name": "pocketsphinx-testdata",
"binary_version": "5.1.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pocketsphinx",
"purl": "pkg:deb/ubuntu/pocketsphinx?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.8.0+real5prealpha+1-15ubuntu5",
"0.8.0+real5prealpha+1-15ubuntu6",
"5.0.4-3ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54559.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gstreamer1.0-pocketsphinx",
"binary_version": "5.0.4-3ubuntu1"
},
{
"binary_name": "libpocketsphinx5",
"binary_version": "5.0.4-3ubuntu1"
},
{
"binary_name": "pocketsphinx",
"binary_version": "5.0.4-3ubuntu1"
},
{
"binary_name": "pocketsphinx-en-us",
"binary_version": "5.0.4-3ubuntu1"
},
{
"binary_name": "pocketsphinx-testdata",
"binary_version": "5.0.4-3ubuntu1"
}
]
}
}
],
"modified": "2026-10-17T12:59:06.509658233Z",
"provider": "osv",
"upstream": [
"CVE-2026-54559"
],
"references": [
"https://ubuntu.com/security/CVE-2026-54559",
"https://www.cve.org/CVERecord?id=CVE-2026-54559",
"https://github.com/cmusphinx/pocketsphinx/commit/2a3c03788a9973eff548664334fb781e9f4ad4a5",
"https://github.com/cmusphinx/pocketsphinx/releases/tag/v5.1.1",
"https://github.com/cmusphinx/pocketsphinx/security/advisories/GHSA-56r5-2p2f-7cxp"
]
},
"related_cves": [
{
"value": "CVE-2026-54559",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359306,
"published_at": "2026-09-14T20:16:00+00:00"
}