ModerateCVSS 4.3GHSA-wpxm-mwmr-j622

GHSA-wpxm-mwmr-j622DoS: excessive CPU consumption when decompressing a crafted ZIP archive (file manager)

An authenticated subuser can pin a CPU core of the shared Wings daemon for over two minutes by extracting a deeply nested ZIP archive through the Panel file manager.

pterodactyl/wings ·Go ·1.1k ★ ·Published 16 Nov 2026 ·5 min read

Pterodactyl Wings, the node daemon that runs and supervises game servers, ships a file-manager endpoint that extracts uploaded archives. In GHSA-wpxm-mwmr-j622 an authenticated subuser with file permissions on any single server can upload a small ZIP whose entry names are deeply nested, and extraction then spends minutes of CPU indexing those names before writing a single file. The work runs in the shared daemon process, not inside the attacker's container, so every game server on the node slows down while it runs.

01Background: one daemon, many tenants

Wings is the Go agent installed on each Pterodactyl node. The Panel (PHP) never touches the node filesystem directly. It proxies user actions to Wings over an HTTP API, and Wings performs them as one privileged process that also owns console, websocket and health-check traffic for every server it hosts. A request that occupies that process is felt by all tenants, not only by the server it targets.

The route at issue is POST /api/servers/:server/files/decompress, registered in router/router.go under RequireAuthorization(). Wings checks the node token there. Per-user authorisation is enforced by the Panel before proxying, so any subuser holding file permissions on a server can reach the handler, and Wings adds no check of its own on the archive contents.

02Root cause: quadratic ancestor indexing in initFileList

At router/router_server_files.go:468 the handler calls s.Filesystem().SpaceAvailableForDecompression(context.Background(), root, file). The context cannot be cancelled and carries no deadline. In server/filesystem/compress.go:105-152, after the MaxDisk() <= 0 short-circuit at lines 108-110, the archive is opened through archiverFileSystem and walked with iofs.WalkDir(fsys, ".", ...) at line 122. The first Open() that the walk issues triggers r.initFileList() in the pinned dependency, github.com/klauspost/compress/zip v1.18.0 (zip/reader.go:951-952).

The expensive loop sits at zip/reader.go:877-939, lines 905-907:

for dir := path.Dir(name); dir != "."; dir = path.Dir(dir) {
    dirs[dir] = true
}

For each entry, every ancestor of its name is recomputed and recorded again, with no early termination even when that ancestor has already been seen. Entries sharing a deep prefix each pay the full walk cost, so total CPU grows roughly as O(N·D²) in the entry count N and the path depth D. ZIP entry names may be 65,535 bytes long, enough for a single name to reach about 32,000 levels. That is legal in the format and far beyond what any real archive needs.

Two details make the stall visible. The work is synchronous, inside the HTTP handler, so the request hangs for the whole indexing duration. And cmd/root.go:331-335 builds the http.Server without ReadTimeout or WriteTimeout, so nothing cuts the request off. Reading the central directory is not the problem: zip.NewReader is linear and takes about 17 ms on the proof-of-concept archive. Nearly all of the cost lands in initFileList.

03Proof of concept: 100 entries, 30,000 levels deep

The archive only needs entry names with a long shared prefix. Any ZIP writer works. The reference builder uses the vulnerable library itself:

n, depth := 100, 30000
f, _ := os.Create("evil.zip")
w := kzip.NewWriter(f)
prefix := strings.Repeat("a/", depth)
for i := 0; i < n; i++ {
    fw, _ := w.Create(prefix + fmt.Sprintf("f%d.txt", i))
    fmt.Fprintln(fw, "hello")
}
w.Close() // evil.zip is about 11.5 MB, under the default 100 MB upload limit

The reproduction is short. Create a subuser with file permissions on any server (the default Pterodactyl setup), upload evil.zip to the server root through the Panel file manager, then click Extract, which issues POST /files/decompress. One CPU core of the Wings daemon stays pinned for roughly 2 minutes 20 seconds, and the request never returns within a useful time. Repeating the request in parallel pins more cores.

Measured through Wings' own production function (SpaceAvailableForDecompression) on main at v1.13.3+1, Go 1.24.x:

n=100 depth=30000 zipSize=11.5MB
SpaceAvailableForDecompression err=<nil> duration=2m20.293s

Cost is quadratic in name depth, not in archive size. With 1,000 entries, index building took 28 ms at depth 100, 77 ms at 200, 273 ms at 400, 1.09 s at 800 and 4.14 s at 1,600. The same archive under klauspost/compress v1.18.3 finished in 3.7 s instead of 2 min 21 s, about 38 times faster. The v1.18.2 to v1.18.3 diff in zip/reader.go is precisely the early-break fix Go shipped for CVE-2025-61728 (CL 736713).

04Impact: node-wide CPU denial of service

The CPU burns in the shared Wings process, not inside the subuser's own container. While indexing runs, console I/O, websockets, API requests and health checks for every server on the node degrade. One subuser can sustain that with repeated or concurrent extractions, and several subusers on different servers can saturate every core of the machine. There is no confidentiality or integrity impact. No file is disclosed or corrupted, and the daemon recovers once indexing completes.

One precondition narrows the affected population. The server must have a disk allocation set, that is MaxDisk() > 0, which is the default Pterodactyl configuration. On an unlimited-disk server the space check short-circuits before the archive is opened, and this path is never reached.

The report scores the issue 4.3 (Low) with CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L, holding availability at A:L even though sustained multi-core saturation would support A:H. GitHub publishes the advisory as Moderate.

05Affected versions

PackageAffectedPatched
github.com/pterodactyl/wings (Go)>= 1.12.0, < 1.13.41.13.4

Every release from v1.12.0 through v1.13.3 pins github.com/klauspost/compress v1.18.0 and contains the vulnerable request path (archiverFileSystem, SpaceAvailableForDecompression). Buggs777 opened the report on 2026-08-20 and the advisory went public on 2026-11-16 as GHSA-wpxm-mwmr-j622. No CVE ID has been assigned.

06Remediation

  • Bump the dependency. Move github.com/klauspost/compress to >= v1.18.3, which carries the early-break fix in initFileList. Upgrading Wings to 1.13.4 is the supported fix.
  • Bound the archive before indexing. Enforce a maximum entry count and a maximum path length or depth before the file reaches the walk, so a pathological name cannot reach the indexer at all.
  • Give extraction a deadline. Run SpaceAvailableForDecompression and DecompressFile under a timeout context instead of context.Background().

Operators who cannot upgrade immediately should treat file permissions on shared nodes as privileged. The attack needs an authenticated subuser who can upload and extract archives, so restricting that permission limits exposure, though it does not remove the flaw for legitimate users.

07References

AG
Arthur Gurunlian @Buggs777

Vulnerability researcher working on application security, reverse engineering and fuzzing. I find, verify and responsibly disclose bugs in widely used open-source software.