Addressable::Template#match and #extract take variable names from the URI, so a URI can add or reassign variables
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sporkmongeraddressable | — | Not listed |
| RubyGemsaddressable |
< 2.10.0→ 2.10.0 |
2.10.0 |
Original description The description as published by the source.
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.0 until 2.10.0, Addressable::Template#match and #extract accept names supplied by an untrusted URI for unexploded semicolon, query, and continuation expressions instead of limiting matches to variables declared by the template. Variable addition affects the full range, while reassignment of another template variable and processor match or restore effects begin in 2.3.6. An attacker can add mapping keys, reassign a template variable's value, bypass a processor match restriction, or cause processor restore logic to act on a URI-supplied name. This issue is fixed in version 2.10.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com