CVE-2026-138162

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

Published Nov 28, 2026 CVSS 4.0 · 7.3 High EPSS n/a KEV · Not listed
Description
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.

Analysis

AI-generated

Technical impact

The vulnerability is a stack‑based buffer overflow in Gammu’s ALCATEL_EncodeString() function. An attacker can trigger the overflow by delivering an oversized encoded phonebook entry, for example through a crafted backup restored with gammu restore or by adding a new contact to an attached Alcatel phone. The overflow can corrupt the stack, causing Gammu to crash or, in the worst case, execute arbitrary code. The weakness is classified as CWE‑121.

Affected Systems

Affected products are Gammu version 1.45.1 and earlier. These versions run on any operating system platform that supports Gammu’s C code. The problem feeds on the Alcatel phone support module, so any system that builds Gammu with the Alcatel backend is vulnerable.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that a local attacker with the ability to interact with Gammu’s Alcatel phone interface can exploit the overflow; remote exploitation would require additional access to the Gammu process or the connected phone. The release 1.45.2 contains the fix, so systems still running earlier versions face a substantial risk of denial of service or potential code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gammu to version 1.45.2 or later, which contains the fix for the buffer overflow.
  • Disable Alcatel phone support in Gammu by removing or commenting out the Alcatel module during build or configuration, if you do not need Alcatel devices.
  • Restrict access to the Gammu process so that only trusted users can invoke commands that interact with Alcatel phones, preventing an untrusted user from supplying a crafted backup or contact.

Generated by OpenCVE AI on November 28, 2026 at 03:22 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 ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.
Title Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()
Weaknesses CWE-121
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/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