CVE-2022-4157: Contest Gallery < 19.1.5 - Admin+ SQL Injection

Published Dec 26, 2022
·
Updated

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape the cgoptionid POST parameter before concatenating it to an SQL query in export-votes-all.php. This may allow malicious users with administrator privileges (i.e. on multisite WordPress configurations) to leak sensitive information from the site's database.

Affected Software

2 affected components
contest-gallery Contest Gallery Wordpress<19.1.5.1
contest-gallery Contest Gallery Wordpress<19.1.5.1

Event History

Dec 26, 2022
CVE Published
via MITRE·12:27 PM
Data Sourced
via MITRE·12:27 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-4157?

CVE-2022-4157 is a vulnerability in the Contest Gallery WordPress plugin and Contest Gallery Pro WordPress plugin that allows malicious users with administrator privileges to execute arbitrary SQL queries.

2

What versions of the Contest Gallery plugins are affected?

Versions up to and excluding 19.1.5.1 of the Contest Gallery WordPress plugin and Contest Gallery Pro WordPress plugin are affected.

3

What is the severity of CVE-2022-4157?

CVE-2022-4157 has a severity keyword of 'medium' and a severity value of 4.9.

4

How can the vulnerability be exploited?

The vulnerability can be exploited by malicious users with administrator privileges who can manipulate the 'cg_option_id' POST parameter to execute arbitrary SQL queries in the 'export-votes-all.php' file.

5

Are there any references for more information on CVE-2022-4157?

Yes, you can find more information on CVE-2022-4157 at the following references: [https://bulletin.iese.de/post/contest-gallery_19-1-4-1_3](https://bulletin.iese.de/post/contest-gallery_19-1-4-1_3) and [https://wpscan.com/vulnerability/71feec63-67a5-482e-bf77-1396c306fae6](https://wpscan.com/vulnerability/71feec63-67a5-482e-bf77-1396c306fae6).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203