Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.
PUBLISHED5.2CWE-122
Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()
Problem type
Affected products
Gammu
Gammu
< 1.45.2 - AFFECTED
References
GitHub Security Advisory (GHSA-vppj-6q2c-vq79)
https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79
github.com
https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e
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#L2814-L2896
github.com
https://github.com/gammu/gammu
VulnCheck Advisory: Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()
https://www.vulncheck.com/advisories/gammu-before-1.45.2-heap-buffer-overflow-via-readwapsettingsentry
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-138163Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-138163",
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"dateUpdated": "2026-11-28T02:21:51.192Z",
"dateReserved": "2026-11-28T02:15:01.644Z",
"datePublished": "2026-11-28T02:21:51.192Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck",
"dateUpdated": "2026-11-28T02:21:51.192Z"
},
"datePublic": "2026-11-09T00:00:00.000Z",
"title": "Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()",
"descriptions": [
{
"lang": "en",
"value": "Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution."
}
],
"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": "Heap-based Buffer Overflow",
"cweId": "CWE-122",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79",
"name": "GitHub Security Advisory (GHSA-vppj-6q2c-vq79)",
"tags": [
"vendor-advisory"
]
},
{
"url": "https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e",
"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#L2814-L2896",
"tags": [
"technical-description"
]
},
{
"url": "https://github.com/gammu/gammu",
"tags": [
"product"
]
},
{
"url": "https://www.vulncheck.com/advisories/gammu-before-1.45.2-heap-buffer-overflow-via-readwapsettingsentry",
"name": "VulnCheck Advisory: Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()",
"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:H/I:H/A:H",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH"
}
}
],
"credits": [
{
"lang": "en",
"value": "Deus Rex",
"type": "finder"
}
]
}
}
}