CVE-2026-138161

Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum

Published Nov 28, 2026 CVSS 4.0 · 8.5 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gammu to version 1.45.2 or later, which removes the vulnerable LoadBackup() implementation.
  • Ensure that all older versions of Gammu are uninstalled or not in the system path to prevent accidental use.
  • Prior to upgrading, restrict access to backup upload or loading mechanisms so that signed or verified backup files are processed, mitigating the risk of an attacker delivering a crafted file.

Generated by OpenCVE AI on November 28, 2026 at 03:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum
Weaknesses CWE-120
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 28, 2026, 2:21 AM
Reserved
Nov 28, 2026, 2:15 AM
Status
Received
Published
Nov 28, 2026, 3:17 AM
Modified
Nov 28, 2026, 3:17 AM