CVE-2022-46166 Spring Boot Admins integrated notifier support allows arbitrary code execution
Attackers with write access to environment variables can execute arbitrary code via integrated notifiers in Spring Boot Admin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-46166?
CVE-2022-46166 is a high-severity code injection vulnerability in codecentric spring-boot-admin, published on 9 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Spring boot admins is an open source administrative user interface for management of spring boot applications. All users who run Spring Boot Admin Server, having enabled Notifiers (e.g. Teams-Notifier) and write access to environment variables via UI are affected. Users are advised to upgrade to the most recent releases of Spring Boot Admin 2.6.10 and 2.7.8 to resolve this issue. Users unable to upgrade may disable any notifier or disable write access (POST request) on `/env` actuator endpoint.
Weakness: CWE-94
Which versions are affected by CVE-2022-46166?
6 open source packages ship an affected version, including de.codecentric:spring-boot-admin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
de.codecentric:spring-boot-admin Maven | All versions | 2.6.10 |
de.codecentric:spring-boot-admin Maven | All versions | 2.6.10 |
de.codecentric:spring-boot-admin Maven | From 2.7.0 | 2.7.8 |
de.codecentric:spring-boot-admin Maven | From 2.7.0 | 2.7.8 |
de.codecentric:spring-boot-admin Maven | From 3.0.0-M1 | 3.0.0-M6 |
de.codecentric:spring-boot-admin Maven | From 3.0.0-M1 | 3.0.0-M6 |
Products include Codecentric Spring Boot Admin.
How do I fix CVE-2022-46166?
Upgrade de.codecentric:spring-boot-admin to a fixed version for your release line: 2.6.10, 2.7.8 or 3.0.0-M6.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-46166 being exploited?
There is no known exploitation of CVE-2022-46166 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in codecentric spring-boot-admin
Sources
Also known as GHSA-w3x5-427h-wfq6.