MediumFix available
libraw — security advisory
A type confusion error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a division by zero.
- Products
- libraw
- Affected versions
- Not specified
- Fixed versions
- 0.18.8-1
- CVEs
- CVE-2018-5804
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:14 UTC · Revision 1
Source evidence
A type confusion error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a division by zero.
osv:DEBIAN-CVE-2018-5804
libraw
Fixed versions: 0.18.8-1
libraw
Fixed versions: 0.18.8-1
libraw
Fixed versions: 0.18.8-1
Complete source record
{
"id": "c751b8117b7b1604f2c93ce754934ad306e10b98a424dcd2dc205e4353038958",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-5804",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2018-5804",
"summary": "A type confusion error within the \"identify()\" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a division by zero.",
"evidence": "osv:DEBIAN-CVE-2018-5804",
"products": [
{
"name": {
"value": "libraw",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.18.8-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libraw",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.18.8-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libraw",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.18.8-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2018-5804",
"aliases": [
"DEBIAN-CVE-2018-5804"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.18.8-1"
}
]
}
],
"package": {
"name": "libraw",
"purl": "pkg:deb/debian/libraw?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-5804.json"
},
"ecosystem_specific": {
"urgency": "low"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.18.8-1"
}
]
}
],
"package": {
"name": "libraw",
"purl": "pkg:deb/debian/libraw?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-5804.json"
},
"ecosystem_specific": {
"urgency": "low"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.18.8-1"
}
]
}
],
"package": {
"name": "libraw",
"purl": "pkg:deb/debian/libraw?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-5804.json"
},
"ecosystem_specific": {
"urgency": "low"
}
}
],
"modified": "2026-10-23T18:03:07.329407673Z",
"provider": "osv",
"upstream": [
"CVE-2018-5804"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2018-5804"
]
},
"related_cves": [
{
"value": "CVE-2018-5804",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 420497,
"published_at": "2018-12-07T22:29:00.693+00:00"
}