Skip to content
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

encoding/xml: infinite loop when using xml.NewTokenDecoder with a custom TokenReader [Go 1.16] #44915

Closed
katiehockman opened this issue Mar 10, 2021 · 2 comments
Labels
CherryPickApproved Used during the release process for point releases FrozenDueToAge Security
Milestone

Comments

@katiehockman
Copy link
Contributor

The Decode, DecodeElement, and Skip methods of an xml.Decoder provided by xml.NewTokenDecoder may enter an infinite loop when operating on a custom xml.TokenReader which returns an EOF in the middle of an open XML element.

Thanks to Sam Whited for reporting this issue.
This issue is CVE-2021-27918.

@katiehockman katiehockman added Security CherryPickApproved Used during the release process for point releases labels Mar 10, 2021
@katiehockman katiehockman added this to the Go1.16.1 milestone Mar 10, 2021
@katiehockman
Copy link
Contributor Author

Fixed by d86e53e

@katiehockman
Copy link
Contributor Author

See #44913 for main issue

@golang golang locked and limited conversation to collaborators Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CherryPickApproved Used during the release process for point releases FrozenDueToAge Security
Projects
None yet
Development

No branches or pull requests

2 participants