<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-28T06:42:07.626674+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-77652</id>
    <title>CVE-2026-77652 — Dia: dia: heap buffer overflow in wpg colormap parser via out-of-bounds palette index</title>
    <updated>2026-09-28T06:42:08.322562+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> GNOME Dia</p>
<p>A heap-based buffer overflow vulnerability exists in the Dia diagram editor WPG file format importer.</p>
<p>In plug-ins/wpg/wpg-import.c, the WPG import renderer allocates a fixed palette with:</p>
<p>ren-&gt;pPal = g_new0(WPGColorRGB, 256);</p>
<p>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:</p>
<p>bRet &amp;= (iNum16 == (int)fread(&amp;ren-&gt;pPal[i16], sizeof(WPGColorRGB), iNum16, f));</p>
<p>The only bounds-related check is `if (i16 &gt;= 0 &amp;&amp; i16 &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.</p>
<p>A malicious WPG file can supply i16=256 and iNum16=264. That causes fread() to write 792 bytes starting at &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.</p>
<p>Exploitation requires convincing a user to open a crafted WPG file via Dia's file dialog, command line, or file association. No special privileges are required to deliver the file to the victim.</p>
<p>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).</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-77652"/>
  </entry>
</feed>
