CVE-2020-4050

set-screen-option filter misuse by plugins leading to privilege escalation in WordPress

3.5 low EPSS 1.41%

Published 12 Jun 2020 Updated 4 Aug 2024 CNA: GitHub_M

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.

Check my servers

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)

3.5 low CVSS 3.1 from GitHub_M (CNA)
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.

ProductVersions
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-4050

RHEL, Rocky, Alma, Fedora

rpm -q wordpress-develop
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-4050

Alpine

apk list --installed | grep -i wordpress-develop

With 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

Other references

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.