<?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>Sun, 04 Oct 2026 03:41:52 +0000</lastBuildDate>
    <item>
      <title>GHSA-8x88-c5mf-7j5w — node-tar: Negative tar entry size causes infinite loop in archive replace</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-8x88-c5mf-7j5w</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: tar&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;A checksum-valid tar archive with a negative base-256 encoded entry size can make `tar.replace()` loop forever while scanning the existing archive. Applications that update attacker-controlled tar archives can have a worker process pinned indefinitely, causing denial of service.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The public `tar.replace()` API scans the existing archive before appending replacement entries. During this scan, it parses each tar header and advances the archive position by the parsed entry size rounded to a 512-byte block boundary.&lt;/p&gt;
&lt;p&gt;Tar supports base-256 encoded numeric fields. A crafted header can encode the entry size as `-512` while still carrying a valid checksum. The replace scan accepts that parsed negative size and uses it in the position-advance calculation.&lt;/p&gt;
&lt;p&gt;For a size of `-512`, the computed body skip is `-512`. The scan then adds the normal 512-byte header step, resulting in no net progress. The scanner repeatedly parses the same header forever and never reaches the append step.&lt;/p&gt;
&lt;p&gt;This is reachable through the supported package API when the existing archive file is attacker controlled. It does not rely on extraction, dependency behavior, or an uncaught exception.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;Save as `poc.mjs` in a project with the vulnerable package installed and run:&lt;/p&gt;
&lt;p&gt;```bash
node poc.mjs
```&lt;/p&gt;
&lt;p&gt;```js
import fs from &amp;#39;node:fs&amp;#39;
import os from &amp;#39;node:os&amp;#39;
import path from &amp;#39;node:path&amp;#39;
import { spawnSync } from &amp;#39;node:child_process&amp;#39;&lt;/p&gt;
&lt;p&gt;const oct = (b, n, off, len) =&amp;gt;
  b.write(n.toString(…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: tar&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;A checksum-valid tar archive with a negative base-256 encoded entry size can make `tar.replace()` loop forever while scanning the existing archive. Applications that update attacker-controlled tar archives can have a worker process pinned indefinitely, causing denial of service.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The public `tar.replace()` API scans the existing archive before appending replacement entries. During this scan, it parses each tar header and advances the archive position by the parsed entry size rounded to a 512-byte block boundary.&lt;/p&gt;
&lt;p&gt;Tar supports base-256 encoded numeric fields. A crafted header can encode the entry size as `-512` while still carrying a valid checksum. The replace scan accepts that parsed negative size and uses it in the position-advance calculation.&lt;/p&gt;
&lt;p&gt;For a size of `-512`, the computed body skip is `-512`. The scan then adds the normal 512-byte header step, resulting in no net progress. The scanner repeatedly parses the same header forever and never reaches the append step.&lt;/p&gt;
&lt;p&gt;This is reachable through the supported package API when the existing archive file is attacker controlled. It does not rely on extraction, dependency behavior, or an uncaught exception.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;Save as `poc.mjs` in a project with the vulnerable package installed and run:&lt;/p&gt;
&lt;p&gt;```bash
node poc.mjs
```&lt;/p&gt;
&lt;p&gt;```js
import fs from &amp;#39;node:fs&amp;#39;
import os from &amp;#39;node:os&amp;#39;
import path from &amp;#39;node:path&amp;#39;
import { spawnSync } from &amp;#39;node:child_process&amp;#39;&lt;/p&gt;
&lt;p&gt;const oct = (b, n, off, len) =&amp;gt;
  b.write(n.toString(…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-8x88-c5mf-7j5w</guid>
    </item>
  </channel>
</rss>
