Skip to main content

Gammu CVE-2026-138161

| EUVDEUVD-2026-137552 HIGH
Classic Buffer Overflow (CWE-120)
2026-11-28 VulnCheck GHSA-x549-h79p-3567
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 400-byte MD5 value
  2. Delivery
    Deliver file to Gammu user
  3. Exploit
    Victim runs gammu convertbackup or restore
  4. Execution
    strcpy overflows MD5Original[100] in LoadBackup
  5. Impact
    Corrupt adjacent pointers, process crash (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
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 run 'gammu convertbackup' (or a restore) on an attacker-supplied text backup file whose [Checksum] section contains an 'MD5' value longer than the expected 32 hexadecimal characters (400 bytes demonstrated), which LoadBackup() copies unchecked via strcpy() into the fixed char MD5Original[100] field. Limiting factors that reduce realistic risk: the vector is local (AV:L) and needs user interaction (the victim must obtain and process the crafted file through the Gammu CLI - it is not remotely triggerable without delivery and induced processing); hardened builds (_FORTIFY_SOURCE / -fstack-protector-strong) convert the overflow into a controlled __strcpy_chk abort rather than exploitable corruption; and only the convertbackup entry point was tested, with restore commands and downstream front-ends not verified.

Impact

This is a genuine-but-bounded issue, not a drop-everything emergency. The signals point consistently to limited real-world risk: the input CVSS 4.0 vector is AV:L (local attack vector, not network) with UI:P, meaning an attacker cannot reach the flaw remotely - a victim must process an attacker-supplied backup file through the Gammu CLI. There is no CISA KEV listing and no EPSS score in the provided data, so neither active exploitation nor a modeled exploitation probability is available to raise urgency; the only priority signal is the vuln.today 'this_week' decision label, which is consistent with a patched local DoS rather than mass exploitation. A key conflict must be stated explicitly: the input CVSS 4.0 vector claims full confidentiality AND integrity impact (VC:H/VI:H/VA:H, score 8.5), but the originating Cyrex/Deus Rex GHSA advisory explicitly states 'We did not demonstrate code execution, confidentiality loss, or integrity impact' - only a deterministic process crash (availability) was reproduced 10/10. Treat the high C/I metrics as the theoretical ceiling for this CWE-787/CWE-120 out-of-bounds-write class, not confirmed impact; code execution would require defeating the FORTIFY and stack-protector mitigations that abort the hardened build. A working crash PoC is public (full reproduction script in the advisory), which distinguishes this from a purely theoretical finding, but publicly available crash code is not the same as active exploitation.

Exploit ScenarioDerived

An attacker crafts a Gammu text backup file whose [Checksum] MD5 value is an overlong string (the advisory demonstrates 400 bytes) and delivers it to a victim who runs 'gammu convertbackup' or a restore operation on it. The oversized value is copied via strcpy() into the fixed 100-byte MD5Original field, corrupting adjacent GSM_Backup object state and terminating the process (FORTIFY abort on hardened builds, SIGSEGV otherwise). A public proof-of-concept exists in the vendor advisory, reproduced 10 of 10 runs, but it demonstrates only a crash - code execution was not achieved; because this is local (AV:L) and requires the user to process the malicious file (UI:P), exploitation depends on social delivery rather than remote reach.

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

Gammu before 1.45.2 contains an unchecked strcpy() in LoadBackup() that copies the attacker-controlled MD5 checksum from a text backup into the fixed-size GSM_Backup.MD5Original[100] field, overflowing into adjacent backup fields and entry pointers. A victim must load a crafted .backup file through the Gammu CLI (gammu convertbackup, or a restore path) and the affected code is reached unauthenticated, but the attack is local and requires that user interaction. The demonstrated outcome is a deterministic process abort - a FORTIFY __strcpy_chk failure on hardened builds or a SIGSEGV through the corrupted state on plain builds - with code execution possible in principle for this bug class but not demonstrated; there is no CISA KEV entry and no confirmed active exploitation, and a public crash reproducer is published in the upstream advisory.

RemediationAI

Vendor-released patch: upgrade to Gammu 1.45.2, which validates that the [Checksum] MD5 value is exactly 32 hexadecimal characters and rejects anything else with ERR_CORRUPTED before copying (release: https://github.com/gammu/gammu/releases/tag/1.45.2, fix commit: https://github.com/gammu/gammu/commit/91f62b818edaa221276d898e19ad4d092c36cdcb, advisory: https://github.com/gammu/gammu/security/advisories/GHSA-cp4c-2vv3-mrr7); distributions and embedders that vendor libgammu can backport that commit, which applies cleanly to 1.45.1-era sources. Until patched, treat backup files as untrusted input and only run gammu convertbackup or a restore against files from a trusted source, since the vulnerable copy is reached during parsing with no other gate; compiling with -D_FORTIFY_SOURCE=3 and -fstack-protector-strong was observed to convert the overflow into an immediate controlled __strcpy_chk abort instead of corrupting object state, which reduces memory-corruption risk but still permits a denial-of-service abort on a crafted file and is not a substitute for the fixed version.

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

Gammu is a library and CLI for GSM phones and modems; its text-backup format is parsed by ReadCFGText() and assembled in LoadBackup() in libgammu/service/backup/backtext.c (the vulnerable line is around 3282 in 1.45.1). The value in the backup's [Checksum] section is handed directly to strcpy(backup->MD5Original, readvalue) where the destination is declared char MD5Original[100]; the adjacent MD5Calculated field and backup entry pointers follow it inside the same GSM_Backup object. This is CWE-120 (buffer copy without input size checking), reported upstream also as CWE-787 (out-of-bounds write). The reachable CLI chain is ConvertBackup() -> GSM_ReadBackupFile() -> LoadBackup(), so gammu convertbackup on a file with a 400-byte MD5 value corrupts later object state. Because the write stays inside the larger GSM_Backup allocation, AddressSanitizer does not report the copy itself; it reports the downstream SEGV in SavePbkEntry (backtext.c:317) reached from SaveBackup (backtext.c:1663). The upstream fix validates that the checksum is exactly 32 hexadecimal characters and returns ERR_CORRUPTED otherwise, then copies with a bounded memcpy, and adds a regression test covering 31, 32, 33, 99, 100 and 400-byte values plus a non-hex character.

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 5.5 MEDIUM

Local file processed by the CLI (AV:L) with deterministic 10/10 trigger (AC:L) and no auth (PR:N) but required victim action (UI:R); only availability was demonstrated, so C:N/I:N despite the code-execution ceiling.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/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 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.

Technical POC Analysis

Note on identifiers: the upstream advisory records no CVE ID and rates the demonstrated impact Moderate 5.5 (AV:L/AC:L/PR:N/UI:R/C:N/I:N/A:H) with a 7.0 potential ceiling.

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

CVE-2026-138161 is a high-severity vulnerability in Gammu, an open-source tool for mobile phone management. A user who loads a specially crafted backup file can trigger a crash, and potentially arbitrary code execution, affecting the confidentiality, integrity, and availability of the system where Gammu runs. Leadership should care because staff or automated systems using Gammu may process untrusted backup files, and although the attack requires local user interaction, a single malicious file could lead to system compromise or operational disruption.

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-gateway utility, limited production 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.

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