HighCVE-2023-28117

    Sentry SDK leaks sensitive session information when `sendDefaultPII` is set to `True` (CVE-2023-28117)

    Published Sources: CVE.org, OSV

    Share

    What is affected, what to do

    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.

    Update Getsentry Sentry-python to version 1.14.0.

    Affected
    • Getsentry Sentry-python lt *..1.14.0
    Fixed in
    • Getsentry Sentry-python 1.14.0

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.6

    XIEM Effective CVSS

    Highest available CVSS rating from NVD and vendor data.

    Source: Vendor (CNA), CVSS v3

    7.6

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: CVE.org, OSV

    0.7 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 51.6

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    61.58 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.6 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.6
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.7 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    51.6
    High — this CVE ranks above the median of all CVEs scored today (rank ≥ 36%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CISA assessment (SSVC)
    Exploitation: none known · not automatable · Technical impact: partial
    Source: CISA Vulnrichment, as of 25 February 2025
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-201, CWE-209

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    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.

    Source: NVD (NIST), OSV (Open Source Vulnerabilities), cvelistv5

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    getsentrysentry-python
    • < 1.14.0
    • 1.14.0
    sentrysentry_software_development_kit
    • < 1.14.0
    • 1.14.0
    pypisentry-sdk
    • 1.4.2
    • 0.12.0
    • 0.14.0
    • 0.15.1
    • 1.7.1
    • 1.10.0
    • 0.6.7
    • 0.2.1
    • 0.7.3
    • 0.11.2
    • 1.4.3
    • 0.17.2
    • 1.5.4
    • 0.4.2
    • 0.9.0
    • 0.3.7
    • 1.7.0
    • 1.7.2
    • 0.17.3
    • 1.3.1
    • 0.18.0
    • 0.13.0
    • 0.12.1
    • 1.9.2
    • 1.9.1
    • 0.16.5
    • 1.5.0
    • 0.6.0
    • 1.5.1
    • 0.19.4
    • 0.4.3
    • 0.1.0
    • 0.17.7
    • 0.17.6
    • 1.5.6
    • 0.17.5
    • 0.7.2
    • 0.5.0
    • 0.1.0rc4
    • 0.1.0rc11
    • 0.1.0rc8
    • 0.1.0rc12
    • 1.5.10
    • 0.20.3
    • 0.5.5
    • 0.9.3
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —

    Fixed in hardened container images

    Vendors of hardened images ship their own builds with a fix, often ahead of the distribution. This only concerns you if you use these images.

    Fixed in hardened container images
    Fixed in
    Root.ioPyPIrootio-sentry-sdk
    • 0.10.2+root.io.1

    Source: OSV.dev, licensed CC BY 4.0.

    Vendors and products

    Weakness classes (CWE)

    • CWE-201Insertion of Sensitive Information Into Sent Data

      Base

      The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.

      Entry at MITRE CWE-201
    • CWE-209Generation of Error Message Containing Sensitive Information

      Base

      The product generates an error message that includes sensitive information about its environment, users, or associated data.

      Entry at MITRE CWE-209

    References & sources

    • github.comgetsentry/sentry-python/security/advisories/GHSA-29pr-6jr8-q5jmweb, x_refsource_CONFIRM, Vendor advisory
    • NVD (NIST)vuln/detail/CVE-2023-28117advisory
    • github.comgetsentry/sentry-python/pull/1842web, x_refsource_MISC, Patch
    • github.comgetsentry/sentry-pythonpackage
    • github.comgetsentry/sentry-python/releases/tag/1.14.0web, x_refsource_MISC, Release notes
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2023-28117
    <a href="https://intel.neosec.eu/en/cve/CVE-2023-28117"><img src="https://intel.neosec.eu/badge/cve/CVE-2023-28117.svg?lang=en" alt="CVE-2023-28117 – NEOSEC Intel" height="20"></a>