CVE-2026-138161: Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum

Published Nov 28, 2026
·
Updated

Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.

Affected Software

1 affected component
Gammu Gammu<1.45.2

Event History

Nov 28, 2026
CVE Published
via MITRE·02:21 AM
Data Sourced
via MITRE·02:21 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Systems running Gammu versions before 1.45.2 are affected when they load backup files through convertbackup or restore. The vulnerable code path is associated with processing backup-file MD5 values.

2

What does an attacker need to exploit it?

An attacker needs to supply a crafted backup file containing an overlong MD5 value and have that file loaded using convertbackup or restore. User interaction is required to load the malicious file.

3

What is the impact of a successful exploit?

The crafted MD5 value can overflow the MD5Original buffer through strcpy() and overwrite adjacent phonebook and calendar entry pointers. This can cause crashes and may allow code execution.

4

What should be done if patching cannot happen immediately?

Do not load untrusted backup files with convertbackup or restore. Restrict backup-file sources to files that have been validated or obtained from trusted locations until Gammu can be updated to 1.45.2 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203