Contest Gallery <= 19.1.4.1 - Authenticated (Author+) SQL Injection via option_id GET

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2022-4152
CVSS High (7.5)
Publicly Published December 5, 2022
Last Updated January 22, 2024
Researcher Kunal Sharma, Daniel Krohmer
Description

The Contest Gallery plugin for WordPress is vulnerable to SQL Injection in versions up to, and including, 19.1.4.1 due to insufficient escaping on the user supplied option_id GET parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with author-level privileges or higher to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

References

2 affected software package

Software Type Plugin
Software Slug contest-gallery (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 19.1.4.1
Patched Version
  • 19.1.5
Software Type Plugin
Software Slug contest-gallery-pro (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 19.1.4.1
Patched Version
  • 19.1.5
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.