CVE-2023-31873 Code injection in n/a

High 7.8 Published Updated

Attackers can execute arbitrary code by tricking users into opening a crafted file in the Gin library.

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
None listed

What is CVE-2023-31873?

CVE-2023-31873 is a high-severity code injection vulnerability in n/a, published on 28 May 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

Gin 0.7.4 allows execution of arbitrary code when a crafted file is opened, e.g., via require('child_process').

Which versions are affected by CVE-2023-31873?

It affects 1 product.

Products include Gin Project Gin.

How do I fix CVE-2023-31873?

No fix has been published for CVE-2023-31873 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-31873 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-pfw3-264h-9m32.

Is CVE-2023-31873 in your software?

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

Check your SBOMs for free