CVE-2026-102990: CWE-1333: Inefficient Regular Expression Complexity in patrickjuchli basic-ftp
basic-ftp is an FTP client for Node.js. Prior to 6.2.1, Client.list() can be forced by a malicious or compromised FTP server to spend quadratic CPU time parsing a directory listing because the RE_LINE expression in src/parseListUnix.ts backtracks across adjacent variable-length owner and group fields when a long Unix-style line has a valid prefix but cannot satisfy the later size and date fields. parseList() selects a parser from the last nonblank line and then applies it to every line, so a normal final line can select the Unix parser while an earlier crafted line blocks the Node.js event loop and freezes the process. This issue is fixed in version 6.2.1.
AI Analysis
Technical Summary
The vulnerability in basic-ftp (CVE-2026-102990) arises from the RE_LINE regular expression used in src/parseListUnix.ts for parsing Unix-style FTP directory listings. When a directory listing line has a valid prefix but fails to satisfy later size and date fields, the regex backtracks excessively across adjacent variable-length owner and group fields, causing quadratic CPU time complexity. The parseList() function applies the Unix parser selected from the last nonblank line to all lines, allowing a crafted earlier line to block the Node.js event loop and freeze the process. This denial-of-service condition is fixed in basic-ftp version 6.2.1.
Potential Impact
An attacker controlling or compromising an FTP server can send specially crafted directory listings that cause the basic-ftp client to consume excessive CPU resources, blocking the Node.js event loop and freezing the client process. This results in a denial-of-service condition for applications using vulnerable versions of basic-ftp.
Mitigation Recommendations
Upgrade basic-ftp to version 6.2.1 or later, where the inefficient regular expression has been fixed. No other mitigations are indicated by the vendor advisory.
CVE-2026-102990: CWE-1333: Inefficient Regular Expression Complexity in patrickjuchli basic-ftp
Description
basic-ftp is an FTP client for Node.js. Prior to 6.2.1, Client.list() can be forced by a malicious or compromised FTP server to spend quadratic CPU time parsing a directory listing because the RE_LINE expression in src/parseListUnix.ts backtracks across adjacent variable-length owner and group fields when a long Unix-style line has a valid prefix but cannot satisfy the later size and date fields. parseList() selects a parser from the last nonblank line and then applies it to every line, so a normal final line can select the Unix parser while an earlier crafted line blocks the Node.js event loop and freezes the process. This issue is fixed in version 6.2.1.
CVSS v4.0
Score 8.2high
Affected software
patrickjuchli
basic-ftp
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in basic-ftp (CVE-2026-102990) arises from the RE_LINE regular expression used in src/parseListUnix.ts for parsing Unix-style FTP directory listings. When a directory listing line has a valid prefix but fails to satisfy later size and date fields, the regex backtracks excessively across adjacent variable-length owner and group fields, causing quadratic CPU time complexity. The parseList() function applies the Unix parser selected from the last nonblank line to all lines, allowing a crafted earlier line to block the Node.js event loop and freeze the process. This denial-of-service condition is fixed in basic-ftp version 6.2.1.
Potential Impact
An attacker controlling or compromising an FTP server can send specially crafted directory listings that cause the basic-ftp client to consume excessive CPU resources, blocking the Node.js event loop and freezing the client process. This results in a denial-of-service condition for applications using vulnerable versions of basic-ftp.
Mitigation Recommendations
Upgrade basic-ftp to version 6.2.1 or later, where the inefficient regular expression has been fixed. No other mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-29T20:46:08.334Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abd6b1e2a4e24523d869f98
Added to database: 09/30/2026, 20:03:42 UTC
Last enriched: 09/30/2026, 20:17:56 UTC
Last updated: 10/01/2026, 02:35:40 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.