# CVE-2018-17828: Path traversal in n/a

> Attackers can overwrite arbitrary files via directory traversal in ZZIPlib, impacting systems using this library for zip extraction.

- **Severity:** Medium 5.5 (`CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`)
- **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:** 1 Oct 2018
- **Updated:** 15 Oct 2026
- **Also known as:** ALSA-2020:1653, ALSA-2025:20478, ALSA-2025:20838, AZL-7014, AZL-7458, DEBIAN-CVE-2018-17828, ECHO-8cd6-a91d-72cf, GHSA-g8rp-fvg9-52vv, RHSA-2020:1178, RHSA-2020:1653, RHSA-2025:20478, RHSA-2025:20838, RLSA-2020:1653, RLSA-2025:20478, RLSA-2025:20838, SUSE-SU-2018:3220-1, SUSE-SU-2018:3379-1, UBUNTU-CVE-2018-17828

## What is CVE-2018-17828?

CVE-2018-17828 is a medium-severity path traversal vulnerability in n/a, published on 1 Oct 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

Directory traversal vulnerability in ZZIPlib 0.13.69 allows attackers to overwrite arbitrary files via a .. (dot dot) in a zip file, because of the function unzzip_cat in the bins/unzzipcat-mem.c file.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

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

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `zziplib` | AlmaLinux:10 | All versions | 0.13.78-2.el10 |
| `zziplib-devel` | AlmaLinux:10 | All versions | 0.13.78-2.el10 |
| `zziplib-utils` | AlmaLinux:10 | All versions | 0.13.78-2.el10 |
| `zziplib-devel` | AlmaLinux:8 | All versions | 0.13.68-8.el8 |
| `zziplib` | AlmaLinux:9 | All versions | 0.13.71-12.el9 |
| `zziplib-devel` | AlmaLinux:9 | All versions | 0.13.71-12.el9 |
| `zziplib-utils` | AlmaLinux:9 | All versions | 0.13.71-12.el9 |
| `zziplib` | Red Hat:enterprise_linux:10.1 | All versions | 0:0.13.78-2.el10 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:10.1 | All versions | 0:0.13.78-2.el10 |
| `zziplib-debugsource` | Red Hat:enterprise_linux:10.1 | All versions | 0:0.13.78-2.el10 |
| `zziplib-devel` | Red Hat:enterprise_linux:10.1 | All versions | 0:0.13.78-2.el10 |
| `zziplib-utils` | Red Hat:enterprise_linux:10.1 | All versions | 0:0.13.78-2.el10 |
| `zziplib-utils-debuginfo` | Red Hat:enterprise_linux:10.1 | All versions | 0:0.13.78-2.el10 |
| `zziplib` | Red Hat:enterprise_linux:7::client | All versions | 0:0.13.62-12.el7 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:7::client | All versions | 0:0.13.62-12.el7 |
| `zziplib-devel` | Red Hat:enterprise_linux:7::client | All versions | 0:0.13.62-12.el7 |
| `zziplib-utils` | Red Hat:enterprise_linux:7::client | All versions | 0:0.13.62-12.el7 |
| `zziplib` | Red Hat:enterprise_linux:7::computenode | All versions | 0:0.13.62-12.el7 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:7::computenode | All versions | 0:0.13.62-12.el7 |
| `zziplib-devel` | Red Hat:enterprise_linux:7::computenode | All versions | 0:0.13.62-12.el7 |
| `zziplib-utils` | Red Hat:enterprise_linux:7::computenode | All versions | 0:0.13.62-12.el7 |
| `zziplib` | Red Hat:enterprise_linux:7::server | All versions | 0:0.13.62-12.el7 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:7::server | All versions | 0:0.13.62-12.el7 |
| `zziplib-devel` | Red Hat:enterprise_linux:7::server | All versions | 0:0.13.62-12.el7 |
| `zziplib-utils` | Red Hat:enterprise_linux:7::server | All versions | 0:0.13.62-12.el7 |
| `zziplib` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.13.62-12.el7 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.13.62-12.el7 |
| `zziplib-devel` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.13.62-12.el7 |
| `zziplib-utils` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.13.62-12.el7 |
| `zziplib` | Red Hat:enterprise_linux:8::appstream | All versions | 0:0.13.68-8.el8 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:0.13.68-8.el8 |
| `zziplib-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:0.13.68-8.el8 |
| `zziplib-utils` | Red Hat:enterprise_linux:8::appstream | All versions | 0:0.13.68-8.el8 |
| `zziplib-utils-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:0.13.68-8.el8 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:0.13.68-8.el8 |
| `zziplib-debugsource` | Red Hat:enterprise_linux:8::crb | All versions | 0:0.13.68-8.el8 |
| `zziplib-devel` | Red Hat:enterprise_linux:8::crb | All versions | 0:0.13.68-8.el8 |
| `zziplib-utils-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:0.13.68-8.el8 |
| `zziplib` | Red Hat:enterprise_linux:9::appstream | All versions | 0:0.13.71-12.el9 |
| `zziplib-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:0.13.71-12.el9 |

Products: Gdraheim Zziplib.

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

Upgrade to a fixed version.

## Is CVE-2018-17828 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2024-39134](https://insights.sbomify.com/CVE-2024-39134/): Memory corruption in n/a (high 7.5)
- [CVE-2018-16548](https://insights.sbomify.com/CVE-2018-16548/): Denial of service in n/a (medium 6.5)
- [CVE-2018-7727](https://insights.sbomify.com/CVE-2018-7727/): Denial of service in n/a (medium 6.5)
- [CVE-2018-6542](https://insights.sbomify.com/CVE-2018-6542/): Memory corruption in n/a (medium 6.5)
- [CVE-2020-18770](https://insights.sbomify.com/CVE-2020-18770/): Denial of service in n/a (medium 5.5)

## Fix prompt for AI coding agents

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

What it is: CVE-2018-17828 is a medium-severity path traversal vulnerability in n/a, published on 1 Oct 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-17828 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-2018-17828/ (Markdown: https://insights.sbomify.com/CVE-2018-17828/index.md)
```

## Sources

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

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