Skip to content

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