Gem push reads the whole request body into memory before checking the API key
Published: November 19, 2026
SECURITY IDENTIFIERS
- GHSA: GHSA-wgrc-4g2v-9qxv
- Vendor Advisory: https://github.com/rubygems/gemstash/security/advisories/GHSA-wgrc-4g2v-9qxv
GEM
LIBRARY
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.
