Skip to content
Heist/ feed
Back to feed
High

capstone — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-67873

Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, Skipdata length is not bounds-checked, so a user-provided skipdata callback can make cs_disasm/cs_disasm_iter memcpy more than 24 bytes into cs_insn.bytes, causing a heap buffer overflow in the disassembly path. Commit cbef767ab33b82166d263895f24084b75b316df3 fixes the issue.

Products
capstone
Affected versions
3.0.4-0.1, 3.0.4-0.2, 3.0.4-3, 3.0.4-5, 4.0.1+really+3.0.5-1, 4.0.1+really+3.0.5-1build1, 4.0.2-3, 4.0.2-3build1, 4.0.2-5, 4.0.2-5.1, 4.0.2-5.1build1, 4.0.2-5ubuntu1, 5.0.5-1, 5.0.6-1, 5.0.6-1build1, 5.0.7-2, 5.0.9-1
Fixed versions
Not specified
CVEs
CVE-2025-67873
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:49 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-67873

core-osv · Original source

Published 17 Dec 2025, 22:16 UTC

Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, Skipdata length is not bounds-checked, so a user-provided skipdata callback can make cs_disasm/cs_disasm_iter memcpy more than 24 bytes into cs_insn.bytes, causing a heap buffer overflow in the disassembly path. Commit cbef767ab33b82166d263895f24084b75b316df3 fixes the issue.

osv:UBUNTU-CVE-2025-67873

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

capstone

Fixed versions: Not specified

Complete source record
{
  "id": "faf364c7aa3226d92d620851e546026a9a10692cf3b60d78dec063a5ab3708b2",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-67873",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-67873",
    "summary": "Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, Skipdata length is not bounds-checked, so a user-provided skipdata callback can make cs_disasm/cs_disasm_iter memcpy more than 24 bytes into cs_insn.bytes, causing a heap buffer overflow in the disassembly path. Commit cbef767ab33b82166d263895f24084b75b316df3 fixes the issue.",
    "evidence": "osv:UBUNTU-CVE-2025-67873",
    "products": [
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.4-0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.4-0.2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.4-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.0.4-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1+really+3.0.5-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1+really+3.0.5-1build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.2-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.0.2-3build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.0.2-5",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.2-5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.0.2-5ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.0.2-5.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.0.2-5.1build1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.5-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "5.0.6-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.7-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "5.0.9-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "capstone",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.6-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "5.0.6-1build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "5.0.7-2",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-67873",
      "aliases": [
        "UBUNTU-CVE-2025-67873"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "3.0.4-0.1",
            "3.0.4-0.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcapstone3",
                "binary_version": "3.0.4-0.2"
              },
              {
                "binary_name": "python-capstone",
                "binary_version": "3.0.4-0.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.0.4-3",
            "3.0.4-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcapstone3",
                "binary_version": "3.0.4-5"
              },
              {
                "binary_name": "python-capstone",
                "binary_version": "3.0.4-5"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "3.0.4-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.0.1+really+3.0.5-1",
            "4.0.1+really+3.0.5-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "capstone-tool",
                "binary_version": "4.0.1+really+3.0.5-1build1"
              },
              {
                "binary_name": "libcapstone3",
                "binary_version": "4.0.1+really+3.0.5-1build1"
              },
              {
                "binary_name": "python-capstone",
                "binary_version": "4.0.1+really+3.0.5-1build1"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "4.0.1+really+3.0.5-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.0.2-3",
            "4.0.2-3build1",
            "4.0.2-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "capstone-tool",
                "binary_version": "4.0.2-5"
              },
              {
                "binary_name": "libcapstone4",
                "binary_version": "4.0.2-5"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "4.0.2-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.0.2-5",
            "4.0.2-5ubuntu1",
            "4.0.2-5.1",
            "4.0.2-5.1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "capstone-tool",
                "binary_version": "4.0.2-5.1build1"
              },
              {
                "binary_name": "libcapstone4",
                "binary_version": "4.0.2-5.1build1"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "4.0.2-5.1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "5.0.5-1",
            "5.0.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "capstone-tool",
                "binary_version": "5.0.6-1"
              },
              {
                "binary_name": "libcapstone5",
                "binary_version": "5.0.6-1"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "5.0.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.0.7-2",
            "5.0.9-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "capstone-tool",
                "binary_version": "5.0.9-1"
              },
              {
                "binary_name": "libcapstone5",
                "binary_version": "5.0.9-1"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "5.0.9-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "capstone",
            "purl": "pkg:deb/ubuntu/capstone?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.0.6-1",
            "5.0.6-1build1",
            "5.0.7-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-67873.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "capstone-tool",
                "binary_version": "5.0.7-2"
              },
              {
                "binary_name": "libcapstone5",
                "binary_version": "5.0.7-2"
              },
              {
                "binary_name": "python3-capstone",
                "binary_version": "5.0.7-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:30.125548956Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-67873"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-67873",
        "https://www.cve.org/CVERecord?id=CVE-2025-67873",
        "https://github.com/capstone-engine/capstone/commit/cbef767ab33b82166d263895f24084b75b316df3",
        "https://github.com/capstone-engine/capstone/security/advisories/GHSA-hj6g-v545-v7jg"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-67873",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 357616,
  "published_at": "2025-12-17T22:16:00+00:00"
}