# CVE-2026-42882: oxyno-zeta/s3-proxy: Security Issues in Resource Path Matching

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

- **Severity:** CRITICAL 9.4
- **CVSS:** 9.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-22, CWE-863
- **Aliases:** GHSA-rfgq-wgg8-662p, GO-2026-5616
- **Published:** 2026-05-05T18:52:56.000Z
- **Modified:** 2026-10-26T18:10:00.173Z

## Who should check

- Projects that depend on Go package github.com/oxyno-zeta/s3-proxy (\< 0.0.0-20260424211602-1320e4abd46a)
- Anyone running oxyno-zeta s3-proxy \< 5.0.0

## Description

oxyno-zeta/s3-proxy is an aws s3 proxy written in go. Prior to 5.0.0, s3-proxy contains an authentication bypass caused by inconsistent URL path interpretation between the authentication middleware and the bucket handler. The authentication middleware evaluates resource path patterns against the percent-encoded request URI (r.URL.RequestURI()), while the bucket handler constructs S3 object keys from the decoded path (r.URL.Path). This mismatch, combined with the glob library being invoked without a path separator (causing \* to match across / boundaries), allows unauthenticated attackers to write to, read from, or delete objects in protected S3 namespaces. Exploitation is possible via three techniques: (1) using \* patterns
that match across path separators to reach protected routes via path traversal (e.g., /open/foo/drafts/../restricted/), (2) using percent-encoded slashes (%2F) to collapse multiple path segments into a single token at the auth layer while the decoded form resolves to a protected namespace at the storage layer, and (3) using dot-dot segments (../) under \*\* prefix patterns, where the raw path matches an open route while Go's URL parser resolves the traversal to a protected path before the bucket handler runs. An unauthenticated attacker with network access can perform unauthorized PUT, GET, or DELETE operations on objects in authentication-protected S3 namespaces. This vulnerability is fixed in 5.0.0.

## Affected and fixed versions

- Go `github.com/oxyno-zeta/s3-proxy`: affected \< 0.0.0-20260424211602-1320e4abd46a; fixed 0.0.0-20260424211602-1320e4abd46a (osv)
- oxyno-zeta s3-proxy: \< 5.0.0 (cvelist)

## Mitigation

- Upgrade github.com/oxyno-zeta/s3-proxy to 0.0.0-20260424211602-1320e4abd46a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-42882.md
Affected: github.com/oxyno-zeta/s3-proxy < 0.0.0-20260424211602-1320e4abd46a
Fixed in: 0.0.0-20260424211602-1320e4abd46a

Steps:
1. Search this machine and project for github.com/oxyno-zeta/s3-proxy (Go), oxyno-zeta s3-proxy: 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 CVE-2026-42882 being exploited?

There is no confirmed exploitation: CVE-2026-42882 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-42882?

Critical: CVSS 9.4 (v3.1, scored by CNA). Remote, no login needed.

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

github.com/oxyno-zeta/s3-proxy \< 0.0.0-20260424211602-1320e4abd46a.

### Is there a fix for CVE-2026-42882?

Yes. Fixed in 0.0.0-20260424211602-1320e4abd46a. Upgrade github.com/oxyno-zeta/s3-proxy to 0.0.0-20260424211602-1320e4abd46a or later.

### How do I check if I'm affected by CVE-2026-42882?

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://github.com/oxyno-zeta/s3-proxy/security/advisories/GHSA-rfgq-wgg8-662p>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-42882>
- patch: <https://github.com/oxyno-zeta/s3-proxy/commit/1320e4abd46ad18c2851fedde50dbb79df8b7a51>
- patch: <https://github.com/oxyno-zeta/s3-proxy/commit/af5ff57d8c6022459495b8fb50130073bca7b48a>
- other: <https://github.com/oxyno-zeta/s3-proxy>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-42882>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rfgq-wgg8-662p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5616> (license: <https://creativecommons.org/licenses/by/4.0/>)

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