{
  "schemaVersion": "guard-threat-campaign/v1",
  "id": "HGTC-2026-66CDE3A3",
  "slug": "cve-2026-104998-product-input-fields-woocommerce-file-upload",
  "title": "Product Input Fields for WooCommerce writes uploads under the visitor's own filename (CVE-2026-104998)",
  "aliases": [
    "CVE-2026-104998"
  ],
  "summary": "CVE-2026-104998 is an arbitrary file upload flaw in Product Input Fields for WooCommerce, the WordPress plugin that adds extra fields to a product page, including a file field for shoppers sending an image or document with an order. It affects every version up to and including 2.1.0 and is fixed in 2.2.0, released on November 24, 2026. The process_file_input_field function takes the Content-Type header the visitor supplies as its only type check, then writes the upload into a folder called pif_temp under the site uploads directory, under the visitor's own filename. That folder is created with no .htaccess and no index.php guard, so files there are directly reachable, and on a default Apache and mod_php setup a written PHP file runs when requested. Wordfence, as numbering authority, scores the flaw 9.8 Critical under CVSS 3.1, and the record lists CWE-434. The flaw needs a product with a file-type field and the Show thumbnail option enabled, a setup the record calls a standard use of the feature. The fixed code reads the real type from the file content, accepts only jpg and png, writes under a random name, and protects the uploads directory. This page gives shop owners the version and field readings that settle exposure, the pif_temp hunt, and the test order that proves the fix. The CVE is not in the CISA KEV catalog read for this page, and no source read here reports attacks in the wild.",
  "status": "published",
  "severity": "critical",
  "confidence": "high",
  "uncertainty": "Whether a written file runs turns on the server stack, and whether the flaw is reachable turns on the shop's own product fields; both are settled only by the shop owner's readings. The fix reading rests on the plugin code at tags 2.1.0 and 2.2.0 read side by side in this run. HOL did not reproduce the flaw.",
  "firstObservedAt": "2026-11-24T00:00:00.000Z",
  "lastObservedAt": "2026-11-26T00:00:00.000Z",
  "publishedAt": "2026-11-30T07:54:50.128Z",
  "reviewedAt": "2026-11-30T07:54:03.783Z",
  "expiresAt": "2026-11-26T00:00:00.000Z",
  "reviewer": "HOL Guard Security Publishing",
  "sources": [
    {
      "id": "nvd-cve-2026-104998",
      "label": "NVD record for CVE-2026-104998 (Wordfence CNA, CVSS 3.1 9.8, CWE-434)",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104998",
      "sourceType": "vulnerability_database",
      "observedAt": "2026-11-26T00:00:00.000Z"
    },
    {
      "id": "wordfence-product-input-fields-upload",
      "label": "Wordfence Intelligence entry for CVE-2026-104998, Product Input Fields for WooCommerce 2.1.0 and earlier unauthenticated arbitrary file upload",
      "url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/2b729c88-9a7e-4729-bec1-6e5f9bef4f2d?source=cve",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-11-26T00:00:00.000Z"
    },
    {
      "id": "wporg-product-input-fields-code",
      "label": "WordPress plugin repository code for Product Input Fields for WooCommerce at tags 2.1.0 and 2.2.0 (process_file_input_field) and the plugin changelog (2.2.0, November 24, 2026, upload security fix)",
      "url": "https://plugins.svn.wordpress.org/product-input-fields-for-woocommerce/tags/2.1.0/includes/class-pif-cart.php",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-11-24T00:00:00.000Z"
    },
    {
      "id": "cisa-kev",
      "label": "CISA Known Exploited Vulnerabilities catalog, version 2026.11.27 (CVE absent)",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "sourceType": "government",
      "observedAt": "2026-11-27T00:00:00.000Z"
    }
  ],
  "artifacts": [
    {
      "id": "product-input-fields-woocommerce-plugin",
      "artifactClass": "package",
      "ecosystem": "generic",
      "name": "Product Input Fields for WooCommerce WordPress plugin",
      "version": "All versions up to and including 2.1.0; fixed in 2.2.0 (released November 24, 2026)",
      "defanged": false
    }
  ],
  "indicators": [],
  "timeline": [
    {
      "id": "last-vulnerable-release",
      "occurredAt": "2026-09-28T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "Version 2.1.0, the last affected release, shipped on September 28, 2026 per the plugin changelog.",
      "sourceIds": [
        "wporg-product-input-fields-code"
      ]
    },
    {
      "id": "fixed-release",
      "occurredAt": "2026-11-24T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "Version 2.2.0 shipped on November 24, 2026; its changelog carries the fix for the unauthenticated executable upload through file-type Product Input Fields, alongside a separate reflected cross-site scripting fix.",
      "sourceIds": [
        "wporg-product-input-fields-code"
      ]
    },
    {
      "id": "cve-published",
      "occurredAt": "2026-11-26T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "The CVE record for CVE-2026-104998 was published on November 26, 2026, with the Wordfence CVSS 3.1 score of 9.8 and CWE-434, naming all versions up to and including 2.1.0.",
      "sourceIds": [
        "nvd-cve-2026-104998"
      ]
    },
    {
      "id": "kev-absence-read",
      "occurredAt": "2026-11-30T00:00:00.000Z",
      "eventType": "first_observed",
      "summary": "Read in this run on November 30, 2026: the CISA KEV catalog at version 2026.11.27 holds 1,808 entries and no entry for CVE-2026-104998.",
      "sourceIds": [
        "cisa-kev"
      ]
    }
  ],
  "coverage": [
    {
      "assertionId": "guard-evidence-pack",
      "relationship": "provides_evidence",
      "limitation": "The campaign rests on the NVD record (Wordfence as numbering authority), the Wordfence intelligence entry named in the record references, the plugin code at tags 2.1.0 and 2.2.0 and the plugin changelog read firsthand in this run, and the CISA KEV feed. The Wordfence entry itself returned an empty response to a direct read in this run, so its facts are carried through the NVD record that Wordfence authored. HOL did not reproduce the flaw."
    }
  ],
  "policies": [
    {
      "policyId": "update-product-input-fields-2-2-0",
      "purpose": "Update Product Input Fields for WooCommerce to 2.2.0 or later on every WordPress shop that runs it, because versions up to and including 2.1.0 trust the visitor-supplied Content-Type header as the only type check and write uploads into the unguarded pif_temp folder under the visitor-supplied filename, so an unauthenticated visitor can place a file that runs as code where a product uses a file field with Show thumbnail on (CVE-2026-104998)",
      "status": "available",
      "limitation": "A shop with no file-type field on any product is outside the flaw today; the policy still applies because adding such a field later would open the flaw on an unpatched version."
    }
  ],
  "limitations": [
    "The flaw needs a product with a file-type input field and the Show thumbnail option enabled, which the CVE record calls a standard use of the feature.",
    "Whether a written file runs turns on the server: the record ties execution to default Apache and mod_php setups, since the pif_temp folder is created with no .htaccess or index.php guard.",
    "No exploitation in the wild is reported by any source read for this page, and the CVE is absent from the CISA KEV catalog version read in this run.",
    "The detection guidance follows where the vulnerable code writes files; no indicator set is published for this flaw."
  ],
  "correctionHref": "/guard/security/campaigns/cve-2026-104998-product-input-fields-woocommerce-file-upload/corrections"
}
