Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pocketsphinx
  4. ›
  5. CVE-2026-54559

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

July 17, 2026

The trie language model code introduced in PocketSphinx 5prealpha failed to check various boundary conditions when reading the headers of ARPA, DMP, and binary format language model files. In the case of invalid, corrupted or malicious input files, this could lead to stack and heap buffer overflows.

In addition, the acoustic model loading code (which is over 30 years old…) contains numerous instances of sscanf with an unbounded string field which could also lead to stack overflows in the case of corrupt or malicious inputs.

Because PocketSphinx will search the directory given by the POCKETSPHINX_PATH environment variable for acoustic and language model files, if this directory is writable by untrusted users, an attacker could corrupt an existing file or write a malicious one to this directory in order to trigger the vulnerability.

References

  • github.com/advisories/GHSA-56r5-2p2f-7cxp
  • github.com/cmusphinx/pocketsphinx/releases/tag/v5.1.1
  • github.com/cmusphinx/pocketsphinx/security/advisories/GHSA-56r5-2p2f-7cxp
  • nvd.nist.gov/vuln/detail/CVE-2026-54559

Code Behaviors & Features

Detect and mitigate CVE-2026-54559 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.1.1

Fixed versions

  • 5.1.1

Solution

Upgrade to version 5.1.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-121: Stack-based Buffer Overflow
  • CWE-122: Heap-based Buffer Overflow

Source file

pypi/pocketsphinx/CVE-2026-54559.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:26 +0000.