summaryrefslogtreecommitdiffstats
path: root/www/rt42/files/patch-lib_RT.pm
blob: de66d2bd4542a1dc0f14d0146ddcf27073689e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- lib/RT.pm.orig	2016-06-08 21:49:02 UTC
+++ lib/RT.pm
@@ -81,6 +81,10 @@ use vars qw($BasePath
  $MasonDataDir
  $MasonSessionDir);
 
+# Set Email::Address module var before anything else loads.
+# This avoids an algorithmic complexity denial of service vulnerability.
+# See T#157608 and CVE-2015-7686 for more information.
+$Email::Address::COMMENT_NEST_LEVEL = 1;
 
 RT->LoadGeneratedData();
 
OpenPOWER on IntegriCloud