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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-120"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138161.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.45.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "91f62b818edaa221276d898e19ad4d092c36cdcb"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "1.45.2",
"range": [
{
"fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
}
],
"source": "REFERENCES_TAG"
}
]
}