PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-25032: 
Python vulnerability analysis and mitigation

Overview

CVE-2020-25032 is a directory traversal vulnerability discovered in Flask-CORS (CORS Middleware for Flask) versions before 3.0.9. The vulnerability was disclosed on August 31, 2020, affecting the Flask-CORS package which handles Cross Origin Resource Sharing (CORS) in Flask applications. The issue allows attackers to use '../' directory traversal to access private resources because resource matching does not ensure that pathnames are in a canonical format (NVD, MITRE).

Technical details

The vulnerability stems from Flask-CORS incorrectly evaluating CORS resource matching before path expansion. For example, a path like '/api/../foo.txt' would incorrectly match resources for '/api/*' whereas the path actually expands to '/foo.txt'. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating it is network accessible, requires low attack complexity, and can be exploited without authentication (NVD).

Impact

The vulnerability allows attackers to bypass intended access restrictions and potentially expose sensitive information by accessing private resources that should be restricted. This could lead to unauthorized access to confidential data stored in the application (Debian).

Exploitability

The vulnerability is remotely exploitable without requiring authentication. An attacker can exploit this issue by sending specially crafted requests containing directory traversal sequences to bypass resource matching rules (NVD).

Mitigation and workarounds

The vulnerability was fixed in Flask-CORS version 3.0.9. The fix includes properly escaping paths before evaluating resource rules. Organizations using affected versions should upgrade to version 3.0.9 or later. Various Linux distributions have also released security updates to address this vulnerability in their packages (Flask-CORS Release).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-57121HIGH8.1
  • Python logoPython
  • praisonai-platform
NoYesOct 23, 2026
GHSA-249c-7rgc-f52hHIGH7.5
  • Python logoPython
  • svglib
NoYesOct 23, 2026
GHSA-h8jf-9f4f-2v9hMEDIUM6.8
  • Python logoPython
  • docling
NoYesOct 23, 2026
CVE-2026-54711LOW2.4
  • Python logoPython
  • pghoard
NoNoOct 23, 2026
GHSA-g536-hq2j-5mpfLOWN/A
  • Python logoPython
  • openai4s
NoNoOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management