[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-ruby-flaw-ruby2shell-reaches-default-rails-apps-before-login":10,"sections":35},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":24,"tags":25,"sources":30,"feedback":34,"feedback_at":22,"cost_usd":34,"total_tokens":34},13296,"ruby-flaw-ruby2shell-reaches-default-rails-apps-before-login","Ruby Flaw ruby2shell Reaches Default Rails Apps Before Login","A one-byte heap overflow in Ruby's string case conversion is rated Critical, and patched releases exist for 3.3, 3.4 and 4.0 but not for 3.2 or older.","If you run Ruby on Rails or a classic-style Sinatra app, upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10. A flaw disclosed November 19, ruby2shell (CVE-2026-132825), can be reached in those frameworks' default setups before any login check.\n\nThe bug is a heap buffer overflow, a write past the end of a block of memory, in the way Ruby changes the case of strings. The Ruby team rates it Critical and says it knows of proofs of concept that reach remote code execution in some scenarios. Affected versions are 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9. Veria Labs says the bug dates to Ruby 2.4.0. Ruby 3.2 and older are end of life and get no fix.\n\nThe trigger is the German sharp s (ß), which becomes \"SS\" in uppercase. In 14 legacy single-byte encodings, Ruby writes both bytes but checks for room for one. Veria Labs says a string with 21 sharp s characters overflows the buffer by one byte. UTF-8 strings take another code path and are unaffected.\n\nRails and Sinatra expose this through Rack's MethodOverride middleware, which uppercases a form's _method value to fake PUT or DELETE requests. An attacker can send a multipart POST declaring a legacy character set, and the framework upcases the value during routing, ahead of authentication.\n\nSelf-hosted software is the slower problem. Veria Labs lists GitLab 19.6.0, GitHub Enterprise Server 3.22.5, Mastodon 4.7.5, OpenProject 17.9.7, Discourse 2026.10.1 and Chatwoot 4.20.0 as shipping an affected Ruby. Discourse's Docker base image moved to Ruby 4.0.10 on November 19. Linux distributions may backport fixes without changing the version number, so check the advisory.\n\nThe same releases fix six other memory safety flaws. Five sit in the regular expression engine and mostly need attacker-supplied patterns.\n\nA web firewall provider said it now blocks ruby2shell by default for all customers, Free plan included. It also called the rules a compensating control: direct-to-origin traffic, email, file imports and background jobs can reach the bug without passing through a WAF. Veria Labs plans its own proof of concept about a week after disclosure, and the provider expects scanning to follow. The open question is how many bundled installs and Ruby 3.2 holdouts are still unpatched by then.","[\"ruby\",\"rails\",\"vulnerability\",\"waf\"]","2026-11-20T20:24:38.000Z","2026-12-04T23:14:24.189Z","2026-12-04T23:14:29.659Z","published",null,[],"security",[26,27,28,29],"ruby","rails","vulnerability","waf",[31],{"name":32,"url":33},"Cloudflare Blog","https:\u002F\u002Fblog.cloudflare.com\u002Fruby2shell-waf-protection\u002F",0,{"sections":36},[37,42,46,51,56,61,66,71,76,81,86,91,96],{"name":38,"slug":39,"count":40,"latest_published_at":41},"AI","ai",7187,"2026-12-05T12:42:33.000Z",{"name":43,"slug":24,"count":44,"latest_published_at":45},"Security",1177,"2026-12-05T12:51:07.000Z",{"name":47,"slug":48,"count":49,"latest_published_at":50},"Policy","policy",653,"2026-12-05T00:05:51.000Z",{"name":52,"slug":53,"count":54,"latest_published_at":55},"Consumer Tech","consumer-tech",417,"2026-12-05T16:20:00.000Z",{"name":57,"slug":58,"count":59,"latest_published_at":60},"Hardware","hardware",362,"2026-12-04T16:10:04.000Z",{"name":62,"slug":63,"count":64,"latest_published_at":65},"Science","science",246,"2026-12-05T14:06:03.000Z",{"name":67,"slug":68,"count":69,"latest_published_at":70},"Software","software",194,"2026-12-04T12:53:18.000Z",{"name":72,"slug":73,"count":74,"latest_published_at":75},"Startups","startups",167,"2026-12-04T20:37:49.000Z",{"name":77,"slug":78,"count":79,"latest_published_at":80},"General","general",151,"2026-12-05T12:00:00.000Z",{"name":82,"slug":83,"count":84,"latest_published_at":85},"Dev Tools","dev-tools",129,"2026-12-02T18:30:34.000Z",{"name":87,"slug":88,"count":89,"latest_published_at":90},"Gaming","gaming",120,"2026-12-04T16:59:48.000Z",{"name":92,"slug":93,"count":94,"latest_published_at":95},"Reviews","reviews",39,"2026-11-12T14:00:00.000Z",{"name":97,"slug":98,"count":99,"latest_published_at":100},"How-To","how-to",10,"2026-11-14T23:45:00.000Z"]