CVE-2021-39172 New line injection during configuration edition

High 8.8 Published Updated

Authenticated users can inject newlines in configuration settings to achieve arbitrary code execution on the Cachet status page server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-39172?

CVE-2021-39172 is a high-severity code injection vulnerability in fiveai Cachet, published on 27 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Cachet is an open source status page system. Prior to version 2.5.1, authenticated users, regardless of their privileges (User or Admin), can exploit a new line injection in the configuration edition feature (e.g. mail settings) and gain arbitrary code execution on the server. This issue was addressed in version 2.5.1 by improving `UpdateConfigCommandHandler` and preventing the use of new lines characters in new configuration values. As a workaround, only allow trusted source IP addresses to access to the administration dashboard.

Weakness: CWE-93

Which versions are affected by CVE-2021-39172?

2 open source packages ship an affected version, including cachethq/cachet. It affects 1 product.

PackageAffectedFixed in
cachethq/cachet PackagistAll versions2.5.1
cachethq/cachet PackagistAll versions2.5.1

Products include Catchethq Catchet.

How do I fix CVE-2021-39172?

Upgrade cachethq/cachet to 2.5.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-39172 being exploited?

There is no known exploitation of CVE-2021-39172 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-9jxw-cfrh-jxq6.

Is CVE-2021-39172 in your software?

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

Check your SBOMs for free