CVE-2021-27021 SQL injection in Puppet DB

High 8.8 Published Updated

An SQL injection flaw in Puppet DB allows attackers to escalate privileges and delete database tables.

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

CVE-2021-27021 is a high-severity SQL injection vulnerability in Puppet Puppet Enterprise, published on 20 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was discovered in Puppet DB, this flaw results in an escalation of privileges which allows the user to delete tables via an SQL query.

Weakness: CWE-89, CWE-1027

Which versions are affected by CVE-2021-27021?

It affects 3 products.

Products include Puppet Puppet, Puppet Puppet Enterprise, Puppet Puppetdb.

How do I fix CVE-2021-27021?

Apply the vendor's patch.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-27021 being exploited?

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

All Puppet Puppet Enterprise vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-27021, GHSA-j664-pgf6-rhhh, UBUNTU-CVE-2021-27021.

Is CVE-2021-27021 in your software?

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

Check your SBOMs for free