CVE-2022-40635 Improper Control of Dynamically-Managed Code Resources in Crafter Studio

Medium 6.4 Published Updated

Authenticated developers can execute OS commands via a Groovy Sandbox Bypass in Crafter Studio, requiring a patch to prevent remote code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-40635?

CVE-2022-40635 is a medium-severity code injection vulnerability in Crafter CMS, published on 13 Sep 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Improper Control of Dynamically-Managed Code Resources vulnerability in Crafter Studio of Crafter CMS allows authenticated developers to execute OS commands via Groovy Sandbox Bypass.

Weakness: CWE-913

Which versions are affected by CVE-2022-40635?

2 open source packages ship an affected version, including org.craftercms:craftercms. It affects 1 product.

PackageAffectedFixed in
org.craftercms:craftercms MavenFrom 3.1.03.1.23
org.craftercms:craftercms MavenFrom 3.1.03.1.23

Products include Craftercms Crafter Cms.

How do I fix CVE-2022-40635?

Upgrade org.craftercms:craftercms to 3.1.23 or later.

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

Is CVE-2022-40635 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-j6x3-3jqq-m922.

Is CVE-2022-40635 in your software?

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

Check your SBOMs for free