summary refs log tree commit homepage
diff options
authorEric Wong <>2010-04-19 13:50:40 -0700
committerEric Wong <>2010-04-19 13:51:39 -0700
commit3ce92574b356e4cb054b1291e1f035173420f12a (patch)
parente2c16da9ddf2572887f29f9a7d1165531cacbcbd (diff)
This release fixes a denial-of-service vector for derived
servers exposed directly to untrusted clients.

This bug does not affect most Unicorn deployments as Unicorn is
only supported with trusted clients (such as nginx) on a LAN.
nginx is known to reject clients that send invalid
Content-Length headers, so any deployments on a trusted LAN
and/or behind nginx are safe.

Servers affected by this bug include (but are not limited to)
Rainbows! and Zbatery.  This bug does not affect Thin nor
Mongrel, as neither got the request body filtering treatment
that the Unicorn HTTP parser got in August 2009.

The bug fixed in this release could result in a
denial-of-service as it would trigger a process-wide assertion
instead of raising an exception.  For servers such as
Rainbows!/Zbatery that serve multiple clients per worker
process, this could abort all clients connected to the
particular worker process that hit the assertion.
2 files changed, 2 insertions, 2 deletions
index 1e6f505..9142570 100755
@@ -1,7 +1,7 @@
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb
index 647a038..41c02d6 100644
--- a/lib/unicorn/const.rb
+++ b/lib/unicorn/const.rb
@@ -7,7 +7,7 @@ module Unicorn
   # gave about a 3% to 10% performance improvement over using the strings directly.
   # Symbols did not really improve things much compared to constants.
   module Const
-    UNICORN_VERSION="0.97.0"
+    UNICORN_VERSION="0.97.1"
     DEFAULT_HOST = "" # default TCP listen host address
     DEFAULT_PORT = 8080      # default TCP listen port