CVE-2026-138160

Gammu before 1.45.2 Stack-Based Buffer Overflow via ReadBackupTextLen()

Published Nov 28, 2026 CVSS 4.0 · 8.5 High EPSS n/a KEV · Not listed
Description
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.

Analysis

AI-generated

Technical impact

The flaw is a stack-based buffer overflow in Gammu’s ReadBackupTextLen() function, a classic issue identified by CWE-121. A crafted backup file can supply an overly long quoted text value that overflows a 10,000‑byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls. The overflow can corrupt stack memory, leading to program crashes or, if an attacker can influence control flow, arbitrary code execution on the local system.

Affected Systems

The vulnerability affects all Gammu installations prior to version 1.45.2. Users running Gammu 1.45.1 or earlier are potentially exposed. The affected product is the Gammu utility, an open‑source tool for managing mobile devices.

Risk and Exploitability

The CVSS score of 8.5 classifies this as a high‑severity flaw. EPSS is not available, meaning the current exploitation probability is unknown, but the absence of a published exploit does not lower the risk. The vulnerability is not listed in the CISA KEV catalog, which reduces immediate public threat visibility. Attackers must provide a malicious backup file to the target Gammu process, usually via the convertbackup, restore, or GSM_ReadBackupFile functions; thus the attack requires local access or the ability to supply untrusted files to the service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gammu to version 1.45.2 or newer, which removes the buffer overflow in ReadBackupTextLen()
  • If an upgrade is not immediately possible, do not process backup files from untrusted sources; validate or sanitize the backup file before passing it to Gammu
  • Limit the execution of Gammu to trusted users and environments, and restrict file system access to directories where backup files are stored so that an attacker cannot place malicious files in a location Gammu reads

Generated by OpenCVE AI on November 28, 2026 at 03:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.
Title Gammu before 1.45.2 Stack-Based Buffer Overflow via ReadBackupTextLen()
Weaknesses CWE-121
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

No data.

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 28, 2026, 2:21 AM
Reserved
Nov 28, 2026, 2:15 AM
Status
Received
Published
Nov 28, 2026, 3:17 AM
Modified
Nov 28, 2026, 3:17 AM