CVE-2026-138163: Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()
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 GSMReadBackupFile, causing crashes or potential code execution.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of Gammu versions before 1.45.2 are exposed when they load attacker-controlled backup files through convertbackup, restore, or GSM_ReadBackupFile. The issue is triggered by WAPSettings or MMSSettings sections containing more than four TitleNN keys.
What must an attacker do to exploit it?
An attacker must induce a user or application to process a crafted backup file. The CVSS vector indicates local attack access and required user interaction, while no privileges are required.
What is the recommended remediation?
Upgrade Gammu to version 1.45.2 or later. Until upgrading is possible, do not process untrusted backup files with the affected conversion, restore, or backup-reading functionality.
How can I identify potentially malicious backup files?
Inspect backup files for [WAPSettings] or [MMSSettings] sections containing more than four TitleNN keys. Such files can trigger the vulnerable parsing path in affected versions.