{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.45.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "91f62b818edaa221276d898e19ad4d092c36cdcb"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "1.45.2",
                "range": [
                  {
                    "fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
            },
            {
              "fixed": "91f62b818edaa221276d898e19ad4d092c36cdcb"
            }
          ],
          "repo": "https://github.com/gammu/gammu",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-cp4c-2vv3-mrr7"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-120"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138161.json"
  },
  "details": "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.",
  "id": "CVE-2026-138161",
  "modified": "2026-11-28T03:45:26.828276860Z",
  "published": "2026-11-28T02:21:53.445Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138161.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gammu/gammu"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L3282"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gammu/gammu/commit/91f62b818edaa221276d898e19ad4d092c36cdcb"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gammu/gammu/releases/tag/1.45.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gammu/gammu/security/advisories/GHSA-cp4c-2vv3-mrr7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138161"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/gammu-before-1.45.2-buffer-overflow-via-loadbackup-md5-checksum"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum"
}