Rails Security Vulnerability
January 11, 2013 by Mark McGranaghan
Rails developers can get a full list of all your affected Heroku applications by following instructions here. Please address this security vulnerability by immediately upgrading your affected apps to any of the safe versions of Rails listed below. The following Rails versions have been patched and deemed safe from this exploit:
If you do not upgrade, an attacker can trivially gain access to your application, its data, and run arbitrary code or commands. Heroku recommends upgrading to a patched version immediately.
Open the Gemfile in the affected application and change the Rails version to one listed above:
$ bundle update rails
Then commit the results to git, and push to Heroku:
$ git commit -am "Bundle update rails" $ git push heroku master
Repeat for any susceptible applications. If you cannot upgrade at this time, please consider enabling maintenance mode or scaling your app down to zero dynos.
$ heroku maintenance:on -a APPNAME $ heroku scale web=0 -a APPNAME
Any applications running an insecure version are at risk.