There is an infinite loop in Exiv2::Jp2Image::encodeJp2Header of jp2image.cpp in Exiv2 0.27-RC3. A crafted input will lead to a remote denial of service attack.
"https://github.com/pypa/advisory-database/blob/main/vulns/exiv2/PYSEC-2018-120.yaml"