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.
PUBLISHED5.2CWE-121
Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()
Problem type
Affected products
Gammu
Gammu
< 1.45.2 - AFFECTED
References
GitHub Security Advisory (GHSA-f954-jx97-g68w)
https://github.com/gammu/gammu/security/advisories/GHSA-f954-jx97-g68w
github.com
https://github.com/gammu/gammu/commit/6ea5148f35995aa8ca02b0c5e4654a125405e799
Gammu 1.45.2 Release Notes
https://github.com/gammu/gammu/releases/tag/1.45.2
github.com
https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L165-L189
github.com
https://github.com/gammu/gammu
VulnCheck Advisory: Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()
https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-savebackuptext
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-138164Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-138164",
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"dateUpdated": "2026-11-28T02:21:50.066Z",
"dateReserved": "2026-11-28T02:15:01.998Z",
"datePublished": "2026-11-28T02:21:50.066Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck",
"dateUpdated": "2026-11-28T02:21:50.066Z"
},
"datePublic": "2026-11-09T00:00:00.000Z",
"title": "Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"vendor": "Gammu",
"product": "Gammu",
"repo": "https://github.com/gammu/gammu",
"defaultStatus": "unaffected",
"versions": [
{
"version": "0",
"status": "affected",
"versionType": "semver",
"lessThan": "1.45.2"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "Stack-based Buffer Overflow",
"cweId": "CWE-121",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/gammu/gammu/security/advisories/GHSA-f954-jx97-g68w",
"name": "GitHub Security Advisory (GHSA-f954-jx97-g68w)",
"tags": [
"vendor-advisory"
]
},
{
"url": "https://github.com/gammu/gammu/commit/6ea5148f35995aa8ca02b0c5e4654a125405e799",
"tags": [
"patch"
]
},
{
"url": "https://github.com/gammu/gammu/releases/tag/1.45.2",
"name": "Gammu 1.45.2 Release Notes",
"tags": [
"release-notes"
]
},
{
"url": "https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L165-L189",
"tags": [
"technical-description"
]
},
{
"url": "https://github.com/gammu/gammu",
"tags": [
"product"
]
},
{
"url": "https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-savebackuptext",
"name": "VulnCheck Advisory: Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()",
"tags": [
"third-party-advisory"
]
}
],
"metrics": [
{
"format": "CVSS"
},
{
"format": "CVSS",
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"availabilityImpact": "NONE",
"baseScore": 3.3,
"baseSeverity": "LOW"
}
}
],
"credits": [
{
"lang": "en",
"value": "Deus Rex",
"type": "finder"
}
]
}
}
}