CVE-2016-5386 Server-side request forgery in n/a

High 8.1 Published Updated

Remote attackers can redirect CGI application outbound traffic to arbitrary proxies via crafted Proxy headers, potentially exposing internal data or bypassing security controls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-5386?

CVE-2016-5386 is a high-severity server-side request forgery vulnerability in Fedoraproject Fedora, published on 19 Jul 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-284

Which versions are affected by CVE-2016-5386?

1 open source package ship an affected version, including stdlib. It affects 6 products.

PackageAffectedFixed in
stdlib GoAll versions1.6.3
Linux distribution packages (3)
go SUSE:Package Hub 12All versions1.6.1-6.1
go SUSE:Package Hub 12All versions1.6.1-6.1
go1.4 SUSE:Package Hub 12All versions1.4.3-6.1

Products include Fedoraproject Fedora, Golang Go, Oracle Linux, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Eus.

How do I fix CVE-2016-5386?

Upgrade stdlib to 1.6.3 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2016-5386 being exploited?

There is no known exploitation of CVE-2016-5386 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-78994, AZL-98904, CVE-2016-1000101, GHSA-9hq4-732f-9vgf, GO-2022-0761, MGASA-2016-0317 and 4 more.

Is CVE-2016-5386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free