# CVE-2018-1056: Memory corruption in advancecomp:

> An attacker can crash the advzip utility by tricking it into processing crafted ZIP files, causing a denial of service.

- **Severity:** Low 3.3 (`CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 27 Jul 2018
- **Updated:** 5 Aug 2024
- **Also known as:** DEBIAN-CVE-2018-1056, DLA-1281-1, GHSA-557x-wcm4-fhw8, MGASA-2018-0141, UBUNTU-CVE-2018-1056, USN-3570-1

## What is CVE-2018-1056?

CVE-2018-1056 is a low-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 27 Jul 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

An out-of-bounds heap buffer read flaw was found in the way advancecomp before 2.1-2018/02 handled processing of ZIP files. An attacker could potentially use this flaw to crash the advzip utility by tricking it into processing crafted ZIP files.

Weakness: CWE-125 (Out-of-bounds Read), CWE-122 (Heap-based Buffer Overflow)

## Which versions are affected by CVE-2018-1056?

It affects 3 products.


Products: Advancemame Advancecomp, Canonical Ubuntu Linux, Debian Debian Linux.

## How do I fix CVE-2018-1056?

Upgrade to a fixed version.

## Is CVE-2018-1056 being exploited?

There is no known exploitation of CVE-2018-1056 in the wild and no public exploit code.

## Other vulnerabilities in Canonical Ubuntu Linux

- [CVE-2019-9210](https://insights.sbomify.com/CVE-2019-9210/): Integer overflow in n/a (high 7.8)
- [CVE-2019-8379](https://insights.sbomify.com/CVE-2019-8379/): Null dereference in n/a (high 7.8)
- [CVE-2019-8383](https://insights.sbomify.com/CVE-2019-8383/): Memory corruption in n/a (high 7.8)
- [CVE-2022-35014](https://insights.sbomify.com/CVE-2022-35014/): Null dereference in n/a (medium 5.5)
- [CVE-2022-35015](https://insights.sbomify.com/CVE-2022-35015/): Memory corruption in n/a (medium 5.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-1056 and fix it if it is affected.

What it is: CVE-2018-1056 is a low-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 27 Jul 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2018-1056 in the wild and no public exploit code.

Affected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2018-1056/ (Markdown: https://insights.sbomify.com/CVE-2018-1056/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2018-1056
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2018-1056
- OSV: https://osv.dev/vulnerability/CVE-2018-1056

---
From sbomify Insights: https://insights.sbomify.com/CVE-2018-1056/
Summaries are generated and may contain mistakes; the official description above is the record.
