CVE-2020-4050
set-screen-option filter misuse by plugins leading to privilege escalation in WordPress
Check your servers for CVE-2020-4050
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-4050 affects wordpress-develop, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In affected versions of WordPress, misuse of the `set-screen-option` filter's return value allows arbitrary user meta fields to be saved. It does require an admin to install a plugin that would misuse the filter. Once installed, it can be leveraged by low privileged users. This has been patched in version 5.4.2, along with all the previously affected versions via a minor release (5.3.4, 5.2.7, 5.1.6, 5.0.10, 4.9.15, 4.8.14, 4.7.18, 4.6.19, 4.5.22, 4.4.23, 4.3.24, 4.2.28, 4.1.31, 4.0.31, 3.9.32, 3.8.34, 3.7.34).
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality none, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.41%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 72.9% of all scored CVEs. Scores of 28 Nov 2026.
Weakness
- CWE-288 Authentication Bypass Using an Alternate Path or Channel
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| wordpress-develop |
affected >= 5.4.0, < 5.4.2 affected >= 5.3.0, < 5.3.4 affected >= 5.2.0, < 5.2.7 affected >= 5.1.0, < 5.1.6 affected >= 5.0.0, < 5.0.10 affected >= 4.9.0, < 4.9.15 affected >= 4.8.0, < 4.8.14 affected >= 4.7.0, < 4.7.18 affected >= 4.6.0, < 4.6.19 affected >= 4.5.0, < 4.5.22 affected >= 4.4.0, < 4.4.23 affected >= 4.3.0, < 4.3.24 affected >= 4.2.0, < 4.2.28 affected >= 4.1.0, < 4.1.31 affected >= 4.0.0, < 4.0.31 affected >= 3.9.0, < 3.9.32 affected >= 3.8.0, < 3.8.34 affected >= 3.7.0, < 3.7.34
|
Is my server affected?
Find the installed version of wordpress-develop and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i wordpress-develop
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-4050 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-4050RHEL, Rocky, Alma, Fedora
rpm -q wordpress-develop
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-4050Alpine
apk list --installed | grep -i wordpress-developWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-4050
trivy image --scanners vuln IMAGE | grep CVE-2020-4050
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-4vpv-fgg2-gcqc github.com
- FEDORA-2020-8447a3e195 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-bbedd29391 lists.fedoraproject.org · vendor advisory
- DSA-4709 debian.org · vendor advisory
Other references
- https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/ wordpress.org
- https://github.com/WordPress/wordpress-develop/commit/b8dea76b495f0072523106c6ec46b9ea0d2a0920 github.com
- [debian-lts-announce] 20200701 [SECURITY] [DLA 2269-1] wordpress security update lists.debian.org · mailing list
- [debian-lts-announce] 20200911 [SECURITY] [DLA 2371-1] wordpress security update lists.debian.org · mailing list
Source: the record CVE-2020-4050 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse