<?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-10-03T10:33:29.128216+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/ghsa-rpmf-866q-6p89</id>
    <title>GHSA-rpmf-866q-6p89 — basic-ftp allows a malicious FTP server to cause client-side denial of service via unbounded multiline control response…</title>
    <updated>2026-10-03T10:33:29.129940+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: basic-ftp</p>
<p>## Summary</p>
<p>`basic-ftp` is vulnerable to client-side denial of service when parsing FTP control-channel multiline responses.</p>
<p>A malicious or compromised FTP server can send an unterminated multiline response during the initial FTP banner phase, before authentication. The client keeps appending attacker-controlled data into `FtpContext._partialResponse` and repeatedly reparses the accumulated buffer without enforcing a maximum control response size.</p>
<p>As a result, an application using `basic-ftp` can remain stuck in `connect()` while memory and CPU usage grow under attacker-controlled input. This can lead to process-level denial of service, container OOM kills, worker restarts, queue backlog, or service degradation in applications that automatically connect to FTP endpoints.</p>
<p>---</p>
<p>## Details</p>
<p>### Root cause</p>
<p>The root cause is that incomplete FTP multiline control responses are buffered without an upper bound.</p>
<p>`FtpContext` stores incomplete control-channel data in `_partialResponse`:</p>
<p>https://github.com/patrickjuchli/basic-ftp/blob/50827c73ca6c1d786c97276e47be8a33d0f2277d/src/FtpContext.ts#L63-L64</p>
<p>Incoming control-channel data is handled in `_onControlSocketData`. The implementation concatenates the previous incomplete response with the new chunk, parses the entire accumulated string, and stores `parsed.rest` back into `_partialResponse`:</p>
<p>https://github.com/patrickjuchli/basic-ftp/blob/50827c73ca6c1d786c97276e47be8a33d0f2277d/src/FtpContext.ts#L328-L340</p>
<p>The relevant flo…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-rpmf-866q-6p89"/>
  </entry>
</feed>
