CVE-2023-27891: Pretix Insufficient Session Expiration Vulnerability
HIGHCVE-2023-27891 is a HIGH (CVSS 7.5) insufficient session expiration vulnerability (CWE-613: Insufficient Session Expiration) affecting Pretix libraries in the PyPI ecosystem. The issue involves insufficient session expiration in pretix. Remediation is available by upgrading affected packages to version 4.17.1, 4.16.1, 4.15.1.
CVE-2023-27891 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2023-27891
To remediate this vulnerability, upgrade all affected Pretix dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pretix>=4.17.1
pip install pretix>=4.16.1
pip install pretix>=4.15.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pretix
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-27891, inspect your installed packages using pip:
pip show pretix
Analyze the terminal output to locate any version of Pretix in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.17.1), your application is affected.
Note: The pip show pretix command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Pretix, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-27891 Affected Pretix Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pretix
|
PyPI |
≥ 4.17.0
< 4.17.1
|
4.17.1
|
|
pretix
|
PyPI |
≥ 4.16.0
< 4.16.1
|
4.16.1
|
|
pretix
|
PyPI |
< 4.15.1
|
4.15.1
|
References
Frequently Asked Questions
What is CVE-2023-27891?
Which Pretix versions are affected?
What version fixes CVE-2023-27891?
Is pretix affected?
What is the CVSS score of CVE-2023-27891?
What CWE is associated with CVE-2023-27891?
How can I check PyPI dependencies for CVE-2023-27891?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r76w-3wwq-jv6v",
"modified" : "2024-10-21T19:57:52Z",
"published" : "2023-03-07T00:30:24Z",
"aliases" : [ "CVE-2023-27891" ],
"summary" : "Insufficient Session Expiration in pretix",
"details" : "rami.io pretix before 4.17.1 allows OAuth application authorization from a logged-out session. The fixed versions are 4.15.1, 4.16.1, and 4.17.1.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pretix"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.17.0"
}, {
"fixed" : "4.17.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "pretix"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.16.0"
}, {
"fixed" : "4.16.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "pretix"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.15.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-27891"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pretix/PYSEC-2023-42.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/thufschmitt/pretix-nix"
}, {
"type" : "WEB",
"url" : "https://pretix.eu/about/en/blog/20230306-release-4171"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-14T23:01:26Z",
"nvd_published_at" : "2023-03-06T23:15:00Z"
}
}