Fortinet Discovers WordPress NextGEN Gallery SQL Injection Vulnerability


Fortinet's FortiGuard Labs has discovered a SQL injection vulnerability in Imagely NextGEN Gallery plugin for WordPress.

NextGEN Gallery has been the industry's standard WordPress gallery plugin since 2007 and continues to receive over 1.5 million new downloads per year. It's easy for simple photo galleries, but powerful enough for the most demanding photographers, visual artists, and imaging professionals.

A SQL injection vulnerability exists in the Imagely NextGEN Gallery plugin through 3.2.10 for WordPress. Successful exploitation of this vulnerability would allow a remote attacker to execute arbitrary SQL commands on the affected system via modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php


FortiGuard Labs released the following FortiGate IPS signature which covers this specific vulnerability:


Users should apply the solution provided by Imagely


Fortinet reported the vulnerability to Imagely on 23 July, 2019.

Imagely confirmed the vulnerability and released a patch within NextGEN Gallery 3.2.10 on 24 July, 2019.

Imagely released a patch within NextGEN Gallery 3.2.11 to completely fix the issue on 27 August, 2019.


This vulnerability was discovered by Tin Duong of Fortinet's FortiGuard Labs.

IPS Subscription

Fortinet customers who subscribe to Fortinet's intrusion prevention (IPS) service should be protected against this vulnerability with the appropriate configuration parameters in place. Fortinet's IPS service is one component of FortiGuard Subscription Services, which also offer comprehensive solutions such as antivirus, Web content filtering and antispam capabilities. These services enable protection against threats on both application and network layers. FortiGuard Services are continuously updated by FortiGuard Labs, which enables Fortinet to deliver a combination of multi-layered security intelligence and true zero-day protection from new and emerging threats. These updates are delivered to all FortiGate, FortiMail and FortiClient products. Fortinet strictly follows responsible disclosure guidelines to ensure optimum protection during a threat's lifecycle.