Skip to content

Add note on unexpected exceptions to security policy#1825

Merged
StanFromIreland merged 3 commits into
python:mainfrom
StanFromIreland:unexp-vulns
Jun 15, 2026
Merged

Add note on unexpected exceptions to security policy#1825
StanFromIreland merged 3 commits into
python:mainfrom
StanFromIreland:unexp-vulns

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Jun 4, 2026

Copy link
Copy Markdown
Member

CC @python/psrt

This is something we've gotten quite a few times, e.g. GHSA-2frx-2h99-jv56 or GHSA-32pj-fh79-3c9p. It's only a security issue if the unexpected exception is attacker-triggerable and causes actual availability harm (not merely an unhandled Python exception).

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CPython devguide | 🛠️ Build #32994684 | 📁 Comparing 90d59bd against latest (aeb99bd)

  🔍 Preview build  

2 files changed
± versions/index.html
± security/policy/index.html

@StanFromIreland StanFromIreland changed the title Add note on unexpected exceptions to secuirty policy Add note on unexpected exceptions to security policy Jun 11, 2026
Comment thread security/policy.rst Outdated
Co-authored-by: Seth Larson <seth@python.org>
@StanFromIreland StanFromIreland merged commit a7c782c into python:main Jun 15, 2026
4 checks passed
@StanFromIreland StanFromIreland deleted the unexp-vulns branch June 15, 2026 14:02
@StanFromIreland

Copy link
Copy Markdown
Member Author

Thanks Seth!

Comment thread security/policy.rst
vulnerabilities.
This is to avoid handling performance improvements as security vulnerabilities.
Exceptions are an expected part of control flow when processing inputs,
therefore crashes resulting from unhandled exceptions are not security vulnerabilities.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually use the term “crash” for segfaults rather than exceptions (see Lib/test/crashers for example). Should this be just:

Suggested change
therefore crashes resulting from unhandled exceptions are not security vulnerabilities.
therefore unhandled exceptions are not security vulnerabilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants