CVE-2023-30861
Last modified
CVE-2023-30861 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.26% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Palletsprojects | Flask | < 2.2.5 |
| Palletsprojects | Flask | >= 2.3.0, < 2.3.2 |
References
- https://github.com/pallets/flask/releases/tag/2.2.5Release Notes
- https://github.com/pallets/flask/releases/tag/2.3.2Release Notes
- https://github.com/pallets/flask/releases/tag/2.2.5Release Notes
- https://github.com/pallets/flask/releases/tag/2.3.2Release Notes
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-30861?
How severe is CVE-2023-30861?
How do I fix CVE-2023-30861?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-30856eDEX-UI is a science fiction terminal emulator. Versions 2.2…10
- CVE-2023-30857@aedart/support is the support package for Ion, a monorepo f…3.7
- CVE-2023-30858The Denosaurs emoji package provides emojis for dinosaurs. S…7.5
- CVE-2023-30859Triton is a Minecraft plugin for Spigot and BungeeCord that …9.8
- CVE-2023-3086Cross-site Scripting (XSS) - Stored in GitHub repository nil…9
- CVE-2023-30860WWBN AVideo is an open source video platform. In AVideo prio…5.4
- CVE-2023-30863In Connectivity Service, there is a possible missing permiss…7.8
- CVE-2023-30864In Connectivity Service, there is a possible missing permiss…7.8
- CVE-2023-30865In dialer service, there is a missing permission check. This…5.5
- CVE-2023-30866In telephony service, there is a missing permission check. T…5.5
- CVE-2023-30867In the Streampark platform, when users log in to the system …4.9
- CVE-2023-30868Unauth. Reflected Cross-Site Scripting (XSS) vulnerability i…6.1
Are you affected by CVE-2023-30861?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
