r/sysadmin • Sysadmin • 7d ago

Unauthenticated Remote Code Execution in Ruby (ruby2ßhell)

https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5

https://verialabs.com/ruby2shell/

CVE-2026-132825

All Ruby versions back to 2.4.0 are vulnerable. Patches available for 3.3 and up.

162 Upvotes

48 comments sorted by

View all comments

1

u/Professional_Lab3925 7d ago

could we just block the German Eszett. It might block some valid german traffic, but might be a mitigation for a lot us.

This blocks unicode so maybe not complete enough....just some pseduo nginx conf.

server {

# ... your existing listen, server_name, and ssl configs ...

# Block URLs containing lowercase 'ß' (%C3%9F) or uppercase 'ẞ' (%E1%BA%9E)

location ~* (%c3%9f|%e1%ba%9e) {

return 403;

}

# ... your existing proxy_pass or Passenger/Puma configs ...

}

1

u/meditonsin Sysadmin 7d ago

That doesn't protect you from malicious values in request bodies that might be case folded by the application.