
Gammu 1.45.2 Patch Fixes Stack Overflow in Backup Conversion
A medium-severity stack-based buffer overflow vulnerability, CVE-2026-138164, has been identified in Gammu versions prior to 1.45.2. The flaw exists in the SaveBackupText() function within backtext.c, where long text fields in backup files can cause hex digits to be written past a fixed 10,000-byte stack buffer. The vulnerability was disclosed by the Deus Rex security research team at Cyrex and requires local access and user interaction to exploit. Gammu released version 1.45.2 on November 9, 2026, which includes a fix that replaces the fixed stack buffer with a dynamically allocated heap buffer. The issue carries a CVSS 4.0 score of 4.8 and a CVSS 3.1 score of 3.3.