Skip to content
Heist/ feed
Back to feed
High

sentry-python — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-28117

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 f

Products
sentry-python
Affected versions
0.12.2-1, 0.13.2-1, 1.39.2-0.1, 1.4.3-1, 1.9.10-2, 2.18.0-1, 2.22.0-1, 2.60.0-3, 2.63.0-1, 2.64.0-1
Fixed versions
Not specified
CVEs
CVE-2023-28117
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:39 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-28117

core-osv · Original source

Published 22 Mar 2023, 20:15 UTC

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 f

osv:UBUNTU-CVE-2023-28117

sentry-python

Fixed versions: Not specified

sentry-python

Fixed versions: Not specified

sentry-python

Fixed versions: Not specified

sentry-python

Fixed versions: Not specified

sentry-python

Fixed versions: Not specified

sentry-python

Fixed versions: Not specified

Complete source record
{
  "id": "79552e5423fce443d69bd443893d188a0fe4293152a1e18f2698e0358fe71743",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-28117",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-28117",
    "summary": "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 f",
    "evidence": "osv:UBUNTU-CVE-2023-28117",
    "products": [
      {
        "name": {
          "value": "sentry-python",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.12.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sentry-python",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.13.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.4.3-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sentry-python",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.10-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.39.2-0.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sentry-python",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.18.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sentry-python",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.22.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.60.0-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.63.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.64.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "sentry-python",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.18.0-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.22.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2023-28117",
      "aliases": [
        "UBUNTU-CVE-2023-28117"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sentry-python",
            "purl": "pkg:deb/ubuntu/sentry-python?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.12.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-28117.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-sentry-sdk",
                "binary_version": "0.12.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sentry-python",
            "purl": "pkg:deb/ubuntu/sentry-python?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.13.2-1",
            "1.4.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-28117.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-sentry-sdk",
                "binary_version": "1.4.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sentry-python",
            "purl": "pkg:deb/ubuntu/sentry-python?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.9.10-2",
            "1.39.2-0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-28117.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-sentry-sdk",
                "binary_version": "1.39.2-0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sentry-python",
            "purl": "pkg:deb/ubuntu/sentry-python?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.18.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-28117.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-sentry-sdk",
                "binary_version": "2.18.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sentry-python",
            "purl": "pkg:deb/ubuntu/sentry-python?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.22.0-1",
            "2.60.0-3",
            "2.63.0-1",
            "2.64.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-28117.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-sentry-sdk",
                "binary_version": "2.64.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "sentry-python",
            "purl": "pkg:deb/ubuntu/sentry-python?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.18.0-1",
            "2.22.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-28117.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-sentry-sdk",
                "binary_version": "2.22.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:16.858242232Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-28117"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-28117",
        "https://github.com/getsentry/sentry-python/pull/1842",
        "https://github.com/getsentry/sentry-python/releases/tag/1.14.0",
        "https://github.com/getsentry/sentry-python/security/advisories/GHSA-29pr-6jr8-q5jm",
        "https://www.cve.org/CVERecord?id=CVE-2023-28117"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-28117",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357085,
  "published_at": "2023-03-22T20:15:00+00:00"
}