CVE-2018-5268Opencv
Medium 5.5
Follow: this CVE · Opencv · Opencv We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- Yes
- Published
- Jan 8, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Opencv.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | opencv-contrib-python |
< 3.4.1.15 |
3.4.1.15 |
pip install "opencv-contrib-python>=3.4.1.15" |
| PyPI | opencv-contrib-python |
< 3.4.1.15 |
3.4.1.15 |
pip install "opencv-contrib-python>=3.4.1.15" |
| PyPI | opencv-python |
< 3.4.1.15 |
3.4.1.15 |
pip install "opencv-python>=3.4.1.15" |
| PyPI | opencv-python |
< 3.4.1.15 |
3.4.1.15 |
pip install "opencv-python>=3.4.1.15" |
Per OSV / GitHub Advisories (GHSA-9g8h-pjm4-q92p, PYSEC-2026-705, PYSEC-2026-2814). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| opencv | opencv | 3.3.1 |
| debian | debian_linux | 7.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- github.com Exploit Issue Tracking Mailing List
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory