-
Notifications
You must be signed in to change notification settings - Fork 7.9k
UAF in importNode #17224
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
Comments
@YuanchengJiang I strongly suspect you're actually hitting an (old) libxml bug related to tree adoption, not a PHP bug. Please share your libxml version. |
Note that if that helps I can still reproduce on debian unstable (libxml2 2.12.7 version). |
Ah okay I see, I misunderstood the stack trace and because it didn't reproduce on my system at first I thought it was related to an old libxml bug that I thought I recognized. |
Wrong document pointer is used for the namespace copy.
Wrong document pointer is used for the namespace copy.
* PHP-8.3: Fix GH-17224: UAF in importNode
* PHP-8.4: Fix GH-17224: UAF in importNode
Wrong document pointer is used for the namespace copy. Closes phpGH-17230.
Description
The following code:
Resulted in this output:
PHP Version
nightly
Operating System
No response
The text was updated successfully, but these errors were encountered: