CVE-2023-1304 Rapid7 InsightCloudSec getattr() method access

High 8.8 Published Updated

Authenticated attackers can execute OS commands via Jinja template injection in Rapid7 InsightCloudSec, requiring an upgrade to patched versions.

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

What is CVE-2023-1304?

CVE-2023-1304 is a high-severity code injection vulnerability in Rapid7 InsightCloudSec, published on 21 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An authenticated attacker can leverage an exposed getattr() method via a Jinja template to smuggle OS commands and perform other actions that are normally expected to be private methods. This issue was resolved in the Managed and SaaS deployments on February 1, 2023, and in version 23.2.1 of the Self-Managed version of InsightCloudSec.

Weakness: CWE-94

Which versions are affected by CVE-2023-1304?

It affects 2 products.

Products include Rapid7 Insightappsec, Rapid7 Insightcloudsec.

How do I fix CVE-2023-1304?

No fix has been published for CVE-2023-1304 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2023-1304 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-1304 exists.

Sources

Also known as GHSA-m8h2-2q9c-f24g.

Is CVE-2023-1304 in your software?

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

Check your SBOMs for free