Critical
Security advisory
An issue was discovered in mj2/opj_mj2_extract.c in OpenJPEG 2.3.0. The output prefix was not checked for length, which could overflow a buffer, when providing a prefix with 50 or more characters on the command line.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-7648
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:26 UTC · Revision 1
Source evidence
An issue was discovered in mj2/opj_mj2_extract.c in OpenJPEG 2.3.0. The output prefix was not checked for length, which could overflow a buffer, when providing a prefix with 50 or more characters on the command line.
osv:CVE-2018-7648
Complete source record
{
"id": "95b7f1fe4d21bbafe2f705bb79f044ceb1336a23b2fb6d27537932e24f9f79ce",
"url": "https://osv.dev/vulnerability/CVE-2018-7648",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-7648",
"summary": "An issue was discovered in mj2/opj_mj2_extract.c in OpenJPEG 2.3.0. The output prefix was not checked for length, which could overflow a buffer, when providing a prefix with 50 or more characters on the command line.",
"evidence": "osv:CVE-2018-7648",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-7648",
"aliases": [
"CVE-2018-7648"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/uclouvain/openjpeg",
"type": "GIT",
"events": [
{
"introduced": "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
},
{
"last_affected": "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
},
{
"fixed": "cc3824767bde397fedb8a1ae4786a222ba860c8d"
}
],
"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"
},
{
"range": [
{
"fixed": "cc3824767bde397fedb8a1ae4786a222ba860c8d"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.3.0",
"v2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7648.json",
"vanir_signatures": [
{
"id": "CVE-2018-7648-411c3d8d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"320682276623054871944337876216980139907",
"263881287619099284430256011721633502297",
"2848672890557279726117555643167944211",
"181734107993385793232230324283849354312",
"303973254535423105423398004318675394013",
"185316987648347462227752028736580492744",
"146381316644439753433409365344195423450"
]
},
"source": "https://github.com/uclouvain/openjpeg/commit/cc3824767bde397fedb8a1ae4786a222ba860c8d",
"target": {
"file": "src/bin/mj2/opj_mj2_extract.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-7648-9adc509c",
"digest": {
"length": 1790,
"function_hash": "18908964000435985548001782315975091160"
},
"source": "https://github.com/uclouvain/openjpeg/commit/cc3824767bde397fedb8a1ae4786a222ba860c8d",
"target": {
"file": "src/bin/mj2/opj_mj2_extract.c",
"function": "main"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:35:02Z"
}
}
],
"modified": "2026-10-20T13:35:02.967835041Z",
"provider": "osv",
"references": [
"https://github.com/uclouvain/openjpeg/issues/1088",
"https://github.com/uclouvain/openjpeg/commit/cc3824767bde397fedb8a1ae4786a222ba860c8d"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-7648",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387842,
"published_at": "2018-03-02T16:29:00.213+00:00"
}