<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-11-11T04:18:59.105372+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/hsec-2026-0011</id>
    <title>HSEC-2026-0011 — Superlinear encoding of numbers with large coefficients</title>
    <updated>2026-11-11T04:18:59.106688+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Hackage: scientific</p>
<p># Superlinear encoding of numbers with large coefficients</p>
<p>Encoding (pretty-printing) a `Scientific` number whose coefficient has many
digits took time quadratic in the number of digits: the decimal digits were
extracted by repeatedly dividing the whole coefficient by 10, once per digit.
The `Show` instance, `Data.Text.Lazy.Builder.Scientific` and
`Data.ByteString.Builder.Scientific` — which `aeson` uses to encode JSON
numbers — all share this code path. A number with one million digits took
about a minute to show, and about a tenth of a second after the fix.</p>
<p>This is a denial-of-service risk for applications that decode numbers from an
untrusted source and encode them again, e.g. JSON proxies, loggers or API
gateways built on `aeson`.</p>
<p>## Resolution</p>
<p>`scientific-0.3.9.0` reimplemented `normalize` and `toDecimalDigits` (the
digit-extraction primitive) to be practically linear in the coefficient size.</p>
<p>Note that `scientific-0.3.9.0` introduced a regression of its own; see
HSEC-2026-0012. Upgrade
directly to `scientific-0.3.10.0` or later, which fixes both issues.</p>
<p>## Credits</p>
<p>Reported by Andrzej Rybczak (@arybczak); fixed by Oleg Grenrus (@phadej).</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/hsec-2026-0011"/>
  </entry>
</feed>
