CVE-2022-46166 Spring Boot Admins integrated notifier support allows arbitrary code execution

High 8.1 Published Updated

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.

PackageAffectedFixed in
de.codecentric:spring-boot-admin MavenAll versions2.6.10
de.codecentric:spring-boot-admin MavenAll versions2.6.10
de.codecentric:spring-boot-admin MavenFrom 2.7.02.7.8
de.codecentric:spring-boot-admin MavenFrom 2.7.02.7.8
de.codecentric:spring-boot-admin MavenFrom 3.0.0-M13.0.0-M6
de.codecentric:spring-boot-admin MavenFrom 3.0.0-M13.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.

Sources

Also known as GHSA-w3x5-427h-wfq6.

Is CVE-2022-46166 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free