HOMEVULNERABILITIESCVE-2018-5268
MEDIUM

CVE-2018-5268

CWE-787Published: January 8, 2018· Updated: Jun 17, 2026

5.5
CVSS v3.1

Official Description

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.

NVD Source

Technical Analysis

CVE-2018-5268 requires local access, meaning attackers must already have a foothold on the target system.

Exploitation does not require any privileges, though user interaction (Required) is needed, which slightly reduces the risk of mass automated attacks.

A successful exploit results in availability disruption (denial of service), with a CVSS base score of 5.5.

From a weakness classification perspective (CWE-787): Out-of-bounds write vulnerabilities can lead to data corruption, crashes, or arbitrary code execution.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorLocal
Attack ComplexityLow
Privileges Req.None
User InteractionRequired
ScopeUnchanged
Impact
ConfidentialityNone
IntegrityNone
AvailabilityHigh
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected Vendors & Products

Debian1 product(s)
debian linux
opencv1 product(s)
opencv
Source: NVD CPE · 4 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (10)

http://www.securityfocus.com/bid/106945Third Party Advisory · VDB Entry
https://github.com/opencv/opencv/issues/10541Exploit · Issue Tracking · Mailing List · Third Party Advisory
http://www.securityfocus.com/bid/106945Third Party Advisory · VDB Entry
https://github.com/opencv/opencv/issues/10541Exploit · Issue Tracking · Mailing List · Third Party Advisory

Quick Facts

CVE IDCVE-2018-5268
CVSS Score5.5 / 10
SeverityMEDIUM
WeaknessCWE-787
CISA KEVNo
Affected2 vendor(s)
PublishedJan 8, 2018

Related CVEs (CWE-787)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2018-5268 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.