Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cortexproject/cortex
  4. ›
  5. CVE-2021-31232

CVE-2021-31232: Improper Input Validation

April 30, 2021 (updated August 8, 2023)

The Alertmanager in CNCF Cortex has a local file disclosure vulnerability when -experimental.alertmanager.enable-api is used. The HTTP basic auth password_file can be used as an attack vector to send any file content via a webhook. The alertmanager templates can be used as an attack vector to send any file content because the alertmanager can load any text file specified in the templates list.

References

  • lists.cncf.io/g/cortex-users/message/50
  • nvd.nist.gov/vuln/detail/CVE-2021-31232

Code Behaviors & Features

Detect and mitigate CVE-2021-31232 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.1

Fixed versions

  • v1.8.1

Solution

Upgrade to version 1.8.1 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Source file

go/github.com/cortexproject/cortex/CVE-2021-31232.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.