<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>CSS Parser 100% CPU usage</title> 
  <pubDate>Sat, 04 Apr 2026 17:19:06 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14318</link> 
  <atom:link rel="self" type="application/rss+xml" title="CSS Parser 100% CPU usage" href="https://bugs.horde.org/ticket/14318/rss" /> 
  <description>CSS Parser 100% CPU usage</description> 
 
   
   
  <item> 
   <title>After upgrade to 1.0.9, Horde_CSS_Parser started to take 100</title> 
   <description>After upgrade to 1.0.9, Horde_CSS_Parser started to take 100% CPU in some cases and possibly causing a DoS (when max_execution_time is disabled):

2016-04-06T14:23:09+02:00 EMERG: HORDE [imp] Maximum execution time of 
120 seconds exceeded [pid 20629 on line 578 of 
&quot;/usr/share/php/Horde/Css/Parser/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parser.php&quot;]

2016-04-06T14:23:08+02:00 EMERG: HORDE [imp] Maximum execution time of 
120 seconds exceeded [pid 20617 on line 18 of 
&quot;/usr/share/php/Horde/Css/Parser/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/UnexpectedTokenException.php&quot;]

 2016-04-06T14:34:29+02:00 EMERG: HORDE [imp] Maximum execution time of 
120 seconds exceeded [pid 7743 on line 96 of 
&quot;/usr/share/php/Horde/Css/Parser/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parser.php&quot;]

Downgrading to 1.0.8 seems to fix the problem.
</description> 
   <pubDate>Wed, 06 Apr 2016 12:57:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90306</link> 
  </item> 
   
  <item> 
   <title>See also Ticket: 14317</title> 
   <description>See also Ticket: 14317</description> 
   <pubDate>Wed, 06 Apr 2016 13:17:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90308</link> 
  </item> 
   
  <item> 
   <title>Can you provide an example (HTML) message that triggers this</title> 
   <description>Can you provide an example (HTML) message that triggers this?</description> 
   <pubDate>Wed, 06 Apr 2016 14:42:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90310</link> 
  </item> 
   
  <item> 
   <title>Any idea how to find such a message? It was triggered by our</title> 
   <description>Any idea how to find such a message? It was triggered by our users (who probably doesn&#039;t know that something like this happened).</description> 
   <pubDate>Wed, 06 Apr 2016 14:53:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90311</link> 
  </item> 
   
  <item> 
   <title>Got it! Pls remove it from ticket after you download it, tha</title> 
   <description>Got it! Pls remove it from ticket after you download it, thank you.</description> 
   <pubDate>Wed, 06 Apr 2016 16:53:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90314</link> 
  </item> 
   
  <item> 
   <title>Still cannot reproduce and it wouldn&#039;t have made any sense a</title> 
   <description>Still cannot reproduce and it wouldn&#039;t have made any sense anyway, since the message didn&#039;t contain any CSS at all.</description> 
   <pubDate>Wed, 06 Apr 2016 20:04:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90316</link> 
  </item> 
   
  <item> 
   <title>I&#039;m able to 100% reproduce it with that message. This is rel</title> 
   <description>I&#039;m able to 100% reproduce it with that message. This is related to CSS:
&lt;!--a75c305b1c0a6022--&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;/style&gt;</description> 
   <pubDate>Wed, 06 Apr 2016 21:04:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90317</link> 
  </item> 
   
  <item> 
   <title>Debian Wheezy, PHP 5.6.20 (from dotdeb.org), all Horde packa</title> 
   <description>Debian Wheezy, PHP 5.6.20 (from dotdeb.org), all Horde packages on newest stable versions.</description> 
   <pubDate>Wed, 06 Apr 2016 21:06:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90318</link> 
  </item> 
   
  <item> 
   <title>I tried to replace this:
&lt;!--a75c305b1c0a6022--&gt;&lt;style type</title> 
   <description>I tried to replace this:
&lt;!--a75c305b1c0a6022--&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;/style&gt;

with this (so message size will remain the same):
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

and problem was gone for this message.</description> 
   <pubDate>Wed, 06 Apr 2016 21:11:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90319</link> 
  </item> 
   
  <item> 
   <title>Also this helps (but don&#039;t forget to remove 3 characters som</title> 
   <description>Also this helps (but don&#039;t forget to remove 3 characters somewhere from body):
&lt;!--a75c305b1c0a6022--&gt;&lt;style type=&quot;text/css&quot;&gt;aaa&lt;/style&gt;

The problem is with empty &lt;!--a75c305b1c0a6022--&gt;&lt;style&gt; tag.</description> 
   <pubDate>Wed, 06 Apr 2016 21:16:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90320</link> 
  </item> 
   
  <item> 
   <title>This empty style tag is already stripped off here. Probably </title> 
   <description>This empty style tag is already stripped off here. Probably through tidy.</description> 
   <pubDate>Thu, 07 Apr 2016 12:44:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90322</link> 
  </item> 
   
  <item> 
   <title>Sorry but i don&#039;t know what you mean. The bug is present as </title> 
   <description>Sorry but i don&#039;t know what you mean. The bug is present as i described it.</description> 
   <pubDate>Thu, 07 Apr 2016 12:53:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90323</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit c462001168dc</title> 
   <description>Changes have been made in Git (master):

commit c462001168dc27dc786d9dacf244feb06cf33087
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Thu Apr 7 15:16:51 2016 +0200

    [jan] Fix upstream regression causing infite loops with empty CSS documents (Bug #14318).

 framework/Css_Parser/lib/Horde/Css/Parser.php |    5 +++++
 framework/Css_Parser/package.xml              |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/c462001168dc27dc786d9dacf244feb06cf33087</description> 
   <pubDate>Thu, 07 Apr 2016 13:17:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90324</link> 
  </item> 
   
  <item> 
   <title>Thank you!</title> 
   <description>Thank you!</description> 
   <pubDate>Thu, 07 Apr 2016 13:23:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90326</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit e02440a4ad79</title> 
   <description>Changes have been made in Git (master):

commit e02440a4ad7932b0c02437e602005b9522d0478d
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Thu Apr 7 15:21:34 2016 +0200

    Add a test for bug #14318.

 .../test/Horde/Css/Parser/ParserTest.php           |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

http://github.com/horde/horde/commit/e02440a4ad7932b0c02437e602005b9522d0478d</description> 
   <pubDate>Fri, 08 Apr 2016 14:22:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14318#t90336</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
