# 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…

- Severity: Critical 9.8 (CVSS:3.1, scored by mitre) `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 36.8%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-22T14:24:34.000Z
- Modified: 2026-06-17T04:04:42.087Z
- Weaknesses: CWE-434
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- yithemes yith_woocommerce_gift_cards: before 3.3.1

## Every score

- mitre: CVSS:3.1 9.8 Critical `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/guy-liu/yith-giftdrop> (exploit, third-party-advisory)
- <https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-3120](https://www.cve.org/CVERecord?id=CVE-2021-3120), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3120](https://nvd.nist.gov/vuln/detail/CVE-2021-3120), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3120 · Whole record: https://cve.day/CVE-2021-3120.json · Rebuilt by cve.day 2026-11-25T22:58:00.005Z
