{
  "id": 20739221,
  "title": "Ruby2Shell (GHSA-34m4-m9fh-gqp5)",
  "url": "https://urgent.news/2026/11/19/ruby2shell-ghsa-34m4-m9fh-gqp5",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-19T10:50:28.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://verialabs.com/ruby2shell/"
  },
  "original_language": "en",
  "account": "Ruby2Shell vulnerability (GHSA-34m4-m9fh-gqp5) impacts popular software bundles. Certain frameworks, when configured with default settings, are exposed to this bug. Other frameworks may also be vulnerable if application code mishandles legacy encoding strings.\n\nRuby 3.3.14, 3.4.13 and 4.0.10 address the issue. Users should upgrade their Ruby version to a fixed release from these versions. Self-hosted software providers also offer fixed versions of popular products.\n\nMost of Ruby's single-byte character encodings lack capital ß. When this character is upcased, it writes two bytes (SS) instead of one. The loop that bounds-checks the output buffer fails to account for this extra byte. If an input string contains 21 ß characters, it overflows the output buffer by one byte.\n\nThe vulnerable code exists in several ISO-8859 and Windows-125x encodings since Ruby 2.4.0. It is triggered by the upcase, swapcase, downcase(:fold) and casecmp? methods. These methods only affect non-UTF-8 strings.\n\nA one-byte heap overflow occurs, writing either S (0x53) when upcasing or s (0x73) when case-folding directly after the output buffer. The attacker can control the buffer size through the input length. Copying the manipulated result from the buffer results in reading one byte out of bounds.\n\nA proof of concept will be released in a week, giving users time to upgrade their Ruby versions.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}