Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Python

Advisory Analysis

Sentry SDK flaws can expose session cookies and environment variables on Ubuntu 20.04 and 22.04

According to Ubuntu USN, two flaws in the Sentry SDK could expose sensitive data on Ubuntu 20.04 LTS and 22.04 LTS systems. Fixed builds of the python3-sentry-sdk package are available.

PythonLinuxOperating systemsVulnerabilities

Key points

  • Two Sentry SDK flaws, CVE-2023-28117 and CVE-2024-40647, could expose sensitive data.
  • The Django integration may send custom-named session cookies to Sentry.
  • Ubuntu 20.04 LTS and 22.04 LTS are named as affected, with fixed python3-sentry-sdk builds listed.
  • Exploitation status and workarounds beyond updating are not stated.

Ubuntu USN has published a notice about two security flaws in the Sentry SDK that could lead to exposure of sensitive information. The first, tracked as CVE-2023-28117, affects the SDK's Django integration. According to the notice, it did not remove session cookies that use custom names from the data sent to Sentry. The second issue causes the SDK to pass the full set of environment variables to subprocesses, even when the application requests an empty environment. The notice says this could give an intruder access to confidential information. This second issue is listed under CVE-2024-40647. The notice also repeats the environment-variable issue, which may be a duplicate entry. Ubuntu 20.04 LTS and 22.04 LTS are named as affected. Fixed versions of python3-sentry-sdk are 1.39.2-0.1ubuntu0.1~esm1, 1.4.3-1ubuntu0.1~esm1 and 0.12.2-1ubuntu0.1~esm1. The notice does not state which version applies to which release. It recommends a standard system update. The notice does not say whether either flaw has been exploited, whether proof-of-concept code exists, who reported them, or when. No workaround beyond updating is given. Read the original Ubuntu USN notice for the full advisory.

What to do

  1. Update python3-sentry-sdk to one of the fixed versions listed in the Ubuntu USN notice.
  2. Run a standard system update on Ubuntu 20.04 LTS and 22.04 LTS hosts that use the package.
  3. Consider Ubuntu Pro for extended security coverage, which the notice says is free for up to five devices.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

Ubuntu USNubuntu.com

“USN-9399-1: Sentry SDK vulnerabilities”

It was discovered that the Django integration in the Sentry SDK did not remove the values of custom-named session cookies from the data it sent to Sentry. If the SDK was configured to send personally identifiable information, an attacker with access to the Sentry issues could possibly use this issue to obtain sensitive information and impersonate users. This issue only affected Ubuntu 20.04 LTS a…

More on this topic