CVE-2026-138161
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 cr…
Impact
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.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Gammu)
| Product | Affected versions |
|---|---|
| Gammu | before 1.45.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/gammu/gammu/security/advisories/GHSA-cp4c-2vv3-mrr7
- https://github.com/gammu/gammu/commit/91f62b818edaa221276d898e19ad4d092c36cdcb
- https://github.com/gammu/gammu/releases/tag/1.45.2
- https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L3282
- https://github.com/gammu/gammu
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-buffer-overflow-via-loadbackup-md5-checksum
- https://github.com/advisories/GHSA-x549-h79p-3567
- https://nvd.nist.gov/vuln/detail/CVE-2026-138161