WordPress
CVE-2025-31422
HIGH
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
4DescriptionCVE.org
Deserialization of Untrusted Data vulnerability in designthemes Visual Art | Gallery WordPress Theme visual-arts allows Object Injection.This issue affects Visual Art | Gallery WordPress Theme: from n/a through <= 2.4.
AnalysisAI
Object injection via unsafe deserialization in designthemes Visual Art | Gallery WordPress Theme (versions 2.4 and earlier) allows attackers to instantiate arbitrary PHP objects, potentially leading to remote code execution or information disclosure depending on available gadget chains in the WordPress environment. No CVSS vector is available, and exploitation probability is low at 0.16 EPSS percentile 36%, with no confirmed public exploit code or active exploitation reported at time of analysis.
Technical ContextAI
The vulnerability stems from CWE-502 (Deserialization of Untrusted Data), a class flaw in which user-supplied input is passed to PHP's unserialize() function or equivalent without validation. This occurs in the Visual Art | Gallery WordPress Theme, allowing an attacker to craft serialized PHP objects that, when deserialized, instantiate gadget chain classes already present in the WordPress/plugin ecosystem. The theme fails to sanitize or validate serialized data before processing, creating an object injection vector. WordPress plugins and core libraries frequently contain magic methods (__wakeup, __destruct, __toString) that can be chained to achieve arbitrary code execution if accessible gadget chains exist.
Affected ProductsAI
The designthemes Visual Art | Gallery WordPress Theme (CPE: implicitly wp:designthemes:visual-art-gallery-wordpress-theme) is affected in all versions from initial release through version 2.4 inclusive. This is a free or premium WordPress theme distributed via the WordPress.org theme repository or third-party marketplaces. All installations running version 2.4 or earlier are at risk.
RemediationAI
Update the Visual Art | Gallery WordPress Theme to version 2.5 or later (patch version not explicitly stated in references, but vendor advisory from Patchstack indicates a fix is available). Access the WordPress dashboard, navigate to Appearance > Themes, locate Visual Art | Gallery, and click Update if available. Alternatively, download the patched version from the official source (designthemes website or WordPress.org theme repository) and re-upload manually. Until patching is possible, ensure WordPress security hardening practices are in place, including limiting administrative access and disabling direct object deserialization where possible through code review. For detailed remediation guidance, refer to the Patchstack advisory: https://patchstack.com/database/Wordpress/Theme/visual-arts/vulnerability/wordpress-visual-art-gallery-wordpress-theme-2-4-php-object-injection-vulnerability?_s_id=cve
The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
Remote code execution in WordPress 6.9.x (before 6.9.5) and 7.0.x (before 7.0.2) arises from a REST API batch endpoint r
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
Same weakness CWE-502 – Deserialization of Untrusted Data
View allSame technique Deserialization
View allShare
External POC / Exploit Code
Leaving vuln.today