CVE-2022-4060

User Post Gallery <= 2.19 - Unauthenticated RCE

9.8 critical EPSS 42.7%

Published 16 Jan 2023 Updated 4 Apr 2025 CNA: WPScan

Description

The User Post Gallery WordPress plugin through 2.19 does not limit what callback functions can be called by users, making it possible to any visitors to run code on sites running it.

Severity (CVSS)

9.8 critical CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 42.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 4 Apr 2025):

Exploitation
poc: a proof of concept is public
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-94 Improper Control of Generation of Code

Affected products

As the CNA lists them.

ProductVersions
User Post Gallery
Unknown
affected up to and including 2.19
Other versions: affected

Is my server affected?

This CVE is in a product, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Exploits and proof of concept

Source: the record CVE-2022-4060 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; 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.