CVEfocus › CVE database › CVE-2017-20146

CVE-2017-20146Improper access control in github.com/gorilla/handlers

CVSS 9.8 CriticalEPSS 0.8% (higher than 56% of CVEs)Published 2022-12-27Updated 2025-04-11Assigner: Go

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.

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
25Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-github-coreos-discovery-etcd-ioNot affected
vulnerable_code_not_present
Ubuntu 26.04golang-github-gorilla-handlersNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-github-coreos-discovery-etcd-ioNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-github-gorilla-handlersNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-coreos-discovery-etcd-ioNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-gorilla-handlersNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-github-coreos-discovery-etcd-ioNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-github-gorilla-handlersNot affected
vulnerable_code_not_present
Ubuntu 20.04golang-github-coreos-discovery-etcd-ioNot affected
vulnerable_code_not_present
Ubuntu 20.04golang-github-gorilla-handlersNot affected
vulnerable_code_not_present
Ubuntu 18.04golang-github-gorilla-handlersFix pendingUBUNTU-CVE-2017-20146
Ubuntu 16.04golang-github-gorilla-handlersFix pendingUBUNTU-CVE-2017-20146
Debian 14golang-github-gorilla-handlersFixed1.3.0-1DEBIAN-CVE-2017-20146
Debian 13golang-github-gorilla-handlersFixed1.3.0-1DEBIAN-CVE-2017-20146
Debian 12golang-github-gorilla-handlersFixed1.3.0-1DEBIAN-CVE-2017-20146
Red Hat Enterprise Linux 9podmanNot affected
Red Hat Enterprise Linux 9podman-catatonitNot affected
Red Hat Enterprise Linux 9podman-dockerNot affected
Red Hat Enterprise Linux 9podman-gvproxyNot affected
Red Hat Enterprise Linux 9podman-pluginsNot affected
Red Hat Enterprise Linux 9podman-remoteNot affected
Red Hat Enterprise Linux 9podman-testsNot affected
Red Hat Enterprise Linux 8podmanNot affected
Red Hat Enterprise Linux 8podman-catatonitNot affected
Red Hat Enterprise Linux 8podman-dockerNot affected
Red Hat Enterprise Linux 8podman-gvproxyNot affected
Red Hat Enterprise Linux 8podman-manpagesNot affected
Red Hat Enterprise Linux 8podman-pluginsNot affected
Red Hat Enterprise Linux 8podman-remoteNot affected
Red Hat Enterprise Linux 8podman-testsNot affected
Go librarygithub.com/gorilla/handlersFixed1.3.0GO-2020-0020

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.