# CVE-2026-135643: Video Gallery <= 1.1.7 - Unauthenticated SQL Injection via 'Client-IP' / 'X-Forwarded-For' Header

- Severity: High 7.5 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-02T03:27:46.684Z
- Modified: 2026-12-02T04:17:22.147Z
- Weaknesses: CWE-89
- Assigned by: Wordfence

## Description

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.

(As written by CVE List.)

## Affected

- origincode Video Gallery – Vimeo and YouTube Gallery: up to 1.1.7

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/50d69bfe-edd2-415f-a598-7e1d191c2a07?source=cve>
- <https://plugins.trac.wordpress.org/browser/smart-grid-gallery/tags/1.1.7/includes/functions/parameters.php#L408>
- <https://plugins.trac.wordpress.org/browser/smart-grid-gallery/tags/1.1.7/includes/view/class-ajax-call.php#L35>
- <https://plugins.trac.wordpress.org/browser/smart-grid-gallery/tags/1.1.7/includes/view/class-ajax-call.php#L623>

## Sources

- CVE List: [CVE-2026-135643](https://www.cve.org/CVERecord?id=CVE-2026-135643), CVE Terms of Use, modified 2026-12-02
- NVD: [CVE-2026-135643](https://nvd.nist.gov/vuln/detail/CVE-2026-135643), Public domain, modified 2026-12-02

---

Page: https://cve.day/CVE-2026-135643 · Whole record: https://cve.day/CVE-2026-135643.json · Rebuilt by cve.day 2026-12-02T04:32:35.574Z
