-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) #115623
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gpshead
merged 39 commits into
python:main
from
hartwork:expat-2-6-0-reparse-deferral-api
Feb 29, 2024
Merged
Changes from 9 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
7cebe78
pyexpat: Implement methods pyexpat.xmlparser.(Get|Set)ReparseDeferral…
hartwork c70fbae
etree: Implement method xml.etree.ElementTree.XMLParser.flush (Python…
hartwork dfca819
pyexpat: Make SetReparseDeferralEnabled available via PyExpat_CAPI
hartwork 4baab67
etree: Implement method xml.etree.ElementTree.XMLParser.flush (C vers…
hartwork 7928942
etree: Implement method xml.etree.ElementTree.XMLPullParser.flush
hartwork e5e4033
etree: Use XMLPullParser.flush to fix XMLPullParserTest for Expat 2.6.0
hartwork bc6e1a7
sax: Implement method xml.sax.expatreader.ExpatParser.flush
hartwork b737f03
sax: Test method xml.sax.expatreader.ExpatParser.flush
hartwork 850e46d
Document new CVE-2023-52425 Expat API (reparse deferral)
hartwork 7002024
_elementtree.c: Document how we know that reparse deferral is enabled
hartwork 2132dfe
sax: Fix xml.sax.expatreader.ExpatParser.flush
hartwork 3d02dfe
etree: Fix xml.etree.ElementTree.XMLParser.flush (Python version)
hartwork fdd2fac
etree: Fix typo "deferall"
hartwork dbbd98c
pyexpat: Cover (Get|Set)ReparseDeferralEnabled by tests
hartwork 3b6ea39
sax: Extend xml.sax.expatreader.ExpatParser.flush test coverage
hartwork 5c1cfb7
Doc/whatsnew/3.13.rst: Mention new Expat reparse deferral API
hartwork a9c666e
pyexpat: Document methods pyexpat.xmlparser.(Get|Set)ReparseDeferralE…
hartwork 35099e3
etree: Document method xml.etree.ElementTree.XMLParser.flush
hartwork 1496e83
etree: Document method xml.etree.ElementTree.XMLPullParser.flush
hartwork a6927ff
etree: Make docs point to xml.etree.ElementTree.XMLPullParser.flush
hartwork c5b2159
pyexpat: Move security warning into SetReparseDeferralEnabled docs
hartwork 082bcc1
pyexpat|etree: Mark new Expat API as added in 3.13 in docs
hartwork f0577e7
pyexpat|sax: Do not be silent about tests skipped for Expat <2.6.0
hartwork f589908
pyexpat: Simplify test ReparseDeferralTest.test_getter_setter_round_trip
hartwork 4915045
Promote xml.parsers.expat.xmlparser instead of pyexpat.xmlparser
hartwork d0ed243
etree: Cover method xml.etree.ElementTree.XMLPullParser.flush
hartwork 62e4fd7
pyexpat: Cut whitespace from ReparseDeferralTest.test_getter_setter_r…
hartwork b0058d5
pyexpat: Drop ReparseDeferralTest.test_getter_initial_value
hartwork 1f70c09
pyexpat: Break a long line for PEP 8
hartwork a77de0f
Doc/whatsnew/3.13.rst: Do not create a link into undocumented class
hartwork 2f07457
etree: Make XMLPullParserTest._feed only flush when needed
hartwork 4b49de9
etree: Fix XMLPullParserTest.test_flush_[..] for C version
hartwork 3c960a6
etree: Break a long line for PEP 8
hartwork 4855bb9
etree: Make test_flush_reparse_deferral_disabled less exclusive
hartwork b6a84b2
etree|sax: Simplify .flush implementations
hartwork 0faa19e
etree: Resolve "is_python" in favor of "ET is pyET"
hartwork 40743a6
etree: Fix emphasis syntax for "immediate" in docs
hartwork a473299
pypexpat: Replace "none" with "NULL" to be correct
hartwork a6baa0b
pyexpat: Indent warning about xmlparser.SetReparseDeferralEnabled
hartwork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Misc/NEWS.d/next/Security/2024-02-18-03-14-40.gh-issue-115398.tzvxH8.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) by adding | ||
five new methods: | ||
|
||
* ``pyexpat.xmlparser.GetReparseDeferralEnabled`` | ||
* ``pyexpat.xmlparser.SetReparseDeferralEnabled`` | ||
hartwork marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* ``xml.etree.ElementTree.XMLParser.flush`` | ||
* ``xml.etree.ElementTree.XMLPullParser.flush`` | ||
serhiy-storchaka marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* ``xml.sax.expatreader.ExpatParser.flush`` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.