# CVE-2010-0001: Integer overflow in n/a

> Remote attackers can cause denial of service or execute arbitrary code via crafted LZW archives due to an integer underflow in gzip.

- **Severity:** Medium 6.8 (`AV:N/AC:M/Au:N/C:P/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 29 Jan 2010
- **Updated:** 7 Aug 2024
- **Also known as:** DEBIAN-CVE-2010-0001, DSA-2074-1, GHSA-pqhm-g528-h5pg, RHSA-2010:0061

## What is CVE-2010-0001?

CVE-2010-0001 is a medium-severity vulnerability in n/a, published on 29 Jan 2010. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Integer underflow in the unlzw function in unlzw.c in gzip before 1.4 on 64-bit platforms, as used in ncompress and probably others, allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted archive that uses LZW compression, leading to an array index error.

Weakness: CWE-189

## Which versions are affected by CVE-2010-0001?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gzip` | Red Hat:enterprise_linux:3::as | All versions | 0:1.3.3-15.rhel3 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:3::as | All versions | 0:1.3.3-15.rhel3 |
| `gzip` | Red Hat:enterprise_linux:3::desktop | All versions | 0:1.3.3-15.rhel3 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:3::desktop | All versions | 0:1.3.3-15.rhel3 |
| `gzip` | Red Hat:enterprise_linux:3::es | All versions | 0:1.3.3-15.rhel3 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:3::es | All versions | 0:1.3.3-15.rhel3 |
| `gzip` | Red Hat:enterprise_linux:3::ws | All versions | 0:1.3.3-15.rhel3 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:3::ws | All versions | 0:1.3.3-15.rhel3 |
| `gzip` | Red Hat:enterprise_linux:4::as | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:4::as | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip` | Red Hat:enterprise_linux:4::desktop | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:4::desktop | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip` | Red Hat:enterprise_linux:4::es | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:4::es | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip` | Red Hat:enterprise_linux:4::ws | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:4::ws | All versions | 0:1.3.3-18.el4_8.1 |
| `gzip` | Red Hat:enterprise_linux:5::client | All versions | 0:1.3.5-11.el5_4.1 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:5::client | All versions | 0:1.3.5-11.el5_4.1 |
| `gzip` | Red Hat:enterprise_linux:5::server | All versions | 0:1.3.5-11.el5_4.1 |
| `gzip-debuginfo` | Red Hat:enterprise_linux:5::server | All versions | 0:1.3.5-11.el5_4.1 |

Products: Gnu Gzip.

## How do I fix CVE-2010-0001?

Upgrade to a fixed version.

## Is CVE-2010-0001 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2004-0603](https://insights.sbomify.com/CVE-2004-0603/): Command injection in n/a (critical 10.0)
- [CVE-2001-1228](https://insights.sbomify.com/CVE-2001-1228/): Memory corruption in n/a (high 7.5)
- [CVE-2026-41992](https://insights.sbomify.com/CVE-2026-41992/): Global Buffer Overflow in GNU gzip (medium 6.9)
- [CVE-2009-2624](https://insights.sbomify.com/CVE-2009-2624/): Memory corruption in n/a (medium 6.8)
- [CVE-2005-1228](https://insights.sbomify.com/CVE-2005-1228/): Path traversal in n/a (medium 5.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2010-0001 and fix it if it is affected.

What it is: CVE-2010-0001 is a medium-severity vulnerability in n/a, published on 29 Jan 2010. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2010-0001 in the wild and no public exploit code.

Affected product: n/a. 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-2010-0001/ (Markdown: https://insights.sbomify.com/CVE-2010-0001/index.md)
```

## Sources

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

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