ADVISORIES

Ubuntu Security Notice

USN-7612-1

python-flask-cors vulnerabilities

Details

It was discovered that Flask-CORS did not correctly handle certain regular expressions. A remote attacker could possibly use this issue to leak sensitive information or bypass authentication mechanisms. (CVE-2024-6839) It was discovered that Flask-CORS allowed certain CORS headers to be enabled by default. A remote attacker could possibly use this issue to leak sensitive information. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-6221) It was discovered that Flask-CORS did not correctly handle case sensitivity when matching paths. A remote attacker could possibly use this issue to leak sensitive information. (CVE-2024-6866) It was discovered that Flask-CORS did not correctly handle certain characters in URL paths. A remote attacker could possibly use this issue to leak sensitive information or bypass authentication mechanisms. (CVE-2024-6844) Elias Hohl was discovered that Flask-CORS did not correctly sanitize log entries. A remote attacker could possibly use this issue to corrupt log files. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-1681)

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:20.04:LTSpython-flask-cors
All versions before 3.0.8-2ubuntu0.1+esm1 (fixed in 3.0.8-2ubuntu0.1+esm1)
Ubuntu:22.04:LTSpython-flask-cors
All versions before 3.0.9-2ubuntu0.1 (fixed in 3.0.9-2ubuntu0.1)
Ubuntu:Pro:24.04:LTSpython-flask-cors
All versions before 4.0.0-1ubuntu0.1~esm1 (fixed in 4.0.0-1ubuntu0.1~esm1)

References