Technical impact
Gammu before version 1.45.2 contains a buffer overflow in the LoadBackup() routine. The flaw allows an attacker to deliver an overlong MD5 checksum within a crafted backup file, which is copied by strcpy() into the MD5Original buffer and can overwrite neighbouring phonebook and calendar entry pointers. This memory corruption can lead to program crashes and potentially arbitrary code execution if an attacker controls the overwritten memory.
Affected Systems
The affected product is Gammu for the Gammu project. The vulnerability exists in all releases prior to 1.45.2. Users running Gammu 1.45.1 or earlier are susceptible; versions 1.45.2 and newer provide the fix.
Risk and Exploitability
The Common Vulnerability Scoring System evaluates the flaw at a score of 8.5, indicating high severity. No EPSS value is reported, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a malicious backup file to the LoadBackup() function, typically through the convertbackup or restore paths. Due to the memory overwrite nature of the bug, local execution or escalation from a compromised process is possible, making the threat significant for systems that accept untrusted backups.