CVE Catalog

CVE-2026-8912

High
Published: Translated: NVD NIST

Summary

The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'form_input' parameter in versions up to and including 28.1.6. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query inside the unauthenticated 'post_cg_gallery_form_upload' AJAX action.

Risk Assessment

Unauthenticated attackers can append additional SQL queries into existing ones, potentially leading to the extraction of sensitive information from the database. This poses a serious threat to the organization's data security.

Recommendation

It is recommended to update the Contest Gallery plugin to the latest version to eliminate the vulnerability. Additionally, conducting a security audit of the application is advisable to minimize the risk of similar attacks in the future.

Original NVD description (English source)

The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'form_input' parameter in versions up to, and including, 28.1.6. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query inside the unauthenticated 'post_cg_gallery_form_upload' AJAX action (specifically the 'cb' branch of the included users-upload-check.php, where $f_input_id is concatenated unquoted into 'SELECT Field_Content FROM ... WHERE id = $f_input_id'). The endpoint is gated only by a public frontend nonce ('cg1l_action' / 'cg_nonce') that is exposed in the page source of any public gallery page. 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS