CVE-2018-5817: Incorrect Type Cast

Published Feb 20, 2019
·
Updated

A type confusion error within the "unpackedloadraw()" function within LibRaw versions prior to 0.19.1 (internal/dcrawcommon.cpp) can be exploited to trigger an infinite loop.

Affected Software

19 affected componentsFixes available
Libraw Libraw<0.19.1
Debian Debian Linux=8.0
debian/libraw
0.20.2-1+deb11u10.20.2-1+deb11u20.20.2-2.1+deb12u10.21.4-20.21.5b-1
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0
alpine/libraw<0.19.2-r0
0.19.2-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libraw to a version that resolves this vulnerability.

    Fixed in 0.20.2-1+deb11u1Fixed in 0.20.2-1+deb11u2Fixed in 0.20.2-2.1+deb12u1Fixed in 0.21.4-2Fixed in 0.21.5b-1
  2. Upgrade

    Upgrade alpine/libraw to a version that resolves this vulnerability.

    Fixed in 0.19.2-r0
  3. Upgrade

    Upgrade LibRaw to a version that resolves this vulnerability.

    Fixed in 0.19.1

Event History

Feb 20, 2019
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
DescriptionWeakness
Data Sourced
via NVD·06:29 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:29 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2018-5817?

CVE-2018-5817 is a type confusion error within the unpacked_load_raw() function in LibRaw versions prior to 0.19.1 that can be exploited to trigger an infinite loop.

2

How can CVE-2018-5817 be exploited?

CVE-2018-5817 can be exploited by triggering a type confusion error within the unpacked_load_raw() function in LibRaw versions prior to 0.19.1.

3

What is the severity of CVE-2018-5817?

The severity of CVE-2018-5817 is high with a CVSS score of 7.5.

4

How do I fix CVE-2018-5817?

To fix CVE-2018-5817, you should update LibRaw to version 0.19.1 or later.

5

Where can I find more information about CVE-2018-5817?

You can find more information about CVE-2018-5817 at the following references: [1](https://lists.debian.org/debian-lts-announce/2019/03/msg00036.html), [2](https://secuniaresearch.flexerasoftware.com/secunia_research/2018-27/), [3](https://usn.ubuntu.com/3989-1/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203