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 systemsVulnerabilitiesKey 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
- Update python3-sentry-sdk to one of the fixed versions listed in the Ubuntu USN notice.
- Run a standard system update on Ubuntu 20.04 LTS and 22.04 LTS hosts that use the package.
- Consider Ubuntu Pro for extended security coverage, which the notice says is free for up to five devices.
Original report
“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…
- Debian Patches Twelve Django Vulnerabilities With python-django Update DSA-6648-1
- LLMKube Model.spec.source path traversal allows arbitrary file read (CVE-2026-68903)
- CISA Confirms Active Exploitation of Decade-Old OpenSSH Flaw Dubbed "SSHole"
- CVE-2026-126087: Untrusted search path in OpenJD Sessions and AWS Deadline Cloud worker agent
- CVE-2026-126087: Untrusted search path in OpenJD Sessions and AWS Deadline Cloud worker agent