Vulnerability record · CVE-2021-3120 · published 22 February 2021
CVE-2021-3120: Yithemes yith woocommerce gift cards unrestricted file upload vulnerability
Yithemes · Yith Woocommerce Gift Cards
An arbitrary file upload vulnerability in the YITH WooCommerce Gift Cards Premium plugin before 3.3.1 for WordPress allows remote attackers to achieve remote code execution on the operating system in the security context of the web server. In order to exploit this vulnerability, an attacker must be able to place a valid Gift Card product into the shopping cart. An uploaded file is placed at a predetermined path on the web server with a user-specified filename and extension. This occurs because the ywgc-upload-picture parameter can have a .php value even though the intention was to only allow uploads of Gift Card images.
Description
An arbitrary file upload vulnerability in the YITH WooCommerce Gift Cards Premium plugin before 3.3.1 for WordPress allows remote attackers to achieve remote code execution on the operating system in the security context of the web server. In order to exploit this vulnerability, an attacker must be able to place a valid Gift Card product into the shopping cart. An uploaded file is placed at a predetermined path on the web server with a user-specified filename and extension. This occurs because the ywgc-upload-picture parameter can have a .php value even though the intention was to only allow uploads of Gift Card images.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/guy-liu/yith-giftdrop | ExploitThird Party Advisory |
| https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/ | Vendor Advisory |
| https://github.com/guy-liu/yith-giftdrop | ExploitThird Party Advisory |
| https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/ | Vendor Advisory |
Track CVE-2021-3120 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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-3120), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.