CVE-2026-138163

Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()

Published Nov 28, 2026 CVSS 4.0 · 8.5 High EPSS n/a KEV · Not listed
Description
Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.

Analysis

AI-generated

Technical impact

ReadWAPSettingsEntry() is a function that parses WAP and MMS settings from backup files. In Gammu versions prior to 1.45.2 the function copies data into a fixed‑size buffer without bounds checking. When a backup file contains more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section the copy overruns and corrupts heap memory. The overflow can crash the application or, if the attacker can influence the memory contents, lead to arbitrary code execution. This flaw is identified as a classic heap buffer overflow (CWE‑122).

Affected Systems

The vulnerable product is Gammu. All releases older than version 1.45.2 are affected, particularly 1.45.1 and earlier. An attacker only needs a Gammu installation that processes backup files, such as via the convertbackup, restore, or GSM_ReadBackupFile command. The flaw is triggered when a backup file with a [WAPSettings] or [MMSSettings] section contains more than four TitleNN keys, which is only possible if the backup originates from an untrusted source.

Risk and Exploitability

The CVSS score of 8.5 classifies the issue as high severity. EPSS data is not available, and the vulnerability is not listed as a CISA KEV. The likely attack vector is local; based on the description, it is inferred that the attack occurs when a crafted backup file is processed by the Gammu application. However, if the system accepts backups from untrusted sources, the vulnerability could be leveraged remotely. No public exploits have been reported to date. The mismanagement of heap memory gives an attacker the potential to crash the application or execute arbitrary code if they can control the contents of the overflowing buffer.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gammu 1.45.2 or a later version that includes the heap‑buffer‑overflow fix.
  • If a patch cannot be applied immediately, ensure that Gammu does not load or restore backup files containing more than four TitleNN keys in the WAP or MMS settings sections; filter or reject such files before they reach the code.
  • Restrict the use of Gammu backup and restore features to trusted accounts and disable restoration from untrusted sources to reduce the attack surface.

Generated by OpenCVE AI on November 28, 2026 at 04:36 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 heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.
Title Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()
Weaknesses CWE-122
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-122

    Heap-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