CVE-2022-3276 Puppetlabs-mysql Command Injection

High 8.4 Published Updated

Attackers can execute arbitrary commands if they control unsanitized input to the Puppetlabs-mysql module, requiring specific deployment conditions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-3276?

CVE-2022-3276 is a high-severity command injection vulnerability in puppetlabs-mysql, published on 7 Oct 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Command injection is possible in the puppetlabs-mysql module prior to version 13.0.0. A malicious actor is able to exploit this vulnerability only if they are able to provide unsanitized input to the module. This condition is rare in most deployments of Puppet and Puppet Enterprise.

Weakness: CWE-78

Which versions are affected by CVE-2022-3276?

It affects 1 product.

Linux distribution packages (4)
puppet-mysql Red Hat:openstack:13::el7All versions0:5.2.2-0.20180216012143.a5497b2.el7ost
puppet-mysql Red Hat:openstack:16.1::el8All versions0:10.4.1-2.20221019195006.95f9b98.el8ost
puppet-mysql Red Hat:openstack:16.2::el8All versions0:10.4.1-2.20221019195006.95f9b98.el8ost
puppet-mysql Red Hat:openstack:17.0::el9All versions0:10.6.1-0.20220614215045.937d044.el9ost

Products include Puppet Puppetlabs-Mysql.

How do I fix CVE-2022-3276?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-3276 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-3276, GHSA-6wx8-c453-jp55, RHSA-2022:7238, UBUNTU-CVE-2022-3276.

Is CVE-2022-3276 in your software?

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

Check your SBOMs for free