CVE-2026-135643: Video Gallery <= 1.1.7 - Unauthenticated SQL Injection via 'Client-IP' / 'X-Forwarded-For' Header
The Video Gallery – Vimeo and YouTube Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'HTTPCLIENTIP (fallback HTTPXFORWARDEDFOR)' 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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An unauthenticated remote attacker can exploit it. No account or user interaction is required, and the vulnerable input is supplied through the Client-IP header or, as a fallback, the X-Forwarded-For header.
What condition is required to reach the vulnerable database operation?
The supplied IP address and video ID combination must not already have been recorded. An attacker can satisfy this by sending a new header value.
Are installations running version 1.1.7 affected?
Yes. The issue affects all versions up to and including 1.1.7.
What could an attacker obtain through successful exploitation?
The SQL injection can be used to extract sensitive information from the WordPress database. The provided severity vector indicates high confidentiality impact, with no stated integrity or availability impact.