
CVE catalog
CVE-2023-30861
flask: CVE-2023-30861
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.26% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | flask | sid | 3.1.3-4 | fixed |
| Debian | flask | forky | 3.1.3-4 | fixed |
| Debian | flask | trixie | 3.1.1-1+deb13u1 | fixed |
| Debian | flask | bookworm | 2.2.2-3 | fixed |
| Opensuse | python-Flask | tumbleweed | 3.1.3-3.1 | fixed |
| Ubuntu | flask | 20.04 | 1.0.2-3 | vulnerable |
| Ubuntu | flask | 20.04 | 1.1.1-2 | vulnerable |
| Ubuntu | flask | 20.04 | 1.1.1-2ubuntu0.1 | fixed |
| Ubuntu | flask | 22.04 | 1.1.2-2 | vulnerable |
| Ubuntu | flask | 22.04 | 2.0.1-2ubuntu1 | vulnerable |
| Ubuntu | flask | 22.04 | 2.0.1-2ubuntu1.1 | fixed |
| Suse | python-Flask | linux enterprise module for package hub 15 sp4 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise module for package hub 15 sp5 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise high performance computing 15 sp1-ltss | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise high performance computing 15 sp2-ltss | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise high performance computing 15 sp3-espos | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise high performance computing 15 sp3-ltss | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise real time 15 sp3 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise server 15 sp1-ltss | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise server 15 sp2-ltss | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise server 15 sp3-ltss | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise server for sap applications 15 sp1 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise server for sap applications 15 sp2 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | linux enterprise server for sap applications 15 sp3 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | manager proxy 4.2 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | manager server 4.2 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | enterprise storage 7 | 1.0.2-150100.6.3.1 | fixed |
| Suse | python-Flask | enterprise storage 7.1 | 1.0.2-150100.6.3.1 | fixed |
| Ubuntu | flask | 20.04 | 1.0.2-3 | vulnerable |
| Ubuntu | flask | 20.04 | 1.1.1-2 | vulnerable |
| Ubuntu | flask | 20.04 | 1.1.1-2ubuntu0.1 | fixed |
| Ubuntu | flask | 22.04 | 1.1.2-2 | vulnerable |
| Ubuntu | flask | 22.04 | 2.0.1-2ubuntu1 | vulnerable |
| Ubuntu | flask | 22.04 | 2.0.1-2ubuntu1.1 | fixed |
| Opensuse | python-Flask | leap 15.5 | 1.0.4-150400.3.3.1 | fixed |
| Suse | python-Flask | linux enterprise module for basesystem 15 sp4 | 1.0.4-150400.3.3.1 | fixed |
| Suse | python-Flask | linux enterprise module for basesystem 15 sp5 | 1.0.4-150400.3.3.1 | fixed |
| Opensuse | python-Flask | leap 15.4 | 1.0.4-150400.3.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | flask | source | sid | 2.2.2-3 | not yet assigned | Not reported | [1035670] |
| Debian | flask | source | forky | 2.2.2-3 | not yet assigned | Not reported | [1035670] |
| Debian | flask | source | trixie | 2.2.2-3 | not yet assigned | Not reported | [1035670] |
| Debian | flask | source | bookworm | 2.2.2-3 | not yet assigned | Not reported | [1035670] |
| Opensuse | python-Flask | rpm | tumbleweed | 3.1.3-3.1 | Not reported | OPENSUSE-SU-2026:11902-1 | Not reported |
| Ubuntu | flask | deb | 20.04 | 1.1.1-2ubuntu0.1 | Not reported | USN-6111-1 | Not reported |
| Ubuntu | flask | deb | 22.04 | 2.0.1-2ubuntu1.1 | Not reported | USN-6111-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise module for package hub 15 sp4 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise module for package hub 15 sp5 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise high performance computing 15 sp1-ltss | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise high performance computing 15 sp2-ltss | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise high performance computing 15 sp3-espos | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise high performance computing 15 sp3-ltss | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise real time 15 sp3 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise server 15 sp1-ltss | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise server 15 sp2-ltss | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise server 15 sp3-ltss | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise server for sap applications 15 sp1 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise server for sap applications 15 sp2 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise server for sap applications 15 sp3 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | manager proxy 4.2 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | manager server 4.2 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | enterprise storage 7 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Suse | python-Flask | rpm | enterprise storage 7.1 | 1.0.2-150100.6.3.1 | Not reported | SUSE-SU-2023:2264-1 | Not reported |
| Ubuntu | flask | deb | 20.04 | 1.1.1-2ubuntu0.1 | Not reported | UBUNTU-CVE-2023-30861 | Not reported |
| Ubuntu | flask | deb | 22.04 | 2.0.1-2ubuntu1.1 | Not reported | UBUNTU-CVE-2023-30861 | Not reported |
| Opensuse | python-Flask | rpm | leap 15.5 | 1.0.4-150400.3.3.1 | Not reported | SUSE-SU-2023:2263-2 | Not reported |
| Suse | python-Flask | rpm | linux enterprise module for basesystem 15 sp4 | 1.0.4-150400.3.3.1 | Not reported | SUSE-SU-2023:2263-1 | Not reported |
| Suse | python-Flask | rpm | linux enterprise module for basesystem 15 sp5 | 1.0.4-150400.3.3.1 | Not reported | SUSE-SU-2023:2263-1 | Not reported |
| Opensuse | python-Flask | rpm | leap 15.4 | 1.0.4-150400.3.3.1 | Not reported | SUSE-SU-2023:2263-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2023_2263-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-30861]
- [https://osv.dev/vulnerability/DLA-3536-1]
- [https://osv.dev/vulnerability/DSA-5442-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:2263-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:2263-2]
- [https://osv.dev/vulnerability/SUSE-SU-2023:2264-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-30861]
- [https://osv.dev/vulnerability/USN-6111-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11902-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-30861]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-30861.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1812.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]