{
  "id": "CVE-2026-27641",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-27641",
  "published_at": "2026-02-25T03:54:54.391Z",
  "title": "Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection",
  "vendor": "jugmac00",
  "product": "flask-reuploaded",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-07-23T08:48:45Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 148.2,
    "repo": "Max78000/CVE-2026-27641-Flask-Reuploaded",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Flask-Reuploaded provides file uploads for Flask. A critical path traversal and extension bypass vulnerability in versions prior to 1.5.0 allows remote attackers to achieve arbitrary file write and remote code execution through Server-Side Template Injection (SSTI). Flask-Reuploaded has been patched in version 1.5.0. Some workarounds are available. Do not pass user input to the `name` parameter, use auto-generated filenames only, and implement strict input validation if `name` must be used.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:jugmac00:flask-reuploaded:*:*:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "Max78000/CVE-2026-27641-Flask-Reuploaded",
      "url": "https://github.com/Max78000/CVE-2026-27641-Flask-Reuploaded",
      "created_at": "2026-07-23T08:48:45Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-01-15T18:50:08Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "jugmac00",
        "product": "flask-reuploaded",
        "ranges": [
          "\u003c 1.5.0"
        ],
        "fixed_in": [
          "1.5.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade flask-reuploaded to 1.5.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/jugmac00/flask-reuploaded/security/advisories/GHSA-65mp-fq8v-56jr"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/jugmac00/flask-reuploaded/pull/180"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/jugmac00/flask-reuploaded/commit/d64c6b2f71cb73734fc38baa0e3e156926361288"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/file_uploads",
      "body_markers": [
        "name=\"file\"; filename=\"../..//test.txt\"",
        "file="
      ],
      "content_type": "multipart/form-data",
      "ports": [
        5000
      ],
      "protocol": "http",
      "repos": [
        "Max78000/CVE-2026-27641-Flask-Reuploaded"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "Max78000/CVE-2026-27641-Flask-Reuploaded/PoC.py:37",
        "Max78000/CVE-2026-27641-Flask-Reuploaded/PoC.py:9"
      ]
    }
  ],
  "rules": []
}
