{"id":"CVE-2026-27641","published":"2026-02-25T03:54:54Z","modified":"2026-02-25T21:12:45Z","title":"Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection","vendor":"jugmac00","product":"flask-reuploaded","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01317,"percentile":0.71516,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/jugmac00/flask-reuploaded/security/advisories/GHSA-65mp-fq8v-56jr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jugmac00/flask-reuploaded/pull/180","tags":["x_refsource_MISC"]},{"url":"https://github.com/jugmac00/flask-reuploaded/commit/d64c6b2f71cb73734fc38baa0e3e156926361288","tags":["x_refsource_MISC"]}],"priority":{"score":26.2,"factors":[{"name":"EPSS percentile","points":14.3},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-23","earliestUrl":"https://github.com/Max78000/CVE-2026-27641-Flask-Reuploaded","repos":[{"name":"Max78000/CVE-2026-27641-Flask-Reuploaded","url":"https://github.com/Max78000/CVE-2026-27641-Flask-Reuploaded","stars":0,"created":"2026-07-23"}]},"first":{"date":"2026-07-23","source":"PoC-in-GitHub","url":"https://github.com/Max78000/CVE-2026-27641-Flask-Reuploaded"},"provenance":"source"},"vendorSlug":"jugmac00","affectedVersions":[{"vendor":"jugmac00","product":"flask-reuploaded","versions":["< 1.5.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-25T21:12:32.024132Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flask-reuploaded","vulnerableRanges":["<1.5.0"],"patched":["1.5.0"],"from":["GHSA-65mp-fq8v-56jr","PYSEC-2026-341"],"provenance":"source"}],"summary":{"text":"The Flask-Reuploaded library (product flask-reuploaded, by jugmac00) contains a path traversal and extension bypass flaw that lets user-supplied input reach server-side template processing, resulting in Server-Side Template Injection in its file upload functionality. An attacker with network access and no authentication or user interaction can use it to write arbitrary files and execute code on the server when the library is used with versions prior to 1.5.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:53Z"},"euvd":{"id":"EUVD-2026-8616","exploited":false,"provenance":"source"}}