<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 22:58:09 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-77652 — Dia: dia: heap buffer overflow in wpg colormap parser via out-of-bounds palette index</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-77652</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; GNOME Dia&lt;/p&gt;
&lt;p&gt;A heap-based buffer overflow vulnerability exists in the Dia diagram editor WPG file format importer.&lt;/p&gt;
&lt;p&gt;In plug-ins/wpg/wpg-import.c, the WPG import renderer allocates a fixed palette with:&lt;/p&gt;
&lt;p&gt;ren-&amp;gt;pPal = g_new0(WPGColorRGB, 256);&lt;/p&gt;
&lt;p&gt;When handling a WPG_COLORMAP record, the parser reads a start index (i16) and number of colors (iNum16) from the file and reads palette data with:&lt;/p&gt;
&lt;p&gt;bRet &amp;amp;= (iNum16 == (int)fread(&amp;amp;ren-&amp;gt;pPal[i16], sizeof(WPGColorRGB), iNum16, f));&lt;/p&gt;
&lt;p&gt;The only bounds-related check is `if (i16 &amp;gt;= 0 &amp;amp;&amp;amp; i16 &amp;lt;= iSize)`, where iSize is the WPG record size—not the palette capacity. There is no validation that i16 is less than 256 or that i16 + iNum16 does not exceed 256.&lt;/p&gt;
&lt;p&gt;A malicious WPG file can supply i16=256 and iNum16=264. That causes fread() to write 792 bytes starting at &amp;amp;pPal[256], while the palette buffer is only 768 bytes (256 entries × 3 bytes). This overflows into adjacent heap metadata and can crash Dia (SIGABRT / malloc corruption errors) or, depending on heap layout and exploit primitives, potentially lead to arbitrary code execution.&lt;/p&gt;
&lt;p&gt;Exploitation requires convincing a user to open a crafted WPG file via Dia&amp;#39;s file dialog, command line, or file association. No special privileges are required to deliver the file to the victim.&lt;/p&gt;
&lt;p&gt;Affected component: WPG parser (plug-ins/wpg/wpg-import.c).
Affected versions: all Dia versions containing this code path (reporter tested Dia 0.98+git20260221-1; issue present on upstream master as of 2026-08-21).&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; GNOME Dia&lt;/p&gt;
&lt;p&gt;A heap-based buffer overflow vulnerability exists in the Dia diagram editor WPG file format importer.&lt;/p&gt;
&lt;p&gt;In plug-ins/wpg/wpg-import.c, the WPG import renderer allocates a fixed palette with:&lt;/p&gt;
&lt;p&gt;ren-&amp;gt;pPal = g_new0(WPGColorRGB, 256);&lt;/p&gt;
&lt;p&gt;When handling a WPG_COLORMAP record, the parser reads a start index (i16) and number of colors (iNum16) from the file and reads palette data with:&lt;/p&gt;
&lt;p&gt;bRet &amp;amp;= (iNum16 == (int)fread(&amp;amp;ren-&amp;gt;pPal[i16], sizeof(WPGColorRGB), iNum16, f));&lt;/p&gt;
&lt;p&gt;The only bounds-related check is `if (i16 &amp;gt;= 0 &amp;amp;&amp;amp; i16 &amp;lt;= iSize)`, where iSize is the WPG record size—not the palette capacity. There is no validation that i16 is less than 256 or that i16 + iNum16 does not exceed 256.&lt;/p&gt;
&lt;p&gt;A malicious WPG file can supply i16=256 and iNum16=264. That causes fread() to write 792 bytes starting at &amp;amp;pPal[256], while the palette buffer is only 768 bytes (256 entries × 3 bytes). This overflows into adjacent heap metadata and can crash Dia (SIGABRT / malloc corruption errors) or, depending on heap layout and exploit primitives, potentially lead to arbitrary code execution.&lt;/p&gt;
&lt;p&gt;Exploitation requires convincing a user to open a crafted WPG file via Dia&amp;#39;s file dialog, command line, or file association. No special privileges are required to deliver the file to the victim.&lt;/p&gt;
&lt;p&gt;Affected component: WPG parser (plug-ins/wpg/wpg-import.c).
Affected versions: all Dia versions containing this code path (reporter tested Dia 0.98+git20260221-1; issue present on upstream master as of 2026-08-21).&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-77652</guid>
    </item>
  </channel>
</rss>
