Description
CTranslate2 before 4.8.1 contains a heap-based buffer overflow in the binary model loader that fails to validate payload length against allocated buffer size. Attackers can craft malicious model files with oversized payload lengths to write past heap allocation boundaries, causing crashes or arbitrary code execution.
Published: 2026-09-29
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary code execution via crafted model files
Action: Immediate Patch
AI Analysis

Impact

CTranslate2 prior to version 4.8.1 contains a heap‑based buffer overflow in its binary model loader. The loader fails to validate the payload length against the allocated buffer size, allowing an attacker who supplies a malicious model file with an oversized payload to overwrite heap memory. This flaw is classified as CWE‑787 and can lead to a crash or arbitrary code execution.

Affected Systems

OpenNMT CTranslate2 versions earlier than 4.8.1 are affected. Any system using a pre‑4.8.1 release that loads model files from an untrusted source is vulnerable. The vulnerability resides in the model loader component of the library.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity. No EPSS score is available, so the current likelihood of exploitation is unknown, yet the failure to appear in the KEV catalog suggests no widespread exploitation has been observed yet. Attackers would need to supply a crafted model file, implying a local or remote execution scenario where the model loader is invoked. If untrusted models are processed, the risk of arbitrary code execution is significant.

Generated by OpenCVE AI on September 30, 2026 at 01:37 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenNMT CTranslate2 to version 4.8.1 or later, which resolves the buffer overflow.
  • Validate or restrict model files to trusted sources before loading them into the application.
  • Employ sandboxing or process isolation when executing model loading functions to limit the impact of a potential buffer overflow.

Generated by OpenCVE AI on September 30, 2026 at 01:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Opennmt
Opennmt ctranslate2
Vendors & Products Opennmt
Opennmt ctranslate2

Tue, 29 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 29 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
Description CTranslate2 before 4.8.1 contains a heap-based buffer overflow in the binary model loader that fails to validate payload length against allocated buffer size. Attackers can craft malicious model files with oversized payload lengths to write past heap allocation boundaries, causing crashes or arbitrary code execution.
Title CTranslate2 before 4.8.1 Heap Buffer Overflow via model.bin
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}


Subscriptions

Opennmt Ctranslate2
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-29T14:49:12.947Z

Reserved: 2026-09-29T13:43:06.440Z

Link: CVE-2026-102566

cve-icon Vulnrichment

Updated: 2026-09-29T14:48:54.191Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-29T15:17:18.003

Modified: 2026-09-30T17:23:08.953

Link: CVE-2026-102566

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T20:41:55Z

Weaknesses