Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-128840: Limit the number of parts in IPv6 address parsing#128841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
nessita left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks great, thank you@sethmlarson!
Misc/NEWS.d/next/Security/2025-01-14-11-19-07.gh-issue-128840.M1doZW.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
lazysegtree commentedJan 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@sethmlarson How does this fix prevents a potential denial-of-service ?
In the case when we end up with And, It should not be labelled "Type-Security" . |
lazysegtree commentedJan 15, 2025
Point to note : this PR is relevant to issue -#128840 , but it doesn't entirely fix the issue.
This fix just limits the number of
And, a complete fix would maybe add a check in This check could come in the |
Misc/NEWS.d/next/Security/2025-01-14-11-19-07.gh-issue-128840.M1doZW.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
@lazysegtree I've made the updates to limit total number of characters in addition to number of splits. |
(Updated from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. 👍
python-cla-botbot commentedApr 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
47f1161
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@sethmlarson for the PR, and@gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. |
…ythonGH-128841)pythonGH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit 47f1161d3a2bec52b5b5e952150141709c247da2)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-134610 is a backport of this pull request to the3.14 branch. |
…ythonGH-128841)pythonGH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
…ythonGH-128841)pythonGH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-134611 is a backport of this pull request to the3.13 branch. |
GH-134612 is a backport of this pull request to the3.12 branch. |
…ythonGH-128841)pythonGH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-134613 is a backport of this pull request to the3.11 branch. |
…ythonGH-128841)pythonGH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-134614 is a backport of this pull request to the3.10 branch. |
…ythonGH-128841)pythonGH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-134615 is a backport of this pull request to the3.9 branch. |
…H-128841) (#134610)gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841)GH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
…H-128841) (#134611)gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841)GH-128840: Limit the number of parts in IPv6 address parsingLimit length of IP address string to 39---------(cherry picked from commit47f1161)Co-authored-by: Seth Michael Larson <seth@python.org>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
Uh oh!
There was an error while loading.Please reload this page.
See:#128840
cc@nessita