{
  "id": "CVE-2026-50144",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-50144",
  "published_at": "2026-07-15T20:04:07.099Z",
  "title": "ncnn: Out-of-bounds heap write in ParamDict::load_param via unchecked negative parameter id",
  "vendor": "Tencent",
  "product": "ncnn",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "ncnn is a high-performance neural network inference framework optimized for the mobile platform. In commit e54f7b1f88434e1d844ea0551b880a1cfb079ce1 and earlier, ncnn allows an out-of-bounds heap write in ncnn::ParamDict::load_param() when Net::load_param() loads a malicious .param model file because the parsed parameter id is checked only against id \u003e= NCNN_MAX_PARAM_COUNT, allowing a negative id to index before the params[NCNN_MAX_PARAM_COUNT] array. This vulnerability is fixed by commit 5a0288f255daa6c3294f77109f67718e434ec020.",
  "cwe": "CWE-20",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Tencent",
        "product": "ncnn",
        "ranges": [
          "\u003c 5a0288f255daa6c3294f77109f67718e434ec020",
          "\u003c= 20260526"
        ],
        "fixed_in": [
          "5a0288f255daa6c3294f77109f67718e434ec020"
        ]
      }
    ],
    "upgrade": [
      "Upgrade ncnn to 5a0288f255daa6c3294f77109f67718e434ec020 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Tencent/ncnn/security/advisories/GHSA-jxmc-3mv6-7pwr"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
