An error within the "parse_tiff_ifd()" function (internal/dcraw_common.cpp) in LibRaw versions before 0.18.2 can be exploited to corrupt memory.
https://secuniaresearch.flexerasoftware.com/secunia_research/2017-5/
https://secuniaresearch.flexerasoftware.com/advisories/75737/
https://github.com/LibRaw/LibRaw/commit/d7c3d2cb460be10a3ea7b32e9443a83c243b2251