CVE-2023-30861
published high CVSS 3.1 · 7.5Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pallets | — | flask>= 2.3.0, < 2.3.2 · < 2.2.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-183 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | flask | Advisory build | 1.1.2-2+deb11u1 | DSA-5442-1 |
| Ubuntu | focal | flask | Advisory build | 1.1.1-2ubuntu0.1 | USN-6111-1 |
| Oracle Linux | 8 | python3-flaskaarch64 | Advisory build | 1:0.12.2-4.0.1.el8 | ELSA-2023-12710 |
| SUSE / openSUSE | SLE-15-SP1 | python3-Flasknoarch | Advisory build | 1.0.2-150100.6.3.1 | SUSE-SU-2023:2264-1 |
| Amazon Linux | AL2023 | python-flasknoarch | Listed in advisory | Not stated | ALAS2023-2023-183 |
| Debian | buster | flask | Advisory build | 1.0.2-3+deb10u1 | DLA-3536-1 |
Show 55 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | flask | Advisory build | 2.0.1-2ubuntu1.1 | USN-6111-1 |
| Oracle Linux | 8 | python3-flaskx86_64 | Advisory build | 1:0.12.2-4.0.1.el8 | ELSA-2023-12710 |
| SUSE / openSUSE | SLE-15-SP2 | python3-Flasknoarch | Advisory build | 1.0.2-150100.6.3.1 | SUSE-SU-2023:2264-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-Flasknoarch | Advisory build | 1.0.2-150100.6.3.1 | SUSE-SU-2023:2264-1 |
| SUSE / openSUSE | SLE-15-SP4 | python2-Flasknoarch | Advisory build | 1.0.2-150100.6.3.1 | SUSE-SU-2023:2264-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-Flasknoarch | Advisory build | 1.0.4-150400.3.3.1 | SUSE-SU-2023:2263-1 |
| SUSE / openSUSE | SLE-15-SP5 | python2-Flasknoarch | Advisory build | 1.0.2-150100.6.3.1 | SUSE-SU-2023:2264-1 |
| SUSE / openSUSE | SLE-15-SP5 | python3-Flasknoarch | Advisory build | 1.0.4-150400.3.3.1 | SUSE-SU-2023:2263-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-Flasknoarch | Advisory build | 1.0.4-150400.3.3.1 | SUSE-SU-2023:2263-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-Flask-docnoarch | Advisory build | 1.0.4-150400.3.3.1 | SUSE-SU-2023:2263-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Flasknoarch | Advisory build | 1.0.4-150400.3.3.1 | SUSE-SU-2023:2263-2 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Flask-docnoarch | Advisory build | 1.0.4-150400.3.3.1 | SUSE-SU-2023:2263-2 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flaskaarch64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flaskppc64le | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flasks390x | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flaskx86_64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flask-docaarch64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flask-docppc64le | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flask-docs390x | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Flask-docx86_64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flaskaarch64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flaskppc64le | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flasks390x | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flaskx86_64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docaarch64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docppc64le | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docs390x | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docx86_64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flaskaarch64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flaskppc64le | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flasks390x | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flaskx86_64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docaarch64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docppc64le | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docs390x | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docx86_64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flaskaarch64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flaskppc64le | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flasks390x | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flaskx86_64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flask-docaarch64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flask-docppc64le | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flask-docs390x | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Flask-docx86_64 | Advisory build | 3.1.3-3.1 | OPENSUSE-SU-2026:11902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flaskaarch64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flaskppc64le | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flasks390x | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flaskx86_64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flask-docaarch64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flask-docppc64le | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flask-docs390x | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Flask-docx86_64 | Advisory build | 2.2.5-1.1 | OPENSUSE-SU-2024:12923-1 |
| Ubuntu | focal | python3-flask | Advisory build | 1.1.1-2ubuntu0.1 | USN-6111-1 |
| Ubuntu | jammy | python3-flask | Advisory build | 2.0.1-2ubuntu1.1 | USN-6111-1 |
| Amazon Linux | AL2023 | python-flasksrc | Listed in advisory | Not stated | ALAS2023-2023-183 |
Description
Flask is a lightweight WSGI web application framework. When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by the proxy to other clients. If the proxy also caches `Set-Cookie` headers, it may send one client's `session` cookie to other clients. The severity depends on the application's use of the session and the proxy's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies. 2. The application sets `session.permanent = True` 3. The application does not access or modify the session at any point during a request. 4. `SESSION_REFRESH_EACH_REQUEST` enabled (the default). 5. The application does not set a `Cache-Control` header to indicate that a page is private or should not be cached. This happens because vulnerable versions of Flask only set the `Vary: Cookie` header when the session is accessed or modified, not when it is refreshed (re-sent to update the expiration) without being accessed or modified. This issue has been fixed in versions 2.3.2 and 2.2.5.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pallets | flask | >= 2.3.0, < 2.3.2 (affected)< 2.2.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-539 CWE-539: Use of Persistent Cookies Containing Sensitive Information
References
8- https://github.com/pallets/flask/commit/70f906c51ce49c485f1d355703e9cc3386b1cc2b
- https://github.com/pallets/flask/commit/afd63b16170b7c047f5758eb910c416511e9c965
- https://github.com/pallets/flask/releases/tag/2.2.5
- https://github.com/pallets/flask/releases/tag/2.3.2
- https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq
- https://lists.debian.org/debian-lts-announce/2023/08/msg00024.html
- https://security.netapp.com/advisory/ntap-20230818-0006/
- https://www.debian.org/security/2023/dsa-5442
Provider assertions
3GitHub_M · cna
Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 67db07b1d293950eea63519ef6cf6bf0c2bb5f6cbc2abbd092021b1fdc58e28c
- Ingested
- 23 Sep 2026, 08:08:38 UTC
- Source record
- Official CVE record