CVE-2022-4060: The User Post Gallery WordPress plugin through 2.19 does not limit what callback functions can be called by us
CVE-2022-4060 is a critical-severity flaw (CVSS 9.8) affecting user post gallery. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 42.7% (top 1%) |
| CISA exploited list | No |
| Published | 2023-01-16 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: im-hanzou/UPGer (8 stars)
- Write-up: wpscan.com/vulnerability/8f982ebd-6fc5-452d-8280-42e027d01b1e
- Nuclei scan template: WordPress User Post Gallery <=2.19 - Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-4060?
user post gallery: upgrade to newer than 2.19. Exact commands for each OS are on this page.
Is CVE-2022-4060 being exploited?
CVE-2022-4060 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-4060 affect?
CVE-2022-4060 affects user post gallery. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2022-4060?
Priority 72/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action