CVE-2026-138164

Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()

Published Nov 28, 2026 CVSS 4.0 · 4.8 Medium EPSS n/a KEV · Not listed
Description
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.

Analysis

AI-generated

Technical impact

Gammu before version 1.45.2 contains a stack‑based buffer overflow in the SaveBackupText() function of backtext.c. When a backup file with excessively long calendar or note entries is processed by gammu convertbackup, the routine writes hex digits beyond the 10,000‑byte buffer, corrupting stack memory. This corruption can lead to unpredictable behavior or potential code execution if the overflow is exploited.

Affected Systems

The vulnerability is present in the Gammu project’s client software, affecting all releases prior to 1.45.2. Users running Gammu 1.45.1 or earlier are impacted and should upgrade to a fixed release.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity. EPSS data is unavailable, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local, requiring an attacker to supply a crafted backup file that is then processed by the vulnerable convertbackup utility. While an exploited overflow could disrupt system stability or enable arbitrary code execution, no remote exploitation pathway is documented.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gammu to version 1.45.2 or later, which includes the fixed SaveBackupText implementation.
  • If an upgrade cannot be performed, configure or modify the backup conversion process to reject backups with calendar or note fields longer than the buffer limit, thereby preventing overflow.
  • As a last resort, apply a local source patch to backtext.c to add bounds checking before writing hex digits, ensuring the stack buffer is not overrun.

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 stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.
Title Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()
Weaknesses CWE-121
References
Metrics cvssV3_1

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

cvssV4_0

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

Subscriptions

No data.

Weaknesses
  • CWE-121

    Stack-based 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