Medium
Security advisory
In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds left shift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-5785
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:30 UTC · Revision 1
Source evidence
In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds left shift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.
osv:CVE-2018-5785
Complete source record
{
"id": "b1fff2855bf88d1a31150a8cbe857a5d80a0c273900a087f3a8e2292ae7e75af",
"url": "https://osv.dev/vulnerability/CVE-2018-5785",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-5785",
"summary": "In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds left shift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.",
"evidence": "osv:CVE-2018-5785",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-5785",
"aliases": [
"CVE-2018-5785"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/uclouvain/openjpeg",
"type": "GIT",
"events": [
{
"introduced": "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
},
{
"last_affected": "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:uclouvain:openjpeg:2.3.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"last_affected": "2.3.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.3.0",
"v2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5785.json"
}
}
],
"modified": "2026-10-20T10:50:27.852688982Z",
"provider": "osv",
"references": [
"https://usn.ubuntu.com/4109-1/",
"https://www.debian.org/security/2019/dsa-4405",
"https://github.com/uclouvain/openjpeg/issues/1057"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-5785",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381736,
"published_at": "2018-01-19T08:29:00.367+00:00"
}