2026-11-28 2:21CVE-2026-138162VulnCheck
PUBLISHED5.2CWE-121

Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()

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.

Problem type

Affected products

Gammu

Gammu

< 1.45.2 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-138162
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-138162",
    "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
    "assignerShortName": "VulnCheck",
    "dateUpdated": "2026-11-28T02:21:52.313Z",
    "dateReserved": "2026-11-28T02:15:01.279Z",
    "datePublished": "2026-11-28T02:21:52.313Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "shortName": "VulnCheck",
        "dateUpdated": "2026-11-28T02:21:52.313Z"
      },
      "datePublic": "2026-11-09T00:00:00.000Z",
      "title": "Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()",
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "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-3x76-xc9w-q78p",
          "name": "GitHub Security Advisory (GHSA-3x76-xc9w-q78p)",
          "tags": [
            "vendor-advisory"
          ]
        },
        {
          "url": "https://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689",
          "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/phone/alcatel/alcatel.c#L876-L916",
          "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-alcatel-encodestring",
          "name": "VulnCheck Advisory: Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()",
          "tags": [
            "third-party-advisory"
          ]
        }
      ],
      "metrics": [
        {
          "format": "CVSS"
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "attackVector": "LOCAL",
            "attackComplexity": "HIGH",
            "privilegesRequired": "NONE",
            "userInteraction": "REQUIRED",
            "scope": "UNCHANGED",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "availabilityImpact": "HIGH",
            "baseScore": 7,
            "baseSeverity": "HIGH"
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Deus Rex",
          "type": "finder"
        }
      ]
    }
  }
}