p PatchFirst

CVE-2026-137083

CVE-2026-137083 · OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read

CVSS 5.8 · Medium · EPSS 0.2%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • opencvNo fix published
  • opencv Ubuntu Pro 14.04 LTSNo fix published
  • opencv Ubuntu Pro 16.04 LTSNo fix published
  • opencv Ubuntu Pro 18.04 LTSNo fix published
  • and 5 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="opencv"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • opencv

    Versions
    • ≥ 3.0.0, ≤ 4.14.0: Affected (semver)
    • ≥ 5.0.0, ≤ 5.1.0: Affected (semver)

    No fix published

  • opencv Ubuntu Pro 14.04 LTS

    Versions
    • 2.4.5+dfsg-0ubuntu4
    • 2.4.5+dfsg-0ubuntu5
    • 2.4.6.1+dfsg-2ubuntu2
    • 2.4.6.1+dfsg-2ubuntu3
    • 2.4.6.1+dfsg-2ubuntu4
    • 2.4.6.1+dfsg-2ubuntu5
    All versions (10)
    • 2.4.8+dfsg-1ubuntu1
    • 2.4.8+dfsg1-2ubuntu1
    • 2.4.8+dfsg1-2ubuntu1.2
    • 2.4.8+dfsg1-2ubuntu1.2+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu Pro 16.04 LTS

    Versions
    • 2.4.9+dfsg-1ubuntu6
    • 2.4.9.1+dfsg-1.2ubuntu1
    • 2.4.9.1+dfsg-1.3ubuntu1
    • 2.4.9.1+dfsg-1.5ubuntu1
    • 2.4.9.1+dfsg-1.5ubuntu1.1
    • 2.4.9.1+dfsg-1.5ubuntu1.1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu Pro 18.04 LTS

    Versions
    • 3.1.0+dfsg1-1~exp1ubuntu3
    • 3.2.0+dfsg-3
    • 3.2.0+dfsg-4
    • 3.2.0+dfsg-4build1
    • 3.2.0+dfsg-4build2
    • 3.2.0+dfsg-4ubuntu0.1
    All versions (9)
    • 3.2.0+dfsg-4ubuntu0.1+esm2
    • 3.2.0+dfsg-4ubuntu0.1+esm3
    • 3.2.0+dfsg-4ubuntu0.1+esm4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu 20.04 LTS

    Versions
    • 3.2.0+dfsg-6
    • 3.2.0+dfsg-6build1
    • 3.2.0+dfsg-6build2
    • 4.1.2+dfsg-4ubuntu3
    • 4.1.2+dfsg-5
    • 4.2.0+dfsg-4
    All versions (7)
    • 4.2.0+dfsg-5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu Pro 22.04 LTS

    Versions
    • 4.5.3+dfsg-1ubuntu1
    • 4.5.4+dfsg-9ubuntu2
    • 4.5.4+dfsg-9ubuntu4
    • 4.5.4+dfsg-9ubuntu4+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu 24.04 LTS

    Versions
    • 4.6.0+dfsg-13build1
    • 4.6.0+dfsg-13build3
    • 4.6.0+dfsg-13build5
    • 4.6.0+dfsg-13.1build2
    • 4.6.0+dfsg-13.1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu 26.10

    Versions
    • 4.10.0+dfsg-7ubuntu5
    • 4.10.0+dfsg-7ubuntu6
    • 4.10.0+dfsg-8ubuntu1
    • 4.10.0+dfsg-9ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencv Ubuntu 26.04 LTS

    Versions
    • 4.10.0+dfsg-5ubuntu1
    • 4.10.0+dfsg-6ubuntu4
    • 4.10.0+dfsg-7ubuntu2
    • 4.10.0+dfsg-7ubuntu3
    • 4.10.0+dfsg-7ubuntu4
    • 4.10.0+dfsg-7ubuntu5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →