Skip to content

Fix GH-17224: UAF in importNode #17230

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

Closed
wants to merge 1 commit into from
Closed

Conversation

nielsdos
Copy link
Member

Wrong document pointer is used for the namespace copy.

@nielsdos nielsdos linked an issue Dec 21, 2024 that may be closed by this pull request
Wrong document pointer is used for the namespace copy.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, too bad could have applied to 8.2 but wonders how often this kind of case would happen in the field

@nielsdos
Copy link
Member Author

LGTM, too bad could have applied to 8.2

Yeah, and there's many more simple fixes that could be put into 8.2 as well.

but wonders how often this kind of case would happen in the field

This particular bug has been here since 2009. Although people may hit this, it's probably unlikely and due to heap layout it may be the case that if you don't access particular properties of the object that you might survive a UAF crash.

@nielsdos nielsdos closed this in 61615d5 Dec 21, 2024
charmitro pushed a commit to wasix-org/php that referenced this pull request Mar 13, 2025
Wrong document pointer is used for the namespace copy.

Closes phpGH-17230.
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.

UAF in importNode
2 participants