CVE-2025-68114

Source
https://cve.org/CVERecord?id=CVE-2025-68114
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68114.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-68114
Aliases
  • GHSA-85f5-6xr3-q76r
Downstream
Related
Published
2025-12-17T21:14:31.226Z
Modified
2026-07-22T04:27:27.967642Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow
Details

Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, an unchecked vsnprintf return in SStreamconcat lets a malicious csopt_mem.vsnprintf drive SStream’s index negative or past the end, leading to a stack buffer underflow/overflow when the next write occurs. Commit 2c7797182a1618be12017d7d41e0b6581d5d529e fixes the issue.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-120",
        "CWE-124"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68114.json"
}
References

Affected packages

Git / github.com/capstone-engine/capstone

Affected ranges

Type
GIT
Repo
https://github.com/capstone-engine/capstone
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "6.0.0-alpha1"
        },
        {
            "last_affected": "6.0.0-alpha1"
        },
        {
            "introduced": "6.0.0-alpha2"
        },
        {
            "last_affected": "6.0.0-alpha2"
        },
        {
            "introduced": "6.0.0-alpha3"
        },
        {
            "last_affected": "6.0.0-alpha3"
        },
        {
            "introduced": "6.0.0-alpha4"
        },
        {
            "last_affected": "6.0.0-alpha4"
        },
        {
            "introduced": "6.0.0-alpha5"
        },
        {
            "last_affected": "6.0.0-alpha5"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": [
        "cpe:2.3:a:capstone-engine:capstone:6.0.0:alpha1:*:*:*:*:*:*",
        "cpe:2.3:a:capstone-engine:capstone:6.0.0:alpha2:*:*:*:*:*:*",
        "cpe:2.3:a:capstone-engine:capstone:6.0.0:alpha3:*:*:*:*:*:*",
        "cpe:2.3:a:capstone-engine:capstone:6.0.0:alpha4:*:*:*:*:*:*",
        "cpe:2.3:a:capstone-engine:capstone:6.0.0:alpha5:*:*:*:*:*:*"
    ]
}

Affected versions

6.*
6.0.0-alpha1
6.0.0-alpha2
6.0.0-alpha3
6.0.0-alpha4
6.0.0-alpha5

Database specific

vanir_signatures_modified
"2026-07-22T04:27:27Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68114.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "tests/unit/include/unit_test.h"
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2025-68114-4a039f54",
        "source": "https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "38183512480943367621915465734839263480",
                "179056925853330904306037807417288304673",
                "156955737411414667375753507208202176786",
                "35542490554786979523313654169079774015"
            ]
        }
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "SStream.h"
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2025-68114-5b6fd1e1",
        "source": "https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "104799443181680666571220090827433126101",
                "145749487541825035222504241676669124560",
                "272480164307369866905527421015921909006",
                "232719784416819949372085967004347915752"
            ]
        }
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "tests/unit/sstream.c"
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2025-68114-b6529f60",
        "source": "https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "26580799822513680810900071855432266443",
                "272491423694404427872882383680314605773",
                "122546753726241026889451074095444852957",
                "7451917664364825780596204956858144685",
                "193528195158813550690072624422728662671",
                "23233932794032932727549210811757876274",
                "278501653130094257636890085876297442158"
            ]
        }
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "SStream.c",
            "function": "SStream_concat"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2025-68114-c0484747",
        "source": "https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e",
        "digest": {
            "function_hash": "200822371892265313599121659825426363866",
            "length": 568.0
        }
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "tests/unit/sstream.c",
            "function": "main"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2025-68114-c72022e8",
        "source": "https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e",
        "digest": {
            "function_hash": "276332624018350905365492612971771323355",
            "length": 537.0
        }
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "SStream.c"
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2025-68114-f8076c96",
        "source": "https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "186233073925322802491837053965931420149",
                "332968745551372891548853607419313225041",
                "208872343785869807590490152485531481876",
                "112234655490822411310640889670600863614"
            ]
        }
    }
]