CVE catalog

CVE-2023-30861

flask: CVE-2023-30861

[CVE catalog]

Severity
High · CVSS 7.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debianflasksid3.1.3-4fixed
Debianflaskforky3.1.3-4fixed
Debianflasktrixie3.1.1-1+deb13u1fixed
Debianflaskbookworm2.2.2-3fixed
Opensusepython-Flasktumbleweed3.1.3-3.1fixed
Ubuntuflask20.041.0.2-3vulnerable
Ubuntuflask20.041.1.1-2vulnerable
Ubuntuflask20.041.1.1-2ubuntu0.1fixed
Ubuntuflask22.041.1.2-2vulnerable
Ubuntuflask22.042.0.1-2ubuntu1vulnerable
Ubuntuflask22.042.0.1-2ubuntu1.1fixed
Susepython-Flasklinux enterprise module for package hub 15 sp41.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise module for package hub 15 sp51.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise high performance computing 15 sp1-ltss1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise high performance computing 15 sp2-ltss1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise high performance computing 15 sp3-espos1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise high performance computing 15 sp3-ltss1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise real time 15 sp31.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise server 15 sp1-ltss1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise server 15 sp2-ltss1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise server 15 sp3-ltss1.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise server for sap applications 15 sp11.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise server for sap applications 15 sp21.0.2-150100.6.3.1fixed
Susepython-Flasklinux enterprise server for sap applications 15 sp31.0.2-150100.6.3.1fixed
Susepython-Flaskmanager proxy 4.21.0.2-150100.6.3.1fixed
Susepython-Flaskmanager server 4.21.0.2-150100.6.3.1fixed
Susepython-Flaskenterprise storage 71.0.2-150100.6.3.1fixed
Susepython-Flaskenterprise storage 7.11.0.2-150100.6.3.1fixed
Ubuntuflask20.041.0.2-3vulnerable
Ubuntuflask20.041.1.1-2vulnerable
Ubuntuflask20.041.1.1-2ubuntu0.1fixed
Ubuntuflask22.041.1.2-2vulnerable
Ubuntuflask22.042.0.1-2ubuntu1vulnerable
Ubuntuflask22.042.0.1-2ubuntu1.1fixed
Opensusepython-Flaskleap 15.51.0.4-150400.3.3.1fixed
Susepython-Flasklinux enterprise module for basesystem 15 sp41.0.4-150400.3.3.1fixed
Susepython-Flasklinux enterprise module for basesystem 15 sp51.0.4-150400.3.3.1fixed
Opensusepython-Flaskleap 15.41.0.4-150400.3.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianflasksourcesid2.2.2-3not yet assignedNot reported[1035670]
Debianflasksourceforky2.2.2-3not yet assignedNot reported[1035670]
Debianflasksourcetrixie2.2.2-3not yet assignedNot reported[1035670]
Debianflasksourcebookworm2.2.2-3not yet assignedNot reported[1035670]
Opensusepython-Flaskrpmtumbleweed3.1.3-3.1Not reportedOPENSUSE-SU-2026:11902-1Not reported
Ubuntuflaskdeb20.041.1.1-2ubuntu0.1Not reportedUSN-6111-1Not reported
Ubuntuflaskdeb22.042.0.1-2ubuntu1.1Not reportedUSN-6111-1Not reported
Susepython-Flaskrpmlinux enterprise module for package hub 15 sp41.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise module for package hub 15 sp51.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise high performance computing 15 sp1-ltss1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise high performance computing 15 sp2-ltss1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise high performance computing 15 sp3-espos1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise high performance computing 15 sp3-ltss1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise real time 15 sp31.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise server 15 sp1-ltss1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise server 15 sp2-ltss1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise server 15 sp3-ltss1.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise server for sap applications 15 sp11.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise server for sap applications 15 sp21.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmlinux enterprise server for sap applications 15 sp31.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmmanager proxy 4.21.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmmanager server 4.21.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmenterprise storage 71.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Susepython-Flaskrpmenterprise storage 7.11.0.2-150100.6.3.1Not reportedSUSE-SU-2023:2264-1Not reported
Ubuntuflaskdeb20.041.1.1-2ubuntu0.1Not reportedUBUNTU-CVE-2023-30861Not reported
Ubuntuflaskdeb22.042.0.1-2ubuntu1.1Not reportedUBUNTU-CVE-2023-30861Not reported
Opensusepython-Flaskrpmleap 15.51.0.4-150400.3.3.1Not reportedSUSE-SU-2023:2263-2Not reported
Susepython-Flaskrpmlinux enterprise module for basesystem 15 sp41.0.4-150400.3.3.1Not reportedSUSE-SU-2023:2263-1Not reported
Susepython-Flaskrpmlinux enterprise module for basesystem 15 sp51.0.4-150400.3.3.1Not reportedSUSE-SU-2023:2263-1Not reported
Opensusepython-Flaskrpmleap 15.41.0.4-150400.3.3.1Not reportedSUSE-SU-2023:2263-1Not reported

[Debian bug #1035670]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References