# CVE-2018-20099: PYSEC-2018-120 - There is an infinite loop in Exiv2::Jp2Image::encodeJp2Header of jp2image.cpp in Exiv2 0.27-RC3. A…

Source: https://junglewise.ai/threats/cve-2018-20099-pysec-2018-120-there-is-an-infinite-loop-in-exiv2-jp2image  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-12-12  
License: CC BY 4.0 with a link back

CVE-2018-20099 · Severity: low · CVSS 3 · Published 2018-12-12

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.

Technologies: [exiv2 (PyPI)](https://junglewise.ai/threats/technologies/exiv2). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2018-20099 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-20099 being exploited in the wild.

**How severe is CVE-2018-20099?** Low severity, with a CVSS score of 3, published 12 December 2018.

**Which products and versions are affected?** exiv2 (PyPI) ECOSYSTEM:introduced=0.

**Is there a fix for CVE-2018-20099?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2018-20099?** Check whether you run exiv2 (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- exiv2 (PyPI) ECOSYSTEM:introduced=0

## Identifiers

- CVE-2018-20099
- PYSEC-2018-120

## Related threats

- [PYSEC-2026-1355 - Exiv2 has quadratic performance in ICC profile parsing in JpegBase::readMetadata](https://junglewise.ai/threats/cve-2025-55304-exiv2-has-quadratic-performance-in-icc-profile-parsing-in)
- [PYSEC-2026-1354 - Exiv2 Segmentation Faults in Exiv2::EpsImage::writeMetadata() via crafted EPS file](https://junglewise.ai/threats/cve-2025-54080-exiv2-segmentation-faults-in-exiv2-epsimage-writemetadata-via)
- [PYSEC-2026-1353 - Exiv2 allows Use After Free](https://junglewise.ai/threats/cve-2025-26623-exiv2-use-after-free-in-tiffsubifd)
- [Exiv2 has a denial of service due to unbounded recursion in QuickTimeVideo::multipleEntriesDecoder](https://junglewise.ai/threats/cve-2024-25112-exiv2-has-a-denial-of-service-due-to-unbounded-recursion-in)
- [Exiv2 has an out-of-bounds read in QuickTimeVideo::NikonTagsDecoder](https://junglewise.ai/threats/cve-2024-24826-exiv2-has-an-out-of-bounds-read-in-quicktimevideo)
