CVE-2021-39174 Configuration leak

High 8.8 Published Updated

Authenticated users can leak sensitive configuration values like application secrets and passwords from the dotenv file.

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-39174?

CVE-2021-39174 is a high-severity 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 leak the value of any configuration entry of the dotenv file, e.g. the application secret (`APP_KEY`) and various passwords (email, database, etc). This issue was addressed in version 2.5.1 by improving `UpdateConfigCommandHandler` and preventing the use of nested variables in the resulting dotenv configuration file. As a workaround, only allow trusted source IP addresses to access to the administration dashboard.

Weakness: CWE-75

Which versions are affected by CVE-2021-39174?

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-39174?

Upgrade cachethq/cachet to 2.5.1 or later.

Is CVE-2021-39174 being exploited?

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

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-88f9-7xxh-c688.

Is CVE-2021-39174 in your software?

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

Check your SBOMs for free