# RUSTSEC-2026-0503: eazip: symlink-target validation checks the wrong argument, allowing extraction path escapes on Windows

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-07T12:00:00.000Z
- **Modified:** 2026-11-12T08:00:03.177Z

## Who should check

- Projects that depend on crates.io package eazip (\>= 0.2.5, \< 0.2.7)

## Description

When extracting archives, \`eazip\` validates symlink entries before writing
them. The validation function \`validate\_symlink()\` (\`src/utils/mod.rs\`) scans
for backslash and NUL bytes, but passes the symlink's \*name\* where the
symlink's \*target\* was intended:

\`\`\`rust
memchr2(b'\\\\', b'\\0', name.as\_bytes()) // should be target.as\_bytes()
\`\`\`

As a result, symlink \*targets\* containing backslash or NUL bytes pass
validation. On Windows, backslash is a path separator, so targets such as
\`..\\..\\..\\Windows\\system32\\evil.exe\` also defeat the remaining depth check,
which splits on \`/\` only. A crafted archive can therefore create symlinks
that resolve outside the extraction directory — including UNC targets such as
\`\\\\host\\share\\...\` — redirecting writes to arbitrary filesystem locations
chosen by the attacker.

Applications that extract untrusted archives with \`eazip\` on Windows targets
are affected; on Unix targets backslash is not a separator, which limits
exposure there.

The vulnerability was introduced in version 0.2.5 and fixed in 0.2.7
(\[a1phyr/eazip@0e4caa13\](https://github.com/a1phyr/eazip/commit/0e4caa13d59f5ba15aaac332f5534260c3b8fc43)),
which rejects backslash and NUL bytes in the symlink target. It was
privately reported to the maintainer on 2026-11-06 and credited in the
0.2.7 release notes.

## Affected and fixed versions

- crates.io `eazip`: affected \>= 0.2.5, \< 0.2.7; fixed 0.2.7 (osv)

## Mitigation

- Upgrade eazip to 0.2.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by RUSTSEC-2026-0503. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/RUSTSEC-2026-0503.md
Affected: eazip >= 0.2.5, < 0.2.7
Fixed in: 0.2.7

Steps:
1. Search this machine and project for eazip (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is RUSTSEC-2026-0503 being exploited?

There is no confirmed exploitation: RUSTSEC-2026-0503 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is RUSTSEC-2026-0503?

It has no CVSS score yet. Unknown.

### Which versions are affected by RUSTSEC-2026-0503?

eazip \>= 0.2.5, \< 0.2.7.

### Is there a fix for RUSTSEC-2026-0503?

Yes. Fixed in 0.2.7. Upgrade eazip to 0.2.7 or later.

### How do I check if I'm affected by RUSTSEC-2026-0503?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0503.html>
- other: <https://crates.io/crates/eazip>
- other: <https://github.com/a1phyr/eazip/releases/tag/v0.2.7>

## Attribution

- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0503> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/RUSTSEC-2026-0503> · JSON: <https://flawdb.com/api/v1/entries/RUSTSEC-2026-0503>
