Skip to content

x/playground: arbitrary user input and misconfigured go vet could lead to RCE #81737

Closed

Description

@thatnealpatel

The playground accepts arbitrary user input
in the form of a txtar file in the /compile
endpoint: https://golang.org/x/tools/txtar

A malicious txtar could escape the intended
execution context and force arbitrary writes
to the playground host's trusted filesystem.

Disjointly, one of the three possible paths
to invoke go vet on the playground host
did not correctly lockdown the execution env.
This permitted a Go process to make a read
for an environment configuration file rooted
in the playground host's $HOME.

Together, a well-crafted go env file and the
go vet invocation could lead to remote code
execution in the playground host itself.

We now use os.Root to ensure that user-provided
archives cannot escape the execution context.

Thanks to splitline (@splitline) from DEVCORE
Research Team for reporting this issue.

This is CVE-2026-94445.


This was originally reported as http://b/565335815.

Activity

  1. added this to the Unreleased milestone on Sep 24, 2026
  2. added
    FixPendingIssues that have a fix which has not yet been reviewed or submitted.
    on Sep 24, 2026
  3. changed the title [-]security: fix CVE-2026-94445[/-] [+]x/playground: arbitrary user input and misconfigured `go vet` could lead to RCE[/+] on Sep 24, 2026
  4. gopherbot commented on Sep 24, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/838505 mentions this issue: all: move snippet storage behind a Cloud Run service

  5. gopherbot commented on Sep 24, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/838485 mentions this issue: all: use os.Root for handling user input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FixPendingIssues that have a fix which has not yet been reviewed or submitted.Security

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions