CVE-2020-35625 Code injection in n/a

High 8.8 Published Updated

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.

PackageAffectedFixed in
mediawiki BitnamiAll versions1.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.

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as BIT-mediawiki-2020-35625, GHSA-9w6x-xx84-rm4g.

Is CVE-2020-35625 in your software?

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

Check your SBOMs for free