RubySec

Providing security resources for the Ruby community

GHSA-wgrc-4g2v-9qxv (gemstash): Gem push reads the whole request body into memory before checking the API key

Gem push reads the whole request body into memory before checking the API key

Published: November 19, 2026

SECURITY IDENTIFIERS

GEM

gemstash

LIBRARY

RubyGems

PATCHED VERSIONS

>= 2.9.0

DESCRIPTION

Summary

POST /private/api/v1/gems reads the entire request body into memory before checking the API key. An unauthenticated client can make the server allocate memory in proportion to the size of the upload, and the request is only rejected with a 401 afterwards. There is no limit on the body size.

RELATED