# CVE-2018-5268

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-01-08 · Modified: 2024-08-05
- Aliases: GHSA-9g8h-pjm4-q92p, PYSEC-2026-2814, PYSEC-2026-705, UBUNTU-CVE-2018-5268, DEBIAN-CVE-2018-5268
- Record: https://cvemate.com/vulnerability/CVE-2018-5268 · JSON: https://cvemate.com/vulnerability/CVE-2018-5268/json

## Description

```text
In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.526%, percentile 75.554%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian opencv (Debian): \< 3.2.0+dfsg-6
- ubuntu opencv (Ubuntu): \< 2.4.9.1+dfsg-1.5ubuntu1.1 \| \< 3.2.0+dfsg-4ubuntu0.1
- debian debian\_linux: 7.0 \| 8.0 \| 9.0
- opencv opencv: 3.3.1
- PyPI opencv-contrib-python (PyPI): \< 3.4.1.15
- PyPI opencv-python (PyPI): \< 3.4.1.15

## References

- <https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html>
- <http://www.securityfocus.com/bid/106945>
- <https://github.com/opencv/opencv/issues/10541>
- <https://lists.debian.org/debian-lts-announce/2018/04/msg00019.html>
- <https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-5268>
- <https://github.com/opencv/opencv/pull/10566/commits/435a3e337bd9d4e11af61cf8b8afca067bf1a8aa>
- <https://github.com/opencv/opencv-python>
- <https://pypi.org/project/opencv-python>
- <https://github.com/advisories/GHSA-9g8h-pjm4-q92p>
- <https://pypi.org/project/opencv-contrib-python>
- <https://ubuntu.com/security/CVE-2018-5268>
- <https://www.cve.org/CVERecord?id=CVE-2018-5268>
- <https://security-tracker.debian.org/tracker/CVE-2018-5268>

---

Data as of 2026-12-05T07:29:29.557Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
