CVE-2023-33546 janino vulnerable to denial of service due to stack overflow

Medium 5.5 Published Updated

An attacker can cause a denial of service via stack overflow in Janino's expression evaluator if it processes untrusted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-33546?

CVE-2023-33546 is a medium-severity denial of service vulnerability in n/a, published on 1 Jun 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Janino 3.1.9 and earlier are subject to denial of service (DOS) attacks when using the expression evaluator.guess parameter name method. If the parser runs on user-supplied input, an attacker could supply content that causes the parser to crash due to a stack overflow. NOTE: this is disputed by multiple parties because Janino is not intended for use with untrusted input.

Weakness: CWE-787

Which versions are affected by CVE-2023-33546?

2 open source packages ship an affected version, including org.codehaus.janino:janino-parent. It affects 1 product.

PackageAffectedFixed in
org.codehaus.janino:janino-parent MavenAll versions to 3.1.9None
org.codehaus.janino:janino-parent MavenAll versions to 3.1.9None
Linux distribution packages (2)
janino openSUSE:Leap 15.4All versions3.1.10-150200.3.7.1
janino openSUSE:Leap 15.5All versions3.1.10-150200.3.7.1

Products include Janino Project Janino.

How do I fix CVE-2023-33546?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-33546 being exploited?

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

Sources

Also known as DEBIAN-CVE-2023-33546, GHSA-gcg6-xv4f-f749, SUSE-SU-2023:3385-1, openSUSE-SU-2024:13129-1.

Is CVE-2023-33546 in your software?

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

Check your SBOMs for free