{"id":"CVE-2021-3120","published":"2021-02-22T14:24:34Z","modified":"2024-08-03T16:45:51Z","title":"An arbitrary file upload vulnerability in the YITH WooCommerce Gift Cards Premium plugin before 3.3.1 for WordPress…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.36781,"percentile":0.9854,"provenance":"source"},"cwes":[],"references":[{"url":"https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/","tags":["x_refsource_MISC"]},{"url":"https://github.com/guy-liu/yith-giftdrop","tags":["x_refsource_MISC"]}],"priority":{"score":26.6,"factors":[{"name":"EPSS percentile","points":19.71},{"name":"CVSS severity","points":6.86}]},"summary":{"text":"The YITH WooCommerce Gift Cards Premium plugin for WordPress, in versions before 3.3.1, contains an arbitrary file upload flaw in its handling of the ywgc-upload-picture parameter, which can accept a .php extension even though only Gift Card images were meant to be permitted. An remote attacker who can place a valid Gift Card product into the shopping cart, with no authentication or user interaction required, can upload a file to a predetermined path on the web server under a chosen filename and extension, achieving remote code execution in the web server's security context.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:30:09Z"},"euvd":{"id":"EUVD-2021-26471","exploited":false,"provenance":"source"}}