CVE-2021-31232
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine with a low-privilege account. High risk of data exposure.
- Exploit odds
- 0.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.4% in the next 30 days (EPSS).
- Severity: 5.5 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.4% · EPSS, next 30 days
- Record status
- Modified
Affected
- Linuxfoundation Cortex < 1.8.1
Attack profile CVSS 3.1 · 5.5
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-31232.md and follow it. Check whether this project is affected by CVE-2021-31232. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/cortexproject/cortex/pull/4129/files
- https://lists.cncf.io/g/cortex-users/message/50
- https://github.com/cortexproject/cortex/pull/4129/files
- https://lists.cncf.io/g/cortex-users/message/50
References
- https://community.grafana.com/c/security-announcements
- https://github.com/cortexproject/cortex
- https://github.com/cortexproject/cortex/pull/4129/files
- https://lists.cncf.io/g/cortex-users/message/50
- https://community.grafana.com/c/security-announcements
- https://github.com/cortexproject/cortex
- https://github.com/cortexproject/cortex/pull/4129/files
- https://lists.cncf.io/g/cortex-users/message/50