Skip to content

encoding/xml: stack exhaustion in Unmarshal #53611

Closed

Description

@tatianab

Calling Unmarshal on a XML document into a Go struct which has a nested field that uses the any field tag can cause a panic due to stack exhaustion.

This is CVE-2022-30633.

(This was a PRIVATE issue tracked in http://b/227341754 and fixed by http://tg/1421319.)

/cc @golang/security and @golang/release

Activity

  1. modified the milestones: Go1.17.12, Go1.19 on Jun 29, 2022
  2. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Jun 29, 2022
  3. tatianab commented on Jul 6, 2022

    @tatianab
    Author

    @gopherbot please open backport issues for this security fix

  4. gopherbot commented on Jul 6, 2022

    @gopherbot
    Contributor

    Backport issue(s) opened: #53715 (for 1.17), #53716 (for 1.18).

    Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

  5. gopherbot commented on Jul 12, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/417055 mentions this issue: [release-branch.go1.18] encoding/xml: limit depth of nesting in unmarshal

  6. gopherbot commented on Jul 12, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/417061 mentions this issue: encoding/xml: limit depth of nesting in unmarshal

  7. gopherbot commented on Jul 12, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/417069 mentions this issue: [release-branch.go1.17] encoding/xml: limit depth of nesting in unmarshal

  8. changed the title [-]security: fix CVE-2022-30633[/-] [+]encoding/xml: stack exhaustion in Unmarshal and Decoder.Skip[/+] on Jul 12, 2022
  9. changed the title [-]encoding/xml: stack exhaustion in Unmarshal and Decoder.Skip[/-] [+]encoding/xml: stack exhaustion in Unmarshal[/+] on Jul 12, 2022
  10. added a commit that references this issue on Aug 10, 2022
    382694d
  11. locked and limited conversation to collaborators on Jul 12, 2023
  12. added a commit that references this issue on Feb 10, 2024
    c4c1993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions