Security mailing lists by PureSourceCode

CVE-2021-31232

MEDIUM 5.5CVSS 3.1

Improper input validation in CNCF Cortex

The Alertmanager in CNCF Cortex before 1.8.1 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.

Published
30 Apr 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-20
Also known as
GHSA-m45g-f45x-vv22GO-2022-0915
Sources
NVDJSONOSV GHSA-m45g-f45x-vv22JSONOSV GO-2022-0915JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 2.1 AV:L/AC:L/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation cortex
cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*
< 1.8.1 1.8.1
OSV Go github.com/cortexproject/cortex < 1.8.1 1.8.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Apr 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.