{"id":"CVE-2026-42882","published":"2026-05-11T19:26:44Z","modified":"2026-05-13T14:40:36Z","title":"oxyno-zeta/s3-proxy: Security Issues in Resource Path Matching","vendor":"oxyno-zeta","product":"s3-proxy","tier":"tail","description":{"text":"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\nthat 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00554,"percentile":0.47184,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/oxyno-zeta/s3-proxy/security/advisories/GHSA-rfgq-wgg8-662p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oxyno-zeta/s3-proxy/commit/1320e4abd46ad18c2851fedde50dbb79df8b7a51","tags":["x_refsource_MISC"]},{"url":"https://github.com/oxyno-zeta/s3-proxy/commit/af5ff57d8c6022459495b8fb50130073bca7b48a","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":9.44},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"oxyno-zeta","affectedVersions":[{"vendor":"oxyno-zeta","product":"s3-proxy","versions":["< 5.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-13T13:11:55.482486Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/oxyno-zeta/s3-proxy","vulnerableRanges":["<0.0.0-20260424211602-1320e4abd46a"],"patched":["0.0.0-20260424211602-1320e4abd46a"],"from":["GHSA-rfgq-wgg8-662p","GO-2026-5616"],"provenance":"source"}],"summary":{"text":"The s3-proxy project from oxyno-zeta, an AWS S3 proxy written in Go, contains an authentication bypass in its resource path matching, where the authentication middleware evaluates patterns against the percent-encoded request URI while the bucket handler uses the decoded path, and glob matching lets * cross path separators. An unauthenticated attacker with network access can, without any user interaction, perform PUT, GET, or DELETE operations on objects in authentication-protected S3 namespaces by using traversal segments, encoded slashes, or ../ under patterns, in versions prior to 5.0.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:53Z"},"euvd":{"id":"EUVD-2026-29205","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-27088","published":"2025-02-20","fixed":"0.0.0-20250220214310-c611c741ed48","kev":false,"link":{"from":"CVE-2025-27088","to":"CVE-2026-42882","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/oxyno-zeta/s3-proxy","fromFixed":"0.0.0-20250220214310-c611c741ed48","toFixed":"0.0.0-20260424211602-1320e4abd46a","daysApart":445}]}},{"cve":"CVE-2026-42882","published":"2026-05-11","fixed":"0.0.0-20260424211602-1320e4abd46a","kev":false}],"package":"Go:github.com/oxyno-zeta/s3-proxy"}}