CVE-2026-135643 in Video Gallery Plugininfo

Summary

by MITRE • 12/02/2026

The Video Gallery – Vimeo and YouTube Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'HTTP_CLIENT_IP (fallback HTTP_X_FORWARDED_FOR)' parameter in all versions up to, and including, 1.1.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The vulnerable INSERT branch is only reached when the supplied IP address and video ID combination has not been previously recorded; an attacker can trivially satisfy this condition by supplying a novel header value.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 12/02/2026

The Video Gallery plugin for WordPress, which integrates content from Vimeo and YouTube platforms into websites, contains a critical security flaw identified as a time-based SQL injection vulnerability in versions up to 1.1.7. This vulnerability stems directly from insufficient input validation and sanitization mechanisms applied to the HTTP_CLIENT_IP header, with fallback logic that also processes the HTTP_X_FORWARDED_FOR header when the former is absent or empty. The core technical failure lies in the application's handling of these user-supplied parameters during database operations. Specifically, the plugin fails to properly escape special characters within the IP address string before incorporating it into SQL queries. This lack of preparation allows an attacker to inject malicious SQL syntax that alters the intended logic of the database command, effectively bypassing standard security controls designed to prevent unauthorized data access.

The operational impact of this vulnerability is severe because it affects unauthenticated users, meaning no prior login or authentication credentials are required to exploit the flaw. The injection point is triggered during an INSERT operation within the plugin's codebase. This specific branch of execution only activates when a particular combination of IP address and video ID has not been previously recorded in the database. An attacker can trivially satisfy this condition by generating requests with novel or random header values, ensuring that the vulnerable code path is executed every time they attempt an exploit. Once triggered, the injected SQL commands allow for data extraction through time-based blind techniques. By manipulating query execution times based on boolean conditions within the injected payload, attackers can systematically deduce sensitive information stored in the WordPress database, such as user credentials, configuration details, or other proprietary content protected by the site's access controls.

From a classification perspective, this vulnerability aligns with CWE-89, which describes Improper Neutralization of Special Elements used in an SQL Command, commonly known as SQL Injection. The specific exploitation method utilized here falls under ATT&CK technique T1059.004, specifically the use of SQL commands for remote command execution or data exfiltration via blind time-based techniques. This categorization highlights that while no direct code execution occurs on the server operating system, the ability to extract arbitrary database content constitutes a significant compromise of confidentiality and integrity within the web application layer. The reliance on HTTP headers rather than standard form inputs also illustrates how attackers can bypass basic input filters by targeting less commonly monitored request metadata fields like X-Forwarded-For or Client-Ip.

To mitigate this vulnerability, immediate action is required to update the Video Gallery plugin to version 1.1.8 or later, where these sanitization issues have been addressed. In cases where updating is not immediately feasible, administrators should implement a Web Application Firewall rule that specifically monitors and blocks SQL injection patterns within HTTP headers such as X-Forwarded-For and Client-Ip. Additionally, enforcing strict input validation on the server side to ensure that IP address fields contain only valid numeric or dotted-decimal formats can prevent malformed inputs from reaching the database layer. Regular security audits focusing on parameterized queries are essential to ensure that all user-supplied data is treated as literal values rather than executable code, thereby eliminating the root cause of this class of vulnerabilities across WordPress ecosystems.

Responsible

Wordfence

Reservation

11/23/2026

Disclosure

12/02/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!