CVE-2022-40274 Code injection in Gridea
Remote attackers can execute arbitrary code on Gridea clients by tricking users into viewing malicious markdown files due to enabled nodeIntegration.
- 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-2022-40274?
CVE-2022-40274 is a high-severity code injection vulnerability in Gridea, published on 30 Sep 2022. 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
Gridea version 0.9.3 allows an external attacker to execute arbitrary code remotely on any client attempting to view a malicious markdown file through Gridea. This is possible because the application has the 'nodeIntegration' option enabled.
Weakness: CWE-94
Which versions are affected by CVE-2022-40274?
It affects 1 product.
Products include Gridea Gridea.
How do I fix CVE-2022-40274?
No fix has been published for CVE-2022-40274 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-2022-40274 being exploited?
There is no known exploitation of CVE-2022-40274 in the wild and no public exploit code.
Other vulnerabilities in Gridea
Sources
Also known as GHSA-wpjq-v255-668c.