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.

INFO

Published Date :

May 2, 2023, 6:15 p.m.

Last Modified :

Nov. 21, 2024, 8 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2023-30861 has a 7 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-30861 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Palletsprojects flask

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 9 months ago
0 stars 0 fork 0 watcher
Born at : March 19, 2024, 11:50 a.m. This repo has been linked 1 different CVEs too.

None

CMake Shell Perl C++ C Batchfile CSS Makefile M4 Python

Updated: 9 months, 2 weeks ago
34 stars 0 fork 0 watcher
Born at : Feb. 1, 2024, 11:43 a.m. This repo has been linked 71 different CVEs too.

Pulsecheck - Get current and historical vulnerability insights from the GItHub Advisory Database https://github.com/advisories/database, by checking the pulse of your project’s dependencies delivered in an easy-to-use CLI.

Python

Updated: 2 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Nov. 30, 2023, 2:07 p.m. This repo has been linked 3 different CVEs too.

None

Dockerfile Procfile Python HTML Mako

Updated: 1 year ago
1 stars 0 fork 0 watcher
Born at : Nov. 6, 2023, 10:32 p.m. This repo has been linked 5 different CVEs too.

None

Python Dockerfile

Updated: 1 year, 2 months ago
0 stars 0 fork 0 watcher
Born at : Oct. 20, 2023, 10:01 a.m. This repo has been linked 2 different CVEs too.

Explaining how to exploit CVE-2023-30861

Updated: 1 year, 2 months ago
1 stars 0 fork 0 watcher
Born at : Oct. 13, 2023, 8:27 a.m. This repo has been linked 1 different CVEs too.

Prints a list of summarised Dependabot security alerts that are open, grouped by repository name.

Go Shell

Updated: 1 year, 7 months ago
0 stars 1 fork 1 watcher
Born at : May 5, 2023, 5:13 a.m. This repo has been linked 5 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-30861 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-30861 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/pallets/flask/commit/70f906c51ce49c485f1d355703e9cc3386b1cc2b
    Added Reference https://github.com/pallets/flask/commit/afd63b16170b7c047f5758eb910c416511e9c965
    Added Reference https://github.com/pallets/flask/releases/tag/2.2.5
    Added Reference https://github.com/pallets/flask/releases/tag/2.3.2
    Added Reference https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq
    Added Reference https://lists.debian.org/debian-lts-announce/2023/08/msg00024.html
    Added Reference https://security.netapp.com/advisory/ntap-20230818-0006/
    Added Reference https://www.debian.org/security/2023/dsa-5442
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Aug. 20, 2023

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2023/08/msg00024.html [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 18, 2023

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20230818-0006/ [No Types Assigned]
  • CVE Modified by [email protected]

    Jun. 30, 2023

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2023/dsa-5442 [No Types Assigned]
  • Initial Analysis by [email protected]

    May. 10, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    Changed Reference Type https://github.com/pallets/flask/commit/70f906c51ce49c485f1d355703e9cc3386b1cc2b No Types Assigned https://github.com/pallets/flask/commit/70f906c51ce49c485f1d355703e9cc3386b1cc2b Patch
    Changed Reference Type https://github.com/pallets/flask/commit/afd63b16170b7c047f5758eb910c416511e9c965 No Types Assigned https://github.com/pallets/flask/commit/afd63b16170b7c047f5758eb910c416511e9c965 Patch
    Changed Reference Type https://github.com/pallets/flask/releases/tag/2.2.5 No Types Assigned https://github.com/pallets/flask/releases/tag/2.2.5 Release Notes
    Changed Reference Type https://github.com/pallets/flask/releases/tag/2.3.2 No Types Assigned https://github.com/pallets/flask/releases/tag/2.3.2 Release Notes
    Changed Reference Type https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq No Types Assigned https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq Vendor Advisory
    Added CPE Configuration OR *cpe:2.3:a:palletsprojects:flask:*:*:*:*:*:*:*:* versions up to (excluding) 2.2.5 *cpe:2.3:a:palletsprojects:flask:*:*:*:*:*:*:*:* versions from (including) 2.3.0 up to (excluding) 2.3.2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-30861 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.23 }} -0.01%

score

0.60518

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability