CVE-2020-35625 Code injection in n/a
Users with edit permissions in the Widgets namespace can execute arbitrary PHP code via crafted HTML comments in Smarty templates.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-35625?
CVE-2020-35625 is a high-severity code injection vulnerability in Mediawiki Mediawiki, published on 21 Dec 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in the Widgets extension for MediaWiki through 1.35.1. Any user with the ability to edit pages within the Widgets namespace could call any static function within any class (defined within PHP or MediaWiki) via a crafted HTML comment, related to a Smarty template. For example, a person in the Widget Editors group could use \MediaWiki\Shell\Shell::command within a comment.
Weakness: CWE-862
Which versions are affected by CVE-2020-35625?
1 open source package ship an affected version, including mediawiki. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.35.2 |
Products include Mediawiki Mediawiki.
How do I fix CVE-2020-35625?
Upgrade mediawiki to 1.35.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-35625 being exploited?
There is no known exploitation of CVE-2020-35625 in the wild and no public exploit code.
Other vulnerabilities in Mediawiki Mediawiki
Sources
Also known as BIT-mediawiki-2020-35625, GHSA-9w6x-xx84-rm4g.