Skip to content

[3.14] gh-148022: Add threat model to remote debugging docs (GH-148024)#148039

Merged
sethmlarson merged 1 commit intopython:3.14from
miss-islington:backport-edab686-3.14
Apr 3, 2026
Merged

[3.14] gh-148022: Add threat model to remote debugging docs (GH-148024)#148039
sethmlarson merged 1 commit intopython:3.14from
miss-islington:backport-edab686-3.14

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 3, 2026

The remote debugging protocol has been generating spurious
vulnerability reports from automated scanners that pattern-match
on "remote access" and "memory operations" without understanding
the privilege model. This section documents the security boundaries
so reporters can self-triage before submitting.

The threat model clarifies three points: attaching requires the
same OS-level privileges as GDB (ptrace, task_for_pid, or
SeDebugPrivilege), crashes caused by reading corrupted target
process memory are not security issues, and a compromised target
process is out of scope. A subsection explains when operators
should use PYTHON_DISABLE_REMOTE_DEBUG for defence-in-depth.
(cherry picked from commit edab686)

Co-authored-by: Pablo Galindo Salgado Pablogsal@gmail.com


📚 Documentation preview 📚: https://cpython-previews--148039.org.readthedocs.build/

…148024)

The remote debugging protocol has been generating spurious
vulnerability reports from automated scanners that pattern-match
on "remote access" and "memory operations" without understanding
the privilege model. This section documents the security boundaries
so reporters can self-triage before submitting.

The threat model clarifies three points: attaching requires the
same OS-level privileges as GDB (ptrace, task_for_pid, or
SeDebugPrivilege), crashes caused by reading corrupted target
process memory are not security issues, and a compromised target
process is out of scope. A subsection explains when operators
should use PYTHON_DISABLE_REMOTE_DEBUG for defence-in-depth.
(cherry picked from commit edab6860a7d6c49b5d5762e1c094aa0261245a9c)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@sethmlarson sethmlarson merged commit 3d49e49 into python:3.14 Apr 3, 2026
41 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Apr 3, 2026
@miss-islington miss-islington deleted the backport-edab686-3.14 branch April 3, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants