← Vulnerability feed

Vulnerability record · CVE-2018-16159 · published 30 August 2018

CVE-2018-16159: WordPress Gift Vouchers plugin SQL injection via template_id

CCodemenschen · Gift Vouchers

The Gift Vouchers plugin for WordPress through version 2.0.1 passes the template_id parameter from an unauthenticated admin-ajax.php wpgv_doajax_front_template request into a SQL query without proper sanitization. This allows an attacker to inject arbitrary SQL, potentially reading or modifying the underlying database. The flaw is rated critical (CVSS 9.8) and has a public exploit, making it a serious risk for any site running the affected plugin.

9.8 CVSS 3.0 Critical EPSS 50% · top 1.1% CWE-89 · SQL injection
9.8CVSS 3.0 base score, v2 7.5
50%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

The Gift Vouchers plugin through 2.0.1 for WordPress allows SQL Injection via the template_id parameter in a wp-admin/admin-ajax.php wpgv_doajax_front_template request.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or user interaction required, a public exploit, and a high EPSS score make this an urgent risk for exposed WordPress sites.

What it is

The Gift Vouchers plugin for WordPress through version 2.0.1 passes the template_id parameter from an unauthenticated admin-ajax.php wpgv_doajax_front_template request into a SQL query without proper sanitization. This allows an attacker to inject arbitrary SQL, potentially reading or modifying the underlying database. The flaw is rated critical (CVSS 9.8) and has a public exploit, making it a serious risk for any site running the affected plugin.

Impact

An attacker can read, alter, or delete data in the WordPress database, including user credentials and site content, and may be able to escalate to full site compromise depending on database privileges.

Attack surface

The vulnerability is reached remotely over HTTP through wp-admin/admin-ajax.php with the wpgv_doajax_front_template action and a crafted template_id parameter. The CVSS vector indicates no authentication and no user interaction are required.

Exploitation

The record is not listed in CISA KEV, but EPSS is high (0.499 probability, 98.8th percentile) and a public Exploit-DB entry exists, indicating active interest and available exploit code.

What to do

  • Update the Gift Vouchers plugin to a version later than 2.0.1 if one is available, or remove the plugin if it is no longer maintained.
  • If patching is not immediately possible, disable or restrict access to the wpgv_doajax_front_template AJAX action.
  • Deploy a web application firewall rule to block SQL injection patterns targeting the template_id parameter.
  • Audit the WordPress database and user accounts for signs of tampering or unauthorized changes.
  • Apply least-privilege database permissions to the WordPress database user to limit the impact of SQL injection.

Detection

  • Monitor web server and WAF logs for requests to wp-admin/admin-ajax.php with the wpgv_doajax_front_template action and suspicious template_id values.
  • Search for SQL injection indicators such as UNION, SELECT, or comment sequences in the template_id parameter.
  • Review database query logs for anomalous queries originating from the WordPress application.
  • Check for unexpected changes to WordPress users, options, or content that could indicate post-exploitation activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://wpvulndb.com/vulnerabilities/9117 Third Party Advisory
https://www.exploit-db.com/exploits/45255/ ExploitThird Party AdvisoryVDB Entry
https://wpvulndb.com/vulnerabilities/9117 Third Party Advisory
https://www.exploit-db.com/exploits/45255/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2018-16159 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2023-28662Codemenschen gift vouchers sql injection vulnerabilityThe Gift Cards (Gift Vouchers and Packages) WordPress Plugin, version <= 4.3.1, is affected by an unauthenticated SQL injection vulnerability in the …EPSS 42%5.3CVE-2024-13520Codemenschen gift vouchers missing authorization vulnerabilityThe Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported) plugin for WordPress is vulnerable to unauthorized modification of data|loss of d…EPSS 0.31%9.8CVE-2026-76461Cisco AsyncOS email parsing SQL injection allows root command executionCisco AsyncOS Software for Cisco Secure Email Gateway fails to properly validate email parsing input, allowing crafted email messages containing mali…KEVEPSS 28%analysed9.3CVE-2026-9586Sangoma Switchvox unauthenticated SQL injection in /pa endpointSangoma Switchvox SMB Edition 8.3 (104997) fails to sanitize the PhoneIP value from XML content beginning with <PolycomIPPhone> before concatenating …KEVEPSS 19%analysed10.0CVE-2026-72898Metabase unauthenticated SQL injection in reset_password endpointMetabase exposes a database endpoint, '/reset_password', that fails to neutralize attacker-supplied SQL, allowing arbitrary SQL injection. Because th…KEVEPSS 19%analysed5.9CVE-2026-60137WordPress WP_Query author__not_in SQL injectionWordPress core fails to properly sanitise the author__not_in parameter of WP_Query in versions before 6.8.6, 6.9.5 and 7.0.2, allowing SQL injection …KEVEPSS 5.9%analysed9.8CVE-2026-9082Drupal core SQL injection in unauthenticated request pathDrupal core contains a SQL injection flaw (CWE-89) caused by improper neutralization of special elements in SQL commands. It affects multiple core br…KEVEPSS 16%analysed9.3CVE-2026-42208LiteLLM proxy SQL injection in API key checkLiteLLM versions 1.81.16 to before 1.83.7 build a database query for proxy API key checks by concatenating the caller-supplied key into the query tex…KEVEPSS 5.8%analysed

Source: NIST National Vulnerability Database (record CVE-2018-16159), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.