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.
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
Exploit & PoC Resources
NO KNOWN EXPLOITNo public exploit confirmed at this time
Exploit-DB
Offensive Security exploit database
GitHub PoC Search
Community PoC repositories
Rapid7 / Metasploit
Metasploit module search
PacketStorm
Security advisories & exploits
NVD Detail
Official NIST entry
MITRE CVE
CVE Program entry
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
→
https://lists.debian.org/debian-lts-announce/2018/04/msg00019.htmlMailing List · Third Party Advisory
→
https://lists.debian.org/debian-lts-announce/2018/07/msg00030.htmlMailing List · Third Party Advisory
→
https://lists.debian.org/debian-lts-announce/2021/10/msg00028.htmlMailing 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
→
https://lists.debian.org/debian-lts-announce/2018/04/msg00019.htmlMailing List · Third Party Advisory
→
https://lists.debian.org/debian-lts-announce/2018/07/msg00030.htmlMailing List · Third Party Advisory
→
https://lists.debian.org/debian-lts-announce/2021/10/msg00028.htmlMailing 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.