CVE-2016-5386
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18...
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.1
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
CVE-2016-5386- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-284
- Updated
- 2026-11-02
CVE List No score
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
CVE-2016-5386- Updated
- 2026-11-02
EUVDEUVD-2016-6336 No score
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
EUVD-2016-6336- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-9hq4-732f-9vgf
8.1
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18...
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
GHSA-9hq4-732f-9vgf- CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-284
- Updated
- 2026-11-02
OSVAZL-78994
8.1
CVE-2016-5386 affecting package golang 1.25.7-1
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
AZL-78994- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-98904
8.1
CVE-2016-5386 affecting package golang 1.27.1-1
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
AZL-98904- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 15 moreShow less
OSVBELL-CVE-2016-5386
8.1
CVE-2016-5386 does not affect BellSoft software
- Record
BELL-CVE-2016-5386- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
8.1
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
CVE-2016-5386- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2016:1538
5.3
Red Hat Security Advisory: golang security, bug fix, and enhancement update
- Record
RHSA-2016:1538- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-5386
8.1
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue.
- Record
UBUNTU-CVE-2016-5386- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGO-2022-0761 No score
Improper input validation in net/http and net/http/cgi
An input validation flaw in the CGI components allows the HTTP_PROXY environment variable to be set by the incoming Proxy header, which changes where Go by default proxies all outbound HTTP requests.
This environment variable is also used to set the outgoing proxy, enabling an attacker to insert a proxy into outgoing requests of a CGI program.
Read more about "httpoxy" here: https://httpoxy.org.
- Record
GO-2022-0761- Updated
- 2026-11-02
OSVMGASA-2016-0317 No score
Updated golang package fixes security vulnerability
Updated golang packages fix security vulnerability:
Go: sets environmental variable based on user supplied Proxy request header (CVE-2016-5386).
- Record
MGASA-2016-0317- Updated
- 2026-11-02
OSVopenSUSE-SU-2016:2054-1 No score
security update for go
This update addresses a security issue affecting code statically linked with go:
- CVE-2016-5386: A remote attacker could set the HTTP_PROXY environment variable via Proxy header (bsc#988487)
- Record
openSUSE-SU-2016:2054-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2016:2055-1 No score
security update for go
This update addresses a security issue affecting code statically linked with go:
- CVE-2016-5386: A remote attacker could set the HTTP_PROXY environment variable via Proxy header (bsc#988487)
- Record
openSUSE-SU-2016:2055-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2016:2536-1 No score
Security update to go1.4
go1.4 was updated to fix the following vulnerabilities:
- CVE-2016-5386: Remote attacker could have set the application's HTTP_PROXY environment variable via Proxy headers (boo#988487)
- Record
openSUSE-SU-2016:2536-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10802-1 No score
go-1.17-1.1 on GA media
These are all security issues fixed in the go-1.17-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10802-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10803-1 No score
go1.10-1.10.8-8.2 on GA media
These are all security issues fixed in the go1.10-1.10.8-8.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10803-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10804-1 No score
go1.11-1.11.13-10.5 on GA media
These are all security issues fixed in the go1.11-1.11.13-10.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10804-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10805-1 No score
go1.12-1.12.17-4.8 on GA media
These are all security issues fixed in the go1.12-1.12.17-4.8 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10805-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10811-1 No score
go1.4-1.4.3-12.2 on GA media
These are all security issues fixed in the go1.4-1.4.3-12.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10811-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10812-1 No score
go1.9-1.9.7-11.2 on GA media
These are all security issues fixed in the go1.9-1.9.7-11.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10812-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
golangAzure Linux:3 |
through 1.25.7-1 | None known |
golangAzure Linux:3 |
1.27.0 to 1.27.1-1 | None known |
stdlibGo |
before 1.6.3 | 1.6.3 |
golangMageia:5 |
before 1.6.3-1.mga5 | 1.6.3-1.mga5 |
golangRed Hat:enterprise_linux:7::server From an advisory covering 5 CVEs |
before 0:1.6.3-1.el7_2.1 | 0:1.6.3-1.el7_2.1 |
golang-binRed Hat:enterprise_linux:7::server From an advisory covering 5 CVEs |
before 0:1.6.3-1.el7_2.1 | 0:1.6.3-1.el7_2.1 |
golang-docsRed Hat:enterprise_linux:7::server From an advisory covering 5 CVEs |
before 0:1.6.3-1.el7_2.1 | 0:1.6.3-1.el7_2.1 |
golang-miscRed Hat:enterprise_linux:7::server From an advisory covering 5 CVEs |
before 0:1.6.3-1.el7_2.1 | 0:1.6.3-1.el7_2.1 |
golang-srcRed Hat:enterprise_linux:7::server From an advisory covering 5 CVEs |
before 0:1.6.3-1.el7_2.1 | 0:1.6.3-1.el7_2.1 |
golang-testsRed Hat:enterprise_linux:7::server From an advisory covering 5 CVEs |
before 0:1.6.3-1.el7_2.1 | 0:1.6.3-1.el7_2.1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
golang-1.6Ubuntu:16.04:LTS |
All versions, plus listed versions 1.6-0ubuntu11.6-0ubuntu21.6-0ubuntu31.6-0ubuntu41.6-0ubuntu5 Show 5 moreShow less1.6.1-0ubuntu11.6.2-0ubuntu5~16.041.6.2-0ubuntu5~16.04.21.6.2-0ubuntu5~16.04.31.6.2-0ubuntu5~16.04.4 |
None known |
goSUSE:Package Hub 12 |
before 1.6.1-6.1 | 1.6.1-6.1 |
go1.4SUSE:Package Hub 12 |
before 1.4.3-6.1 | 1.4.3-6.1 |
goopenSUSE:Tumbleweed From an advisory covering 10 CVEs |
before 1.17-1.1 | 1.17-1.1 |
go1.10openSUSE:Tumbleweed From an advisory covering 12 CVEs |
before 1.10.8-8.2 | 1.10.8-8.2 |
go1.11openSUSE:Tumbleweed From an advisory covering 15 CVEs |
before 1.11.13-10.5 | 1.11.13-10.5 |
go1.12openSUSE:Tumbleweed From an advisory covering 18 CVEs |
before 1.12.17-4.8 | 1.12.17-4.8 |
go1.4openSUSE:Tumbleweed From an advisory covering 4 CVEs |
before 1.4.3-12.2 | 1.4.3-12.2 |
go1.9openSUSE:Tumbleweed From an advisory covering 9 CVEs |
before 1.9.7-11.2 | 1.9.7-11.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-5386 is a high vulnerability (CVSS 8.1) in Golang Go, published July 18, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.22%, the 92nd percentile. Fixed in stdlib 1.6.3.
References
kb.cert.org/vuls/id/797896
bugzilla.redhat.com/show_bug.cgi?id=1353798
oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7WGHKKCFP4PLVSWQKCM3FJJPEWB5ZNTU
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OR52UXGM6RKSCWF3KQMVZGVZVJ3WEESJ
rhn.redhat.com/errata/RHSA-2016-1538.html
Show 56 moreShow less
h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03770en_us
httpoxy.org
oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
nvd.nist.gov/vuln/detail/CVE-2016-5386
lists.fedoraproject.org/archives/list/[email protected]/message/7WGHKKCFP4PLVSWQKCM3FJJPEWB5ZNTU
lists.fedoraproject.org/archives/list/[email protected]/message/OR52UXGM6RKSCWF3KQMVZGVZVJ3WEESJ
github.com/advisories/GHSA-9hq4-732f-9vgf
docs.bell-sw.com/security/cves/CVE-2016-5386
go.dev/cl/25010
go.googlesource.com/go/+/b97df54c31d6c4cc2a28a3c83725366d52329223
go.dev/issue/16405
groups.google.com/g/golang-announce/c/7jZDOQ8f8tM/m/eWRWHnc8CgAJ
advisories.mageia.org/MGASA-2016-0317.html
bugs.mageia.org/show_bug.cgi?id=19102
lists.fedoraproject.org/archives/list/[email protected]/thread/OR52UXGM6RKSCWF3KQMVZGVZVJ3WEESJ
access.redhat.com/errata/RHSA-2016:1538
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1346331
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_1538.json
access.redhat.com/security/cve/CVE-2015-5739
bugzilla.redhat.com/show_bug.cgi?id=1250352
cve.org/CVERecord?id=CVE-2015-5739
nvd.nist.gov/vuln/detail/CVE-2015-5739
access.redhat.com/security/cve/CVE-2015-5740
cve.org/CVERecord?id=CVE-2015-5740
nvd.nist.gov/vuln/detail/CVE-2015-5740
access.redhat.com/security/cve/CVE-2015-5741
cve.org/CVERecord?id=CVE-2015-5741
nvd.nist.gov/vuln/detail/CVE-2015-5741
access.redhat.com/security/cve/CVE-2016-3959
bugzilla.redhat.com/show_bug.cgi?id=1324343
cve.org/CVERecord?id=CVE-2016-3959
nvd.nist.gov/vuln/detail/CVE-2016-3959
access.redhat.com/security/cve/CVE-2016-5386
cve.org/CVERecord?id=CVE-2016-5386
ubuntu.com/security/CVE-2016-5386
bugzilla.suse.com/988487
suse.com/security/cve/CVE-2016-5386
suse.com/security/cve/CVE-2017-15041
suse.com/security/cve/CVE-2017-15042
suse.com/security/cve/CVE-2017-8932
suse.com/security/cve/CVE-2018-16873
suse.com/security/cve/CVE-2018-16874
suse.com/security/cve/CVE-2018-16875
suse.com/security/cve/CVE-2018-6574
suse.com/security/cve/CVE-2018-7187
suse.com/security/cve/CVE-2019-6486
suse.com/security/cve/CVE-2014-7189
suse.com/security/cve/CVE-2015-8618
suse.com/security/cve/CVE-2016-3959
suse.com/security/cve/CVE-2019-14809
suse.com/security/cve/CVE-2019-9512
suse.com/security/cve/CVE-2019-9514
suse.com/security/cve/CVE-2019-11888
suse.com/security/cve/CVE-2019-16276
suse.com/security/cve/CVE-2019-17596