KEMBAR78
[3.13] gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when current mutations happen (#127964) by picnixz · Pull Request #131931 · python/cpython · GitHub
Skip to content

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented Mar 31, 2025

We fix a use-after-free in the find, findtext and findall methods of xml.etree.ElementTree.Element objects that can be triggered when the tag to find implements an __eq__ method that mutates the element being queried.
(cherry picked from commit c57623c)

…n concurrent mutations happen (python#127964)

We fix a use-after-free in the `find`, `findtext` and `findall` methods of `xml.etree.ElementTree.Element`
objects that can be triggered when the tag to find implements an `__eq__` method that mutates the
element being queried.
@picnixz picnixz self-assigned this Mar 31, 2025
@picnixz picnixz merged commit 588bb6d into python:3.13 Mar 31, 2025
39 checks passed
@picnixz picnixz deleted the bp-313/c57623c221d46daeaedfbf2b32d041fde0c882de/xml-evil-find-126037 branch March 31, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant