Improper Control of Resources Affecting github.com/traefik/traefik/v2/pkg/middlewares/headers package, versions <2.4.13


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMTRAEFIKTRAEFIKV2PKGMIDDLEWARESHEADERS-1536534
  • published4 Aug 2021
  • disclosed4 Aug 2021
  • creditUnknown

Introduced: 4 Aug 2021

CVE-2021-32813  (opens in a new tab)
CWE-913  (opens in a new tab)

How to fix?

Upgrade github.com/traefik/traefik/v2/pkg/middlewares/headers to version 2.4.13 or higher.

Overview

github.com/traefik/traefik/v2/pkg/middlewares/headers is a Cloud Native Application Proxy.

Affected versions of this package are vulnerable to Improper Control of Resources via the handling of the Connection header. If an attacker has a chain of Traefik middlewares, and one of them sets a request header, then sending a request with a certain Connection header will cause it to be removed before the request is sent. In this case, the backend does not see the request header.

Active exploitation of this issue is unlikely, as it requires that a removed header would lead to a privilege escalation.

CVSS Scores

version 3.1