Arbitrary file upload in Yithemes Yith Woocommerce Gift Cards
CVE-2021-3120
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.
Vulnerability class: Unrestricted File Upload
EPSS: 0.368 (98.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Yithemes Yith_woocommerce_gift_cards
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cve@mitre.org (x_refsource_MISC, Vendor Advisory)
- cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2021-3120?
- CVE-2021-3120 is a critical-severity vulnerability in Yithemes Yith Woocommerce Gift Cards, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 9.8/10. Published 2021-02-22.
- How severe is CVE-2021-3120?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2021-3120 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.