Skip to main content

Gammu CVE-2026-138162

| EUVDEUVD-2026-137551 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-11-28 VulnCheck GHSA-gr2c-gxjj-cc7v
7.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft hostile .backup with ~200 GSM-extension chars
  2. Delivery
    Deliver file to victim with Alcatel phone
  3. Exploit
    User runs gammu restore/addnew
  4. Execution
    Overflow 200-byte stack buffer in ALCATEL_EncodeString
  5. Persist
    Overwrite saved return address
  6. Impact
    Crash or potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following concrete preconditions: (1) the victim must restore or add an attacker-supplied Gammu backup via 'gammu restore' or 'addnew' (passive user interaction); (2) an Alcatel-family handset must be attached and selected - either explicitly ('model = alcatel') or auto-selected when AT identification maps the device (e.g. 'OT - C55x') to the F_ALCATEL feature and the Alcatel binary driver; and (3) the backup must contain a phonebook text field (e.g. Note) of ~200 GSM extension characters such as ~, ^, {, }, \, [, ], | or the euro sign, each of which EncodeDefault() expands to two bytes, producing ~400 bytes written into the 200-byte stack buffer. Limiting factors that reduce real-world risk: it is not remotely reachable without local file delivery and a restore action, it needs a specific (and now legacy) Alcatel device driver to be in use, and the researchers reproduced it only against an emulated handset - physical-device exploitation and the alternate vCard/LDIF code paths were not verified.

Impact

This is a genuine but narrowly-scoped memory-safety flaw, not a mass-exploitation priority. All severity signals point to a locally-triggered, user-interaction-dependent attack: the official CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) scores 7.3, driven by High VC/VI/VA impact, but every access metric raises the bar - Local vector, High attack complexity, a specific Attack Requirement (AT:P), and Passive user interaction. The SSVC-style priority label is 'this_week' (not act_now/emergency), which is consistent with the picture. There is no CISA KEV listing and no EPSS value supplied, so there is no signal of active or widespread exploitation; exploitation status is best described as a detailed public PoC reference existing (the GHSA advisory includes a fixture-generation script and AddressSanitizer trace) that is not verified as a weaponized working exploit. Note an important impact caveat: the reporting team (Cyrex Deus Rex / VulnCheck) demonstrated only a reliable crash (stack-smashing abort / SIGSEGV with the saved return address overwritten) and characterize code execution as a potential ceiling, not a confirmed outcome - they rate demonstrated severity Medium (CVSS 5.3) with a High (CVSS 7.0) ceiling, which is lower than the 7.3 headline. Realistic prioritization: patch to 1.45.2 on affected systems, but this is not an internet-facing, unauthenticated, wormable issue - it requires a victim to restore a hostile backup onto an attached Alcatel handset.

Exploit ScenarioDerived

An attacker distributes a malicious Gammu .backup file (for example via email or a shared tool repository) containing a phonebook entry whose Note field holds ~200 GSM extension characters. A victim with an Alcatel-family phone attached runs 'gammu restore' (or 'addnew'), and the oversized encoded text overflows a 200-byte stack buffer in ALCATEL_EncodeString(), crashing Gammu and potentially overwriting the saved return address. A detailed public PoC reference exists (fixture-generation script plus ASan trace in the GHSA advisory); it is not verified as working code-execution exploit code, and reproduction was shown against an emulated handset only.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 28, 2026

Stack-based buffer overflow in Gammu's Alcatel handset driver (libgammu, all versions before 1.45.2) lets an attacker who supplies a crafted backup file overwrite roughly 212 bytes of stack memory when the victim restores it to an attached Alcatel-family phone via 'gammu restore' or 'addnew'. Exploitation is local, high complexity and requires user interaction: the victim must perform the restore, an Alcatel driver must be selected (explicitly through 'model = alcatel' or auto-selected when AT identification such as 'OT - C55x' maps to the F_ALCATEL feature), and the backup must carry a phonebook text field of about 200 GSM extension characters that the encoder expands two-for-one. The researchers reproduced stack corruption against an emulated handset and published a working PoC backup generator, but there is no confirmed active exploitation (not in CISA KEV) and physical-device and vCard/LDIF delivery paths remain unverified; version 1.45.2 fixes the flaw.

RemediationAI

Upgrade to Gammu 1.45.2 (https://github.com/gammu/gammu/releases/tag/1.45.2), which contains commit a1c60cf0888052dd489d416a817b24d35dca2689: ALCATEL_EncodeString() now encodes into a local scratch buffer and rejects any fully encoded field longer than ALCATEL_MAX_FIELD_BYTES (187, the largest payload that fits the 200-byte create-field buffer written from offset 11 plus its length prefix and terminating NUL), rejects UCS-2 values that would not fit, restores the input character count before the write, and returns ERR_INVALIDDATA, with that error propagated from ALCATEL_AddCategoryText(); the commit also adds a regression test (tests/alcatel-encode-bounds.c) covering 50-, 93-, 94- and 200-character '~' inputs plus the V1.1 Unicode path. The trade-off of the fix is that the complete encoded field is rejected rather than truncated, so legitimate values whose encoded form exceeds 187 bytes - for example a 200-character extension-character Note - now fail with ERR_INVALIDDATA instead of being written, while ordinary text such as 150 'A' characters still encodes in full. Until the upgrade is applied, exposure is gated by the restore precondition, so only restore backup files from trusted sources and avoid the vulnerable path by not driving Alcatel-family handsets with this build (do not set 'model = alcatel', and be aware that AT identification mapping a device to the F_ALCATEL feature selects the same driver automatically), since the overflow is only reached through that driver's write path; details are in the GHSA advisory and the VulnCheck advisory referenced above.

Affected VersionsENISA

Gammu 0 <1.45.2

Affected Packages

euvd gammu fix: 1.45.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libgammu drives Alcatel handsets over a proprietary binary protocol, and its phonebook encoder converts an internal text field into the handset's 7-bit default alphabet. In ALCATEL_EncodeString(), characters outside the base alphabet are emitted by EncodeDefault() in libgammu/misc/coding/coding.c as two-byte escape sequences (0x1b followed by the mapped byte) with no bound on the destination, and the length variable is never compared against the caller's buffer size. ALCATEL_CreateField() supplies a 200-byte stack array and points the encoder at buffer + 11, so a 200-character field of extension characters (such as ~, ^, {, }, backslash, [, ], | or the euro sign) expands to 400 encoded bytes written through buffer + 412 - 212 bytes past the array - followed by a terminating NUL one byte further out. The attacker-controlled data arrives in GSM_SubMemoryEntry.Text, a 402-byte member ((GSM_PHONEBOOK_TEXT_LENGTH + 1) * 2) that the backup reader (ReadBackupTextLen, libgammu/service/backup/backtext.c) fills only up to its own sizeof, so a 200-character field passes through intact. The decoding counterpart ALCATEL_DecodeString() truncates on both branches, but the encoding side had no equivalent check. This is CWE-121 stack-based buffer overflow (also CWE-787 out-of-bounds write), observed as a stack-smashing abort on a hardened build and as a SIGSEGV with the saved return address overwritten by payload bytes on an unhardened build; the trigger is a restore of a crafted file to an Alcatel-selected device, and the advisory states that only the gammu restore path was actually executed, that reproduction required an emulated Alcatel handset (no physical device was tested), and that vCard and LDIF readers populating the same field were identified in source review but never executed.

Know when Gammu gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.3 HIGH
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
vuln.today AI 7.0 HIGH

Local file-driven trigger needing an attached Alcatel phone and a user-initiated restore gives AV:L/AC:H/UI:R; no Gammu privileges needed (PR:N); impact set to the code-execution ceiling the overflow permits.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-121 (also CWE-787) stack-based buffer overflow in ALCATELEncodeString(), libgammu/phone/alcatel/alcatel.c.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity stack-based buffer overflow in Gammu's Alcatel driver could allow local attackers to corrupt memory when victims restore crafted backup files to Alcatel phones, potentially leading to further compromise. While exploitation requires local access and user interaction, the availability of a working PoC means the risk is credible, and organizations using Gammu for handset management should update to version 1.45.2 to mitigate.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche open-source legacy-phone tool; Alcatel driver path rarely used
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Vendor StatusVendor

Debian

gammu
Release Status Fixed Version Urgency
bookworm vulnerable 1.42.0-8 -
trixie vulnerable 1.42.0-10 -
forky vulnerable 1.45.0-2 -
sid fixed 1.45.2-1 -
(unstable) fixed 1.45.2-1 -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy