Gallery – Image and Video Gallery with Thumbnails <= 2.0.3 - Authenticated (Subscriber+) SQL Injection via Gallery AJAX Actions

Medium 6.5 CWE-89Fixed in 2.1.0
ID
WPSEC-2026-4725
Plugin
Gallery – Image and Video Gallery with Thumbnails (gallery-album)
Affected
all versions before 2.1.0
Remediation
Update to 2.1.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-89
Usage
Plugin Low · Affected versions None seen among sites WPSec scans, 2026-12-06
Attack surface
Gallery – Image and Video Gallery with Thumbnails on WPSec AttackSurface
Fix released
Published

Description

The gallery-album plugin for WordPress is vulnerable to SQL Injection via the gallery management AJAX actions (such as wpda_gall_form_gallery_rename, wpda_gall_form_album_rename and wpda_gall_form_edit_image) in all versions up to, and including, 2.0.3. This is due to the handlers lacking any capability check and building their UPDATE and DELETE queries by concatenating request values, and to gallery and album names stored this way being concatenated, without escaping or prepared statements, into later queries such as those of the public wpda_gall_load_image_info action and the gallery shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to append additional SQL to existing queries and potentially extract sensitive information from the database.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0