2026-11-28 2:21CVE-2026-138161VulnCheck
PUBLISHED5.2CWE-120

Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum

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.

Problem type

Affected products

Gammu

Gammu

< 1.45.2 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-138161
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-138161",
    "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
    "assignerShortName": "VulnCheck",
    "dateUpdated": "2026-11-28T02:21:53.445Z",
    "dateReserved": "2026-11-28T02:15:00.919Z",
    "datePublished": "2026-11-28T02:21:53.445Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "shortName": "VulnCheck",
        "dateUpdated": "2026-11-28T02:21:53.445Z"
      },
      "datePublic": "2026-11-09T00:00:00.000Z",
      "title": "Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum",
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "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": "Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')",
              "cweId": "CWE-120",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/gammu/gammu/security/advisories/GHSA-cp4c-2vv3-mrr7",
          "name": "GitHub Security Advisory (GHSA-cp4c-2vv3-mrr7)",
          "tags": [
            "vendor-advisory"
          ]
        },
        {
          "url": "https://github.com/gammu/gammu/commit/91f62b818edaa221276d898e19ad4d092c36cdcb",
          "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#L3282",
          "tags": [
            "technical-description"
          ]
        },
        {
          "url": "https://github.com/gammu/gammu",
          "tags": [
            "product"
          ]
        },
        {
          "url": "https://www.vulncheck.com/advisories/gammu-before-1.45.2-buffer-overflow-via-loadbackup-md5-checksum",
          "name": "VulnCheck Advisory: Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum",
          "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"
        }
      ]
    }
  }
}