Skip to content

path/filepath: stack exhaustion in Glob #53416

Closed

Description

@julieqiu

Calling Glob on a path which contains a large number of path separators can cause a panic due to stack exhaustion.

Thanks to Juho Nurminen of Mattermost for reporting this issue.

This is CVE-2022-30632.

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

Activity

  1. added this to the Go1.19 milestone on Jun 16, 2022
  2. tatianab commented on Jul 6, 2022

    @tatianab

    @gopherbot please open backport issues for this security fix

  3. gopherbot commented on Jul 6, 2022

    @gopherbot
    Contributor

    Backport issue(s) opened: #53713 (for 1.17), #53714 (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.

  4. gopherbot commented on Jul 12, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/417059 mentions this issue: [release-branch.go1.18] path/filepath: fix stack exhaustion in Glob

  5. gopherbot commented on Jul 12, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/417066 mentions this issue: path/filepath: fix stack exhaustion in Glob

  6. gopherbot commented on Jul 12, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/417073 mentions this issue: [release-branch.go1.17] path/filepath: fix stack exhaustion in Glob

  7. changed the title [-]security: fix CVE-2022-30632[/-] [+]path/filepath: stack exhaustion in Glob[/+] on Jul 12, 2022
  8. added a commit that references this issue on Aug 10, 2022
    366c776
  9. locked and limited conversation to collaborators on Jul 12, 2023
  10. added a commit that references this issue on Feb 10, 2024
    ac68c6c
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