Skip to main content

CVE-2026-102990: CWE-1333: Inefficient Regular Expression Complexity in patrickjuchli basic-ftp

0
High
VulnerabilityCVE-2026-102990cvecve-2026-102990cwe-1333
Published: 09/30/2026 (09/30/2026, 19:44:47 UTC)
Source: CVE Database V5
Vendor/Project: patrickjuchli
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

patrickjuchli

basic-ftp

Affected versions
<6.2.1
basic-ftp
pkg:npm/basic-ftp
Affected versions
<6.2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/30/2026, 20:17:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses