CVE-2018-5804
published 2018-12-07CVE-2018-5804: 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…
PriorityP427medium6.5CVSS 3.0
AVNACLPRNUIRSUCNINAH
EPSS
1.68%
74.6th percentile
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.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | libraw | < libraw 0.18.13-1 (bookworm) | libraw 0.18.13-1 (bookworm) |
| debian | libraw | < libraw 0.18.8-1 (bookworm) | libraw 0.18.8-1 (bookworm) |
| libraw | libraw | < 0.18.8 | 0.18.8 |
| libraw | libraw | < 0.18.12 | 0.18.12 |
| libraw | libraw | — | — |
| libraw | libraw | >= 0 < 0.18.13-1 | 0.18.13-1 |
| libraw | libraw | >= 0 < 0.18.8-1 | 0.18.8-1 |
| libraw | libraw | >= 0 < 0.18.13-1 | 0.18.13-1 |
| libraw | libraw | >= 0 < 0.18.8-1 | 0.18.8-1 |
| libraw | libraw | >= 0 < 0.18.13-1 | 0.18.13-1 |
| libraw | libraw | >= 0 < 0.18.8-1 | 0.18.8-1 |
| libraw | libraw | >= 0 < 0.18.13-1 | 0.18.13-1 |
| libraw | libraw | >= 0 < 0.18.8-1 | 0.18.8-1 |
CVSS provenance
nvdv3.06.5MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv6.5MEDIUM
vendor_debian6.5LOW
vendor_redhat6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
vendor_redhat·2018-07-22·CVSS 6.5
CVE-2018-5816 [MEDIUM] CWE-190 LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
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).
Statement: This issue did not affect the versions of LibRaw as shipped with Red Hat Enterprise Linux 7.
Package: LibRaw (Red Hat Enterprise Linux 7) - Not affected
Package: LibRaw (Red Hat Enterprise Linux 8) - Not affected
Red Hat
LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
vendor_redhat·2018-03-14·CVSS 6.5
CVE-2018-5804 [MEDIUM] CWE-369 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
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.
Statement: This issue did not affect the versions of LibRaw as shipped with Red Hat Enterprise Linux 7 as they did not include the vulnerable code.
This issue did not affect the versions of dcraw as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the vulnerable code.
This issue did not affect the versions of libkdcraw as shipped with Red Hat Enterprise Linux 7 as they did not include the vulnerable code.
Package: dcraw (Red Hat Enterprise Linux 5) - Not affected
Package: dcraw (Red Hat Enterprise Linux 6) - Not affect
Debian
CVE-2018-5816: libraw - An integer overflow error within the "identify()" function (internal/dcraw_commo...
vendor_debian·2018·CVSS 6.5
CVE-2018-5816 [MEDIUM] CVE-2018-5816: libraw - An integer overflow error within the "identify()" function (internal/dcraw_commo...
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).
Scope: local
bookworm: resolved (fixed in 0.18.13-1)
bullseye: resolved (fixed in 0.18.13-1)
forky: resolved (fixed in 0.18.13-1)
sid: resolved (fixed in 0.18.13-1)
trixie: resolved (fixed in 0.18.13-1)
Debian
CVE-2018-5804: libraw - A type confusion error within the "identify()" function (internal/dcraw_common.c...
vendor_debian·2018·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804: libraw - A type confusion error within the "identify()" function (internal/dcraw_common.c...
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.
Scope: local
bookworm: resolved (fixed in 0.18.8-1)
bullseye: resolved (fixed in 0.18.8-1)
forky: resolved (fixed in 0.18.8-1)
sid: resolved (fixed in 0.18.8-1)
trixie: resolved (fixed in 0.18.8-1)
GHSA
GHSA-hmwc-5f9q-3986: A type confusion error within the "identify()" function (internal/dcraw_common
ghsa_unreviewed·2022-05-14
CVE-2018-5804 [MEDIUM] CWE-369 GHSA-hmwc-5f9q-3986: A type confusion error within the "identify()" function (internal/dcraw_common
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.
GHSA
GHSA-87cq-cch6-5ff8: An integer overflow error within the "identify()" function (internal/dcraw_common
ghsa_unreviewed·2022-05-14·CVSS 6.5
CVE-2018-5816 [MEDIUM] CWE-190 GHSA-87cq-cch6-5ff8: An integer overflow error within the "identify()" function (internal/dcraw_common
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).
OSV
CVE-2018-5816: An integer overflow error within the "identify()" function (internal/dcraw_common
osv·2018-12-07·CVSS 6.5
CVE-2018-5816 [MEDIUM] CVE-2018-5816: An integer overflow error within the "identify()" function (internal/dcraw_common
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).
OSV
CVE-2018-5804: A type confusion error within the "identify()" function (internal/dcraw_common
osv·2018-12-07·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804: A type confusion error within the "identify()" function (internal/dcraw_common
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-5816 LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
bugzilla·2018-07-31·CVSS 6.5
CVE-2018-5816 [MEDIUM] CVE-2018-5816 LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
CVE-2018-5816 LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
LibRaw versions prior to 0.18.12 are vulnerable to an integer overflow in the internal/dcraw_common.cpp:identify() function. An attacker could exploit this to cause an divide-by-zero and resultant denial of service via a specially crafted NOKIARAW file.
This vulnerability was caused by an incomplete fix to CVE-2018-5804.
Reference:
http://seclists.org/bugtraq/2018/Jul/58
Discussion:
Created LibRaw tracking bugs for this issue:
Affects: epel-6 [bug 1610159]
Affects: fedora-all [bug 1610157]
Created mingw-LibRaw tracking bugs for this issue:
Affects: fedora-all [bug 1610158]
---
This looks like the patch:
https://github.com/LibRaw/LibRaw/commit/4a3e68a41cf6d67fd83cffd2651d
Bugzilla
CVE-2018-5804 dcraw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 dcraw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
CVE-2018-5804 dcraw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issu
Bugzilla
CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
A type confusion error within the "identify()" function
(internal/dcraw_common.cpp) can be exploited to trigger a division by
zero.
References:
https://secuniaresearch.flexerasoftware.com/secunia_research/2018-03
Discussion:
Created LibRaw tracking bugs for this issue:
Affects: epel-6 [bug 1591885]
Affects: fedora-all [bug 1591880]
Created dcraw tracking bugs for this issue:
Affects: fedora-all [bug 1591882]
Created libkdcraw tracking bugs for this issue:
Affects: fedora-all [bug 1591883]
Created mingw-LibRaw tracking bugs for this issue:
Affects: fedora-all [bug 1591881]
Created rawtherapee tracking bugs for this issue:
Affects: fedora-all [bug 1591884]
---
Upstream fix:
htt
Bugzilla
CVE-2018-5804 libkdcraw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 libkdcraw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
CVE-2018-5804 libkdcraw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this
Bugzilla
CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affec
Bugzilla
CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [epel-6]
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [epel-6]
CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [epel-6]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-6.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the following
Bugzilla
CVE-2018-5804 rawtherapee: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 rawtherapee: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
CVE-2018-5804 rawtherapee: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: thi
Bugzilla
CVE-2018-5804 mingw-LibRaw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
bugzilla·2018-06-15·CVSS 6.5
CVE-2018-5804 [MEDIUM] CVE-2018-5804 mingw-LibRaw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
CVE-2018-5804 mingw-LibRaw: LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: th
https://github.com/LibRaw/LibRaw/blob/master/Changelog.txthttps://github.com/LibRaw/LibRaw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ffhttps://secuniaresearch.flexerasoftware.com/advisories/81000/https://secuniaresearch.flexerasoftware.com/secunia_research/2018-3/https://github.com/LibRaw/LibRaw/blob/master/Changelog.txthttps://github.com/LibRaw/LibRaw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ffhttps://secuniaresearch.flexerasoftware.com/advisories/81000/https://secuniaresearch.flexerasoftware.com/secunia_research/2018-3/
2018-12-07
Published