GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.14] gh-160898: Reject null bytes in `socket.getaddrinfo()` host and port (GH-160899) by sethmlarson · Pull Request #160926 · python/cpython

Conversation

@sethmlarson

@sethmlarson sethmlarson commented Oct 29, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

(cherry picked from commit 131a3a6) (cherry picked from commit ee60d5d)

  • Issue: Null bytes are accepted within socket.getaddrinfo() #160898

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sethmlarson @StanFromIreland
[3.14] pythongh-160898: Reject null bytes in socket.getaddrinfo() h…
c53e593
…ost and port (pythonGH-160899)

(cherry picked from commit 131a3a6)
(cherry picked from commit ee60d5d)

Co-authored-by: Seth Larson <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
@bedevere-app bedevere-app Bot added the awaiting core review label Oct 29, 2026
This was referenced Oct 29, 2026
Null bytes are accepted within socket.getaddrinfo() #160898
Open
gh-160898: Reject null bytes in socket.getaddrinfo() host and port #160899
Merged
@bedevere-app bedevere-app Bot added topic-socket Related to the socket, socketserver and selectors modules type-security A security issue labels Oct 29, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 29, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35509093 | 📁 Comparing c53e593 against main (386d9d0)

  🔍 Preview build  

323 files changed · + 1 added · ± 301 modified · - 21 deleted

+ Added

  • library/asyncio-policy.html

± Modified

  • about.html
  • bugs.html
  • glossary.html
  • index.html
  • license.html
  • py-modindex.html
  • builtins/exceptions.html
  • builtins/functions.html
  • builtins/stdtypes.html
  • builtins/time-complexity.html
  • and 291 more...

- Deleted

  • _static/tachyon-example-flamegraph.html
  • _static/tachyon-example-heatmap.html
  • c-api/sentinel.html
  • c-api/slots.html
  • deprecations/c-api-pending-removal-in-3.19.html
  • deprecations/c-api-pending-removal-in-3.20.html
  • deprecations/pending-removal-in-3.20.html
  • deprecations/pending-removal-in-3.21.html
  • deprecations/soft-deprecations.html
  • extending/first-extension-module.html
  • and 11 more...
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sethmlarson sethmlarson added the release-blocker label Oct 30, 2026
@github-project-automation github-project-automation Bot added this to Release and Deferred blockers 🚫 Oct 30, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Release and Deferred blockers 🚫 Oct 30, 2026
@jkreileder jkreileder mentioned this pull request Nov 5, 2026
ci(grype): ignore CPython socket.getaddrinfo CVE-2026-116566 until a fix ships jkreileder/cf-ips-to-hcloud-fw#1599
Merged
This was referenced Nov 5, 2026
docs: document runtime vulnerability exception assessment HHS/simpler-grants-pdf-builder#1283
Closed
Assess and resolve shared Python runtime scan blocker for NOFOs, API, and analytics HHS/simpler-grants-gov#13178
Open
[Issue 13178] Propose a scoped temporary Python runtime exception HHS/simpler-grants-gov#13179
Merged
benbrasso added a commit to HHS/simpler-grants-gov that referenced this pull request Nov 5, 2026
@benbrasso Benjamin Brasso
[Issue 13178] Propose a scoped temporary Python runtime exception (#1…
e70c45f
…3179)

## Summary

Work for #13178. **Draft for infrastructure/security review; do not
merge pending risk acceptance and image-scan validation.**

NOFOs deployments and API/analytics scans are failing on CVE-2026-116566
in the Python 3.14.10 binary. This proposes a temporary exception to
restore deployment capability while a supported patch is awaited. It
does not fix the Python vulnerability. The Python 3.14 backport remains
open as of November 5, 2026:
python/cpython#160926.

## Changes proposed

- Add one Grype ignore rule limited to **CVE-2026-116566 + package
`python` + version `3.14.10` + type `binary`**.
- Preserve the Medium cutoff, every existing ignore rule, the Low
finding CVE-2026-103995, other scanner policies and weekly bypass-ignore
reporting.
- Keep vulnerability-specific scope, review questions, the proposed
November 12 review date, and removal tracking in this PR, #13178, and
the Grype configuration. Following reviewer feedback, no durable
documentation pages are changed.

## Context for reviewers

**Requested review:** Please confirm shared-service scope, risk
acceptance, tracking ownership, and image-scan validation before this
draft is ready.

This root configuration is consumed by NOFOs and the shared
API/analytics/frontend scan workflow. The proposal applies to any
matching package across those consumers; it is not NOFO-only. Confirmed
failures and workflow scope are recorded in #13178. The inspected
frontend scan passed, but any matching package there would also be
suppressed.

**Risks and unresolved items:** Python remains vulnerable. Application
exploitability and compensating controls have not been established for
the three Python services. No owner or risk approver has been assigned;
both must be recorded before merge. The November 12 date is proposed and
not machine-enforced; the owner needs active follow-up and must refresh
stale dates. Low prediction scores and functional tests are not proof of
safety.

**Removal:** prefer supported patched runtime images as soon as
available. Rebuild the shared API/analytics Python base and update
consumers; update Builder's separate image; verify unsuppressed scans,
then remove applicable exceptions. Keep #13178 open for this follow-up.
A package version change will stop this exact-version rule matching
automatically, but must not be treated as proof that the new runtime is
patched.

This SGG-only PR does not change Builder's own `.grype.yml` or unblock
Builder's standalone scans. Any matching Builder exception needs
separate scope/approval. Builder documentation PR
HHS/simpler-grants-pdf-builder#1283 is guidance only. Check the workflow
checkout revision before retrying older immutable deployment refs.

## Validation steps

Completed locally:
- Parsed YAML and compared against main: exactly one new CVE rule; exact
package/version/type constraints verified; existing ignore entries and
severity cutoff unchanged.
- Confirmed Grype v0.97.1 source supports package `name`, `version`, and
`type` and combines rule criteria:
https://github.com/anchore/grype/blob/v0.97.1/grype/match/ignore.go.
- `git diff --check` passed. No application code or workflow logic
changed.

Required before merge (not performed locally; Docker/Grype are
unavailable here):
- [ ] Assign owner and obtain the required shared-service
infrastructure/security risk acceptance; document per-service exposure
assessment and compensating controls.
- [ ] Recheck patch availability and approve a concrete review
date/removal tracking plan.
- [ ] Scan each intended image using the same scanner/DB with and
without the proposed rule; verify only the intended finding moves to
ignored results.
- [ ] Confirm an unrelated Medium finding still fails and other Python
versions/packages are not covered by this rule.
- [ ] Verify weekly bypass-ignore reporting remains unsuppressed;
arrange equivalent NOFO verification without deploying.

Do not trigger a production deployment to validate this draft. PR CI may
produce additional scan evidence, but does not substitute for risk
acceptance.

---------

Co-authored-by: Benjamin Brasso <[email protected]>
@hugovk
hugovk merged commit 71a0b04 into python:3.14 Nov 6, 2026
57 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-project-automation github-project-automation Bot moved this from Todo to Done in Release and Deferred blockers 🚫 Nov 6, 2026
@bedevere-app bedevere-app Bot removed the awaiting core review label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

release-blocker topic-socket Related to the socket, socketserver and selectors modules type-security A security issue

Projects

Release and Deferred blockers 🚫
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@sethmlarson @hugovk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.