CVE-2017-20146 Improper access control in github.com/gorilla/handlers
Attackers can bypass Same Origin Policy restrictions by controlling CORS headers in the gorilla/handlers library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-20146?
CVE-2017-20146 is a critical vulnerability in github.com/gorilla/handlers, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Usage of the CORS handler may apply improper CORS headers, allowing the requester to explicitly control the value of the Access-Control-Allow-Origin header, which bypasses the expected behavior of the Same Origin Policy.
Weakness: CWE-346
Which versions are affected by CVE-2017-20146?
3 open source packages ship an affected version, including github.com/gorilla/handlers. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/gorilla/handlers Go | All versions | 1.3.0 |
github.com/gorilla/handlers Go | All versions | 1.3.0 |
github.com/gorilla/handlers Go | All versions | 1.3.0 |
Products include Gorillatoolkit Handlers.
How do I fix CVE-2017-20146?
Upgrade github.com/gorilla/handlers to 1.3.0 or later.
Is CVE-2017-20146 being exploited?
There is no known exploitation of CVE-2017-20146 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2017-20146, GHSA-jcr6-mmjj-pchw, GO-2020-0020, UBUNTU-CVE-2017-20146.