CVE-2023-30861

Summary

CVECVE-2023-30861
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-05-02 18:15:00 UTC
Updated2023-08-20 21:15:00 UTC
DescriptionFlask 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.

Risk And Classification

Problem Types: CWE-539

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Palletsprojects Flask All All All All

References

ReferenceSourceLinkTags
CVE-2023-30861 Flask Vulnerability in NetApp Products | NetApp Product Security MISC security.netapp.com
Release 2.3.2 · pallets/flask · GitHub MISC github.com
Debian -- Security Information -- DSA-5442-1 flask MISC www.debian.org
[SECURITY] [DLA 3536-1] flask security update MISC lists.debian.org
Merge pull request from GHSA-m2qf-hxjv-5gpq · pallets/flask@70f906c · GitHub MISC github.com
Release 2.2.5 · pallets/flask · GitHub MISC github.com
Merge pull request #5109 from pallets/backport-vary-cookie · pallets/flask@afd63b1 · GitHub MISC github.com
Possible disclosure of permanent session cookie due to missing Vary: Cookie header · Advisory · pallets/flask · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 160841 Oracle Enterprise Linux Security Update for python-flask (ELSA-2023-12710)
  • 184550 Debian Security Update for flask (CVE-2023-30861)
  • 199370 Ubuntu Security Notification for Flask Vulnerability (USN-6111-1)
  • 241583 Red Hat Update for OpenStack Platform 16.1 (RHSA-2023:3446)
  • 241585 Red Hat Update for OpenStack Platform 16.2 (RHSA-2023:3444)
  • 241586 Red Hat Update for OpenStack Platform 17.0 (RHSA-2023:3440)
  • 241593 Red Hat Update for python-flask (RHSA-2023:3525)
  • 241700 Red Hat OpenShift Container Platform 4.12 Security Update (RHSA-2023:3545)
  • 241701 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3536)
  • 285316 Fedora Security Update for python (FEDORA-2023-ebc3be7db1)
  • 355411 Amazon Linux Security Advisory for python-flask : ALAS2023-2023-183
  • 378620 Alibaba Cloud Linux Security Update for python-flask (ALINUX2-SA-2023:0026)
  • 379254 Alibaba Cloud Linux Security Update for python-flask (ALINUX3-SA-2024:0008)
  • 6000067 Debian Security Update for flask (DLA 3536-1)
  • 6000188 Debian Security Update for flask (DSA 5442-1)
  • 754032 SUSE Enterprise Linux Security Update for python-Flask (SUSE-SU-2023:2264-1)
  • 770192 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3536)
  • 770193 Red Hat OpenShift Container Platform 4.12 Security Update (RHSA-2023:3545)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report