{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.23.95"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.23.95"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "dc19fcc7da58e8cf84ba1ec417e24b04609feb23"
            }
          ],
          "repo": "https://github.com/mchehab/zbar",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121942.json"
  },
  "details": "ZBar through 0.23.95 contains an out-of-bounds read vulnerability in _zbar_sq_decode() in zbar/sqcode.c that allows attackers to read heap memory outside the image buffer via crafted SQ code images. Attackers can supply an image with a skewed SQ code finder pattern near the edge, producing unchecked sample coordinates that crash the decoder and leak bytes into output.",
  "id": "CVE-2026-121942",
  "modified": "2026-11-05T21:16:00.378126364Z",
  "published": "2026-11-04T12:31:20.522Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121942.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-read"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-121942"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/zbar-through-0.23.95-out-of-bounds-read-via-zbar-sq-decode-in-sqcode-c"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/mchehab/zbar/issues/351"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/mchehab/zbar"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567"
    },
    {
      "type": "EVIDENCE",
      "url": "https://hackmd.io/@haindpwn/cve-2026-121942-zbar-sqcode-sampling-oob-read"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c"
}