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.