{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "last_affected": "4.14.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "5.0.0"
                  },
                  {
                    "last_affected": "5.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "c12243cf4fccf5df7b0270a32883986b373dca7b"
            },
            {
              "last_affected": "0654a42e19215ef25b1d367d822f3c630447e7c7"
            },
            {
              "introduced": "40738fb16ceddb5fb3fea747585f7ce6abb0605b"
            },
            {
              "last_affected": "e4f78fbcf1a773fbed69e14500e8b734963eb585"
            },
            {
              "fixed": "a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1"
            }
          ],
          "repo": "https://github.com/opencv/opencv",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137083.json"
  },
  "details": "OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 contains an out-of-bounds read vulnerability in the built-in MJPEG encoder when writing grayscale frames due to incorrect level shifting in convertToYUV(). Attackers controlling pixel content written as grayscale MJPEG video can trigger unchecked cat_table and huff_dc_tab lookups, leaking adjacent or uninitialized memory into the output file or crashing the process.",
  "id": "CVE-2026-137083",
  "modified": "2026-11-25T20:45:18.527761598Z",
  "published": "2026-11-25T19:32:51.280Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137083.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/opencv/opencv"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308"
    },
    {
      "type": "FIX",
      "url": "https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/opencv/opencv/pull/29859"
    },
    {
      "type": "FIX",
      "url": "https://github.com/opencv/opencv/pull/31094"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137083"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/opencv-3.0.0-through-4.14.0-and-5.0.0-through-5.1.0-mjpeg-encoder-out-of-bounds-read"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read"
}