# CVE-2026-130335: Command injection in Zip

> An attacker controlling a filename passed to Info-ZIP Zip with the -T option can run OS commands on the victim's system.

- **Severity:** Low 2.9 (`CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes
- **Fix available:** Yes
- **Published:** 16 Nov 2026
- **Updated:** 16 Nov 2026
- **Also known as:** AZL-114302, DEBIAN-CVE-2026-130335, GHSA-c3fq-vvx8-h4q7, UBUNTU-CVE-2026-130335

## What is CVE-2026-130335?

CVE-2026-130335 is a low-severity command injection vulnerability in Info-ZIP Zip, published on 16 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Info-ZIP Zip 3.0 (and 3.1 beta through 3.1c) allows OS command injection by an attacker who controls the command line. The victim must use the -T option followed by a filename containing shell metacharacters, on a platform (such as Linux) where a suitable shell is run. This occurs because the system C library function is used. NOTE: there is no known common scenario in which an untrusted filename reaches a zip -T call.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2026-130335?

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.


## How do I fix CVE-2026-130335?

No fix published yet.

## Is CVE-2026-130335 being exploited?

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

Public exploit code:

- Info-ZIP Zip 3.0/3.1b-c: check_zipfile wraps the archive name in single quotes before system() — a name with ' breaks out and runs commands when a victim runs zip -T. Zip 3.0 + Debian patches without/with the fix (3.0-15 vs 3.0-16); injected id runs on vuln, safely quoted on fixed. (github_poc): https://github.com/googlesky/CVE-2026-130335

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-130335 and fix it if it is affected.

What it is: CVE-2026-130335 is a low-severity command injection vulnerability in Info-ZIP Zip, published on 16 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-130335 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

Affected product: Info-ZIP Zip. 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-2026-130335/ (Markdown: https://insights.sbomify.com/CVE-2026-130335/index.md)
```

## Sources

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

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