Brutal - Unicorn didn't use Rack.env in a thread safe way. It's tougher given that this was in a widely used app-server and not even in Rails code.
Impressed with GH folks in finding this, though I wonder how many more of these types of bugs are out there in Ruby libs. It'd be nice to make this more difficult to do, a la FP languages, by making it really intentional to modify state. Maybe in Ruby 4??