CVE-2019-12452: Github.com/traefik/traefik Containous Traefik Exposes Password Hashes Vulnerability

HIGH
Advisory Identifier: GHSA-r3fq-cmmw-cpmm
CVSS 7.5
CWE-522
Published
Advisory Summary

CVE-2019-12452 is a HIGH (CVSS 7.5) containous traefik exposes password hashes vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Github.com/traefik/traefik libraries in the Go ecosystem. The issue involves containous traefik exposes password hashes. Remediation is available by upgrading affected packages to version 1.7.12.

CVE-2019-12452 at a Glance

CVE Identifier CVE-2019-12452
GHSA Identifier GHSA-r3fq-cmmw-cpmm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Github.com/traefik/traefik
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-12452

To remediate this vulnerability, upgrade all affected Github.com/traefik/traefik dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/traefik/traefik fixed: 1.7.12
Upgrade github.com/traefik/traefik to 1.7.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/traefik/traefik

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-12452, inspect your project dependencies for Github.com/traefik/traefik:

inspect dependencies for github.com/traefik/traefik

Analyze the terminal output to locate any version of Github.com/traefik/traefik in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.12), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Github.com/traefik/traefik, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

types/types.go in Containous Traefik 1.7.x through 1.7.11, when the `--api` flag is used and the API is publicly reachable and exposed without sufficient access control (which is contrary to the API documentation), allows remote authenticated users to discover password hashes by reading the Basic HTTP Authentication or Digest HTTP Authentication section, or discover a key by reading the ClientTLS section. These can be found in the JSON response to a `/api` request.

CVE-2019-12452 Affected Github.com/traefik/traefik Versions

1 component(s)
Fixed Versions:
1.7.12
Product / Package Ecosystem Affected Versions Fixed Version
github.com/traefik/traefik
Go
≥ 1.7.0
< 1.7.12
1.7.12

References

Frequently Asked Questions

What is CVE-2019-12452?
CVE-2019-12452 is a security vulnerability in Github.com/traefik/traefik involving Containous Traefik Exposes Password Hashes under CWE-522: Insufficiently Protected Credentials.
Which Github.com/traefik/traefik versions are affected?
Affected versions include releases prior to 1.7.12 across affected packages: github.com/traefik/traefik.
What version fixes CVE-2019-12452?
Upgrading to 1.7.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/traefik/traefik affected?
Yes, github.com/traefik/traefik is affected in releases prior to 1.7.12. Upgrade your dependency to 1.7.12 or later.
What is the CVSS score of CVE-2019-12452?
CVE-2019-12452 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-12452?
CVE-2019-12452 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check Go dependencies for CVE-2019-12452?
Run the dependency tree command: 'inspect dependencies for github.com/traefik/traefik'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r3fq-cmmw-cpmm",
  "modified" : "2023-08-24T13:02:38Z",
  "published" : "2022-05-24T16:46:50Z",
  "aliases" : [ "CVE-2019-12452" ],
  "summary" : "Containous Traefik Exposes Password Hashes",
  "details" : "types/types.go in Containous Traefik 1.7.x through 1.7.11, when the `--api` flag is used and the API is publicly reachable and exposed without sufficient access control (which is contrary to the API documentation), allows remote authenticated users to discover password hashes by reading the Basic HTTP Authentication or Digest HTTP Authentication section, or discover a key by reading the ClientTLS section. These can be found in the JSON response to a `/api` request.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/traefik/traefik"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.7.12"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.7.11"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-12452"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containous/traefik/issues/4917"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containous/traefik/pull/4918"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/traefik/traefik/commit/a169fec2e08e391d24b509c00fcf011656c1395c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/containous/traefik"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-14T19:46:49Z",
    "nvd_published_at" : "2019-05-29T19:29:00Z"
  }
}