An integer overflow error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited to trigger a division by zero via specially crafted NOKIARAW file (Note: This vulnerability is caused due to an incomplete fix of CVE-2018-5804).
{
"unresolved_ranges": [
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "14.04"
}
],
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*"
},
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "16.04"
}
],
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*"
},
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "18.04"
}
],
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
}
]
}{
"source": [
"CPE_FIELD",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.18.12"
}
],
"cpe": "cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-5816.json"
[
{
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/libraw/libraw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39",
"signature_type": "Line",
"target": {
"file": "internal/dcraw_common.cpp"
},
"id": "CVE-2018-5816-13e2e5a8",
"digest": {
"threshold": 0.9,
"line_hashes": [
"149115307467341041946650920507335754192",
"249788294694743818553041987795189000353",
"264130181463166165130195137198822619265",
"146931122158647408271548350055420031602"
]
}
},
{
"target": {
"file": "dcraw/dcraw.c"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://github.com/libraw/libraw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39",
"id": "CVE-2018-5816-314ae728",
"digest": {
"threshold": 0.9,
"line_hashes": [
"149115307467341041946650920507335754192",
"249788294694743818553041987795189000353",
"264130181463166165130195137198822619265",
"146931122158647408271548350055420031602"
]
}
},
{
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/libraw/libraw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39",
"signature_type": "Function",
"target": {
"function": "identify",
"file": "internal/dcraw_common.cpp"
},
"id": "CVE-2018-5816-44d9dffa",
"digest": {
"function_hash": "146558577448886377438406580047394554080",
"length": 61590.0
}
},
{
"target": {
"function": "identify",
"file": "dcraw/dcraw.c"
},
"signature_version": "v1",
"source": "https://github.com/libraw/libraw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39",
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2018-5816-a0d39601",
"digest": {
"function_hash": "146558577448886377438406580047394554080",
"length": 61590.0
}
}
]
"2026-04-11T21:32:54Z"