Security advisory
A size-validation issue was discovered in opj_j2k_write_sot in lib/openjp2/j2k.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_write_bytes_LE in lib/openjp2/cio.c) or possibly remote code execution. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-14152.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-14164
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:11 UTC · Revision 1
Source evidence
A size-validation issue was discovered in opj_j2k_write_sot in lib/openjp2/j2k.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_write_bytes_LE in lib/openjp2/cio.c) or possibly remote code execution. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-14152.
osv:CVE-2017-14164
Complete source record
{
"id": "39e59e893a4496df6604867ed5d3cd7ef2433174b6cd546e7b89f577c6254d92",
"url": "https://osv.dev/vulnerability/CVE-2017-14164",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-14164",
"summary": "A size-validation issue was discovered in opj_j2k_write_sot in lib/openjp2/j2k.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_write_bytes_LE in lib/openjp2/cio.c) or possibly remote code execution. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-14152.",
"evidence": "osv:CVE-2017-14164",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2017-14164",
"aliases": [
"CVE-2017-14164"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/uclouvain/openjpeg",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
},
{
"fixed": "dcac91b8c72f743bda7dbfa9032356bc8110098a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.3.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "dcac91b8c72f743bda7dbfa9032356bc8110098a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14164.json",
"vanir_signatures": [
{
"id": "CVE-2017-14164-3217bcb5",
"digest": {
"length": 1272,
"function_hash": "246362622353506562901937487878210165662"
},
"source": "https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a",
"target": {
"file": "src/lib/openjp2/j2k.c",
"function": "opj_j2k_write_first_tile_part"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-14164-457e0a9c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"77520807814330177997263651024380986369",
"105353595349503846722913235538008771908",
"89895794169247622514664150828873309969",
"129328633982734050575218659195877276800",
"285115700026428717276802670418379916870",
"294873472508823986668997713088519209227",
"75633213091478211799698737576648268196",
"129328633982734050575218659195877276800",
"200255710663574004309945924278005841641",
"339360644005884646373521995491840379208",
"148864852494827139251290488626998955789",
"228214504983815661966924663216636963189",
"219372197368247297417439841643537048766",
"242287417122725142497790193288582929759",
"194595698988203829741872300682963402548",
"285459584945254872658542090664114401406",
"267187771838915210308317151973059330113",
"265814875204664580680610501743719047850",
"194595698988203829741872300682963402548",
"285459584945254872658542090664114401406",
"267187771838915210308317151973059330113",
"265814875204664580680610501743719047850",
"194595698988203829741872300682963402548",
"285459584945254872658542090664114401406"
]
},
"source": "https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a",
"target": {
"file": "src/lib/openjp2/j2k.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2017-14164-a6276a17",
"digest": {
"length": 1933,
"function_hash": "129069792382646580698162450588206815531"
},
"source": "https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a",
"target": {
"file": "src/lib/openjp2/j2k.c",
"function": "opj_j2k_write_all_tile_parts"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-14164-ad31bff0",
"digest": {
"length": 731,
"function_hash": "266252974888352074455458065740151539537"
},
"source": "https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a",
"target": {
"file": "src/lib/openjp2/j2k.c",
"function": "opj_j2k_write_sot"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:16:36Z"
}
}
],
"modified": "2026-10-20T13:16:36.671627387Z",
"provider": "osv",
"references": [
"https://security.gentoo.org/glsa/201710-26",
"https://blogs.gentoo.org/ago/2017/09/06/heap-based-buffer-overflow-in-opj_write_bytes_le-cio-c-incomplete-fix-for-cve-2017-14152/",
"https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a",
"https://github.com/uclouvain/openjpeg/issues/991"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-14164",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387438,
"published_at": "2017-09-06T18:29:00.193+00:00"
}