Skip to main content

Gammu EUVDEUVD-2026-137553

| CVE-2026-138160 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-11-28 VulnCheck GHSA-9gmm-wvwr-7r73
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft backup file with overlong quoted text
  2. Delivery
    Deliver to victim for import/conversion
  3. Exploit
    gammu convertbackup decodes value in ReadBackupTextLen
  4. Execution
    Unbounded write overflows 10,000-byte stack buffer
  5. Impact
    Process crash with 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 the victim to process an attacker-crafted Gammu backup file through 'gammu convertbackup', a restore operation, or a GSM_ReadBackupFile call. The crafted file must contain a calendar Text field whose quoted value exceeds the decoder's limit - roughly more than 5,000 UTF-16 characters on the default Unicode branch (files beginning with a UTF-16 BOM 0xFF 0xFE / 0xFE 0xFF, which is how Gammu writes its own backups) or more than 10,000 characters on the non-Unicode fallback branch - so that DecodeUnicodeSpecialChars/DecodeSpecialChars overflow the fixed 10,000-byte decodedvalue stack array in ReadBackupTextLen() before any length check runs. Limiting factors that reduce realistic risk: the attack vector is local (AV:L) with no network exposure, and it requires user interaction (UI:P) - the victim must actively import, convert, or read the malicious backup; affected is Gammu before 1.45.2; and the demonstrated outcome is process termination, with code execution not demonstrated.

Impact

The CVSS 4.0 base score of 8.5 (High) is driven by VC:H/VI:H/VA:H, but the vector itself tempers real-world urgency: AV:L means there is no network-facing attack surface, and UI:P requires the victim to passively process an attacker-supplied file, so this is not a remotely automatable, wormable flaw. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-fire-drill priority. Exploitation status: not listed in CISA KEV, so there is no confirmed active exploitation; however a reproducible public PoC reference exists in the GHSA advisory, so this is not a 'no public exploit' case. No EPSS score was supplied in the input, so exploitation-probability cannot be quantified here. A notable gap between the metadata and the demonstrated impact: the vendor vector and the 'RCE' tag assert full confidentiality/integrity/code-execution impact, but the researchers (Cyrex Deus Rex) explicitly state they demonstrated only process termination after memory corruption and did NOT demonstrate code execution, confidentiality loss, or integrity impact - so the high VC/VI metrics reflect plausible worst-case potential of a stack overflow, not proven outcomes. There is also a CWE labeling difference (input CWE-121 stack overflow vs GHSA CWE-787 out-of-bounds write); these are consistent descriptions of the same defect, not a real conflict. Net: a genuine, patch-now-this-week stack buffer overflow, but current evidence supports reliable denial-of-service rather than confirmed remote code execution, and the local/user-interaction requirement limits mass exploitation.

Exploit ScenarioDerived

An attacker crafts a malicious Gammu text backup file containing a calendar Text field with an overlong quoted value and convinces a victim to process it (e.g. via 'gammu convertbackup', a restore, or any GSM_ReadBackupFile call). During decoding the value is written into a fixed 10,000-byte stack buffer with no bound, overflowing it and crashing the process, with potential for code execution. A reproducible public PoC in the GHSA advisory reliably triggers the overflow (10/10 runs on both the Unicode and non-Unicode branches), though the researchers did not demonstrate code execution; the attack is local and requires user interaction (AV:L/UI:P).

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 backup text decoder (ReadBackupTextLen) lets a crafted backup file corrupt stack memory whenever a victim runs 'gammu convertbackup', performs a restore, or calls GSM_ReadBackupFile on it, terminating the process and potentially enabling code execution. Every Gammu release before 1.45.2 is affected, and the reachable default is the UTF-16 branch that Gammu itself writes, so an apparently ordinary Gammu export containing an over-long calendar Text value is enough to trigger it. The attack is local and requires the victim to actively import or convert the malicious file (unauthenticated per the supplied CVSS vectors, PR:N, but UI:P), the upstream GHSA publishes a proof-of-concept that reproducibly crashes hardened and unhardened builds, code execution was not demonstrated by the reporters, and no confirmed active exploitation is reported in the supplied data.

RemediationAI

Vendor-released patch: Gammu 1.45.2 (https://github.com/gammu/gammu/releases/tag/1.45.2), shipped via commits 8063e55b23b575ee0dc645ce6e94d8bdade0c0cf and f224198cc316b590ac0c853aa98cfbcf491a16fe, which bound both decoders in ReadBackupTextLen() - replacing the single 10,000-byte 'decodedvalue' array with a maxlen-sized buffer and rejecting Unicode values whose length reaches sizeof(decodedvalue)/2 and non-Unicode values whose decoded length reaches sizeof(decodedvalue) - and add a regression test (tests/backup-text-decoder.c) covering escaped and unescaped, Unicode and non-Unicode values at 128, 4096, 4097, 9990 and 20000 characters. Until upgrading, restrict backup processing to files from trusted sources: do not run 'gammu convertbackup', restore, or GSM_ReadBackupFile against backups of unknown provenance, and gate such workflows behind manual review, accepting that this blocks legitimate migration of user-created backups. If backporting the fix instead of upgrading, port both hunks - a change that bounds only DecodeSpecialChars leaves the Unicode default path overflowing, and a fix that clamps rather than rejects an over-long value still drives the non-Unicode field into the separate EncodeHexBin/SaveBackupText writer sink, so rejecting the value outright (dropping that field's data) is the safer trade-off.

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

The flaw is a classic CWE-121 stack buffer overflow (tracked as CWE-787 in the upstream GHSA) inside libgammu/service/backup/backtext.c. ReadBackupTextLen() declares a single fixed 10,000-byte stack array, 'decodedvalue', and decodes attacker-controlled backup text into it before any length validation: on the Unicode branch it calls DecodeUnicodeSpecialChars(decodedvalue, readvalue+2) at backtext.c:241 (default for Gammu's own backups, selected by LoadBackup() when the file starts with a UTF-16 BOM 0xFF 0xFE or 0xFE 0xFF), and on the non-Unicode fallback it calls DecodeSpecialChars(decodedvalue, readvalue+1) at backtext.c:276 with no preceding check at all. Neither coding.c helper bounds its destination - the Unicode decoder writes two bytes per source character until the UTF-16 terminator (coding.c:122/127) and the fallback writes one byte per character until the NUL terminator (coding.c:160/165). The length check that exists on the Unicode path (backtext.c:242) runs only after the unbounded write has already occurred, and is additionally written against 'maxlen' (8194 bytes for a calendar Text field) rather than sizeof(decodedvalue), so it cannot prevent the overflow. Reachability runs ConvertBackup() -> LoadBackup() -> ReadCalendarEntry() (backtext.c:2224) -> ReadBackupTextLen(); the executed calendar Text field is read through ReadBackupText() so both decoders are hit from ordinary backup input. The upstream report notes a related, separately reported writer-path sink, EncodeHexBin via SaveBackupText (backtext.c:189), which convertbackup reaches on write-back if the read-path fix clamps rather than rejects an over-long value. Reproductions on x86_64 at commit 883554058310be3a28d7234e7f08c04488b93cef gave 'stack smashing detected' (exit 134) on FORTIFY/stack-protector builds and SIGSEGV (exit 139) on unhardened builds, 10/10 per input, with 128-character controls clean.

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 8.5 HIGH
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
vuln.today AI 7.8 HIGH

File is processed locally and the victim must open/convert it (AV:L, UI:R); no privileges needed (PR:N); attacker-controlled stack overwrite plausibly yields high C/I/A, though only a crash (A:H) was actually demonstrated.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/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
Low
Attack Requirements
None
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 ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.

Technical POC Analysis

Bug class: stack-based buffer overflow (CWE-121; the GHSA records the write as CWE-787, out-of-bounds write).

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 buffer overflow in Gammu (versions before 1.45.2) allows a malicious backup file to crash or potentially compromise systems when imported. Organizations using Gammu for mobile data backup/restore face operational disruption and risk of code execution; leadership should prioritize patching because the exploit requires user interaction and the product is common in telecom and field operations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
niche open-source mobile-phone/SMS utility, limited enterprise footprint
Social Media
4
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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