CVE-2023-31873
Gin 0.7.4 allows execution of arbitrary code when a crafted file is opened, e.g., via require('child_process').
Does this matter?
A public exploit is published in Exploit-DB and the impact is high, while EPSS rates exploitation at 1.3%. Anyone can run this; patch or mitigate before the next change window and check exposed instances for signs of use.
Description
Gin 0.7.4 allows execution of arbitrary code when a crafted file is opened, e.g., via require('child_process').
- CVSS 3.1
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 1.35% probability · 72th percentile
- Public exploits
- 1 in Exploit-DB · first 23 May 2023
- CISA KEV
- Not listed
- Affected
- gin project/gin
- Source
- cve@mitre.org
In plain terms
It runs on the victim's own machine and needs them to act, typically by opening a file they have been sent.
- Reached from
- From the machine itself. The attacker needs a session on it, or has to get a user to run something.
- Effort
- Nothing outside the attacker's control has to line up, so an attack can be repeated reliably.
- Login needed
- None. No login is needed.
- Someone else involved
- Yes. Someone has to do something, such as open a file or follow a link.
- At risk
- Reading data: serious. Changing data: serious. Stopping the service: serious.
Read from the CVSS 3.1 vector above. It describes the flaw itself, not how your own systems are set up.
The first public exploit in Exploit-DB is dated 23 May 2023, 5 days before the record was published.
EPSS 1.3% since 5 December 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
Where to go from here
One vulnerability is rarely the whole question. These are free, and none of them asks for an account.
By email
Our briefing by email: what changed, what to patch and what it means for a UK organisation. Written for the people who have to act on it.
References
- http://packetstormsecurity.com/files/172530/Gin-Markdown-Editor-0.7.4-Arbitrary-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/172530/Gin-Markdown-Editor-0.7.4-Arbitrary-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.