CVE-2023-28117 Sentry SDK leaks sensitive session information when `sendDefaultPII` is set to `True`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Ubuntu
Description
Sentry SDK is the official Python SDK for Sentry, real-time crash reporting software. When using the Django integration of versions prior to 1.14.0 of the Sentry SDK in a specific configuration it is possible to leak sensitive cookies values, including the session cookie to Sentry. These sensitive cookies could then be used by someone with access to your Sentry issues to impersonate or escalate their privileges within your application.
In order for these sensitive values to be leaked, the Sentry SDK configuration must have sendDefaultPII set to True; one must use a custom name for either SESSION_COOKIE_NAME or CSRF_COOKIE_NAME in one's Django settings; and one must not be configured in one's organization or project settings to use Sentry's data scrubbing features to account for the custom cookie names.
As of version 1.14.0, the Django integration of the sentry-sdk will detect the custom cookie names based on one's Django settings and will remove the values from the payload before sending the data to Sentry. As a workaround, use the SDK's filtering mechanism to remove the cookies from the payload that is sent to Sentry. For error events, this can be done with the before_send callback method and for performance related events (transactions) one can use the before_send_transaction callback method. Those who want to handle filtering of these values on the server-side can also use Sentry's advanced data scrubbing feature to account for the custom cookie names. Look for the $http.cookies, $http.headers, $request.cookies, or $request.headers fields to target with a scrubbing rule.
Upgrade path
9 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/sentry-python(Ubuntu 20.04) | = 0.12.2-1; All versions | No fix listed | No fix yet |
| ubuntu/sentry-python(Ubuntu 22.04) | = 0.13.2-1; = 1.4.3-1; All versions | No fix listed | No fix yet |
| ubuntu/sentry-python(Ubuntu 24.04) | = 1.9.10-2; = 1.39.2-0.1; All versions | No fix listed | No fix yet |
| ubuntu/sentry-python(Ubuntu 25.10) | = 2.18.0-1; All versions | No fix listed | No fix yet |
| ubuntu/sentry-python(Ubuntu 26.04) | = 2.18.0-1; = 2.22.0-1; All versions | No fix listed | No fix yet |
| ubuntu/sentry-python(Ubuntu 26.10) | = 2.22.0-1; = 2.60.0-3; = 2.63.0-1; = 2.64.0-1 +1 more | No fix listed | No fix yet |
| pypi sentry-sdk(PyPI) | < 1.14.0; = 0.1.0; = 0.1.0rc1; = 0.1.0rc2 +168 more | 1.14.0 | Fixed |
| sentry software development kit | < 1.14.0 | 1.14.0 | Fixed |
| getsentry sentry-python | = < 1.14.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sentry-sdk(PyPI) | < 1.14.0 | 1.14.0 |
| pypi sentry-sdk(PyPI) | = 0.1.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc10 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc11 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc12 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc13 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc14 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc15 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc16 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.0rc9 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.1.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.10.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.10.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.10.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.11.0 | No fix listed |
Show 167 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sentry-sdk(PyPI) | = 0.11.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.11.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.12.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.12.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.12.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.12.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.13.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.13.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.13.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.13.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.13.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.13.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.14.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.14.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.14.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.14.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.14.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.15.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.15.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.16.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.16.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.16.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.16.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.16.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.16.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.17.8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.18.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.19.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.19.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.19.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.19.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.19.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.19.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.2.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.2.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.20.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.20.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.20.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.20.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.10 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.11 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.3.9 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.4.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.4.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.4.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.4.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.5.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.5.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.5.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.5.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.5.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.5.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.6.9 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.10 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.11 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.12 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.13 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.14 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.7.9 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.8.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.8.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.9.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.9.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.9.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.9.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.9.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 0.9.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.0.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.1.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.10.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.10.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.11.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.11.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.12.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.12.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.13.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.2.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.3.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.3.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.4.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.4.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.4.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.4.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.10 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.11 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.12 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.5.9 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.6.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.7.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.7.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.7.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.8.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.0 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.1 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.10 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.2 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.3 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.4 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.5 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.6 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.7 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.8 | No fix listed |
| pypi sentry-sdk(PyPI) | = 1.9.9 | No fix listed |
| getsentry sentry-python | = < 1.14.0 | No fix listed |
| ubuntu/sentry-python(Ubuntu:22.04) | All versions | No fix listed |
| sentry software development kit | < 1.14.0 | 1.14.0 |
| ubuntu/sentry-python(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/sentry-python(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/sentry-python(Ubuntu:20.04) | = 0.12.2-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:22.04) | = 0.13.2-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:22.04) | = 1.4.3-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:24.04) | = 1.9.10-2 | No fix listed |
| ubuntu/sentry-python(Ubuntu:24.04) | = 1.39.2-0.1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/sentry-python(Ubuntu:25.10) | = 2.18.0-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.10) | = 2.22.0-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.10) | = 2.60.0-3 | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.10) | = 2.63.0-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.10) | = 2.64.0-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.04) | = 2.18.0-1 | No fix listed |
| ubuntu/sentry-python(Ubuntu:26.04) | = 2.22.0-1 | No fix listed |
References
- https://github.com/getsentry/sentry-python/security/advisories/GHSA-29pr-6jr8-q5jm issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/getsentry/sentry-python/pull/1842 issue-tracking patch
- github.com product
- https://github.com/getsentry/sentry-python/releases/tag/1.14.0 issue-tracking release-notes
- github.com vendor-advisory
- pypi.org product
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking