CVE-2022-4063
WordPress vulnerability analysis and mitigation

Overview

The InPost Gallery WordPress plugin before version 2.1.4.1 contains a critical vulnerability (CVE-2022-4063) discovered and disclosed on November 28, 2022. The vulnerability stems from insecure usage of PHP's extract() function when rendering HTML views, which affects the plugin's gallery functionality (WPScan).

Technical details

The vulnerability is classified as a Local File Inclusion (LFI) that can be escalated to Remote Code Execution (RCE). It has received a CVSS score of 9.8 (Critical) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating high severity across confidentiality, integrity, and availability impacts. The vulnerability is tracked as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (NVD).

Impact

The vulnerability allows unauthenticated attackers to force the inclusion of malicious files and URLs, potentially enabling them to execute arbitrary code on affected servers. This could lead to complete server compromise, data theft, and system manipulation (WPScan).

Exploitability

The vulnerability is exploitable without authentication and requires low attack complexity. Proof of concept code exists that demonstrates both file disclosure capabilities and full remote code execution through PHP filter chains. The exploit can be triggered via the wp-admin/admin-ajax.php endpoint using the inpost_gallery_get_gallery action (WPScan).

Mitigation and workarounds

The vulnerability has been patched in version 2.1.4.1 of the InPost Gallery plugin. Site administrators are strongly advised to update to this version or later to protect against potential attacks (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-19848MEDIUM6.5
  • wp-user-avatar
NoYesAug 21, 2026
CVE-2026-17559MEDIUM5.3
  • content-protector
NoYesAug 21, 2026
CVE-2026-16650MEDIUM5.3
  • charitable
NoYesAug 21, 2026
CVE-2026-15150MEDIUM5.3
  • mycred
NoYesAug 21, 2026
CVE-2026-18356LOW3.7
  • limit-login-attempts-reloaded
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management