User Post Gallery - UPG <= 2.19 - Missing Authorization to Remote Command Execution

Improper Neutralization of Special Elements used in a Command ('Command Injection')
CVE CVE-2022-4060
CVSS 9.8 (Critical)
Publicly Published December 26, 2022
Last Updated April 12, 2023
Researchers cydave
Chris Gardner


The User Post Gallery - UPG plugin for WordPress is vulnerable to authorization bypass which leads to remote command execution due to the use of a nopriv AJAX action and user supplied function calls and parameters in versions up to, and including 2.19. This makes it possible for unauthenticated attackers to call arbitrary PHP functions and perform actions like adding new files that can be webshells and updating the site's options to allow anyone to register as an administrator.

Wordfence blocked 10,427 attacks targeting this vulnerability in the past 24 hours.



1 affected software package

Software Type Plugin
Software Slug wp-upg (view on
Patched? No
Remediation No known patch available. Please review the vulnerability's details in depth and employ mitigations based on your organization's risk tolerance. It may be best to uninstall the affected software and find a replacement.
Affected Version
  • 2.19 - 2.19

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.