Skip to main content

uftpd EUVDEUVD-2026-129190

| CVE-2026-59964 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-11-18 GitHub_M
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to uftpd (anonymous/guest accepted)
  2. Delivery
    Send CWD/RETR/STOR/LIST with ~PATH_MAX path
  3. Exploit
    memmove writes past dir[PATH_MAX] in compose_path
  4. Execution
    Stack memory corruption
  5. Impact
    Reliable daemon crash (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires uftpd to be running WITHOUT chroot - which occurs whenever the server is not started as root, since uftpd only chroots when running as root (a common configuration per the advisory). The attacker must be a logged-in FTP client, but anonymous or guest login is sufficient where enabled. The trigger is an FTP command (CWD, RETR, STOR, or LIST) carrying a near-PATH_MAX (~4096-byte) path argument so that strlen(dir) approaches PATH_MAX-1 before the home-directory memmove. Limiting factors: instances started as root (which chroot) do not reach the vulnerable non-chroot branch; a successful login is required (though anonymous access removes this barrier where configured); and only versions prior to 2.16 are affected.

Impact

Signals point to a genuine but bounded medium-severity denial-of-service issue, not a top-tier emergency. The provided CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H, score 5.9) captures a remote, post-authentication flaw with high availability impact and no confidentiality impact; the vuln.today decision label is 'this_month' (not act_now/emergency). No EPSS score and no CISA KEV entry are present in the input, so there is no indication of active exploitation. A public PoC reference exists in the GHSA advisory (an AddressSanitizer reproducer, poc_uftpd.c, that triggers a stack-buffer-overflow WRITE); it is not provided here as a 'confirmed working exploit' field, so treat it as a verified crash reproducer rather than a weaponized RCE exploit. The most important caveat: the advisory and source evidence state remote code execution was NOT demonstrated and is considered unlikely because the overflow length is bounded by strlen(home) and the written content is the shifted path - so the realistic impact is a reliable crash/DoS. Exploitation also depends on a deployment condition (uftpd running without chroot, i.e. not started as root), which the advisory notes is common. Net: a real priority to patch within normal cycles for exposed non-root uftpd instances, but the 'RCE' framing in the tags overstates the demonstrated impact.

Exploit ScenarioDerived

An attacker with any FTP login - including anonymous or guest where enabled - connects to a uftpd instance (< 2.16) running without chroot and sends an FTP command such as CWD with a near-PATH_MAX path argument (~4096 bytes). In compose_path(), the non-chroot branch's memmove shifts the path to prepend the home directory and writes past the end of the dir[PATH_MAX] stack buffer, corrupting the stack and reliably crashing the daemon. A verified AddressSanitizer reproducer (poc_uftpd.c) is attached to the GHSA advisory; RCE was not demonstrated and is considered unlikely.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Stack-based buffer overflow in uftpd before 2.16 lets an authenticated FTP client (anonymous or guest login is enough where enabled) push a near-PATH_MAX path through commands such as CWD, RETR, STOR or LIST and write past a PATH_MAX stack buffer, reliably crashing the daemon. The flaw is only reachable when uftpd runs without chroot, which is the case whenever the daemon is not started as root; the shifted home-directory memmove then runs off the end of dir[]. Remote code execution was not demonstrated, the issue is not listed in CISA KEV, and a public PoC reference exists but is not verified as working exploit code against a deployed server.

RemediationAI

Upgrade to uftpd 2.16, which contains the compose_path() bounds check in commit f5552a8c6a5f14691f51bef1f3373747259d7ac8 and is published at https://github.com/troglobit/uftpd/releases/tag/v2.16; deploy the tagged release rather than cherry-picking the commit. The vendor advisory at https://github.com/troglobit/uftpd/security/advisories/GHSA-vqhc-mmjf-972h documents the issue and the fix. If the upgrade cannot be applied immediately, the vulnerable branch is skipped when the daemon runs as root and chroots, since chrooted is 0 only for non-root starts - but that trades the overflow for running the FTP service with root privileges and is only a stopgap. Disabling anonymous and guest logins removes the easiest route to the authenticated session the attack requires, at the cost of blocking unauthenticated access and leaving valid credentialed attackers unaffected. Neither workaround repairs the out-of-bounds write, so installing 2.16 is the complete fix.

Affected VersionsENISA

uftpd < 2.16

Affected Packages

euvd uftpd fix: 2.16

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

compose_path() in src/common.c builds an absolute path in a fixed char dir[PATH_MAX] stack buffer: it copies ctrl->cwd with strlcpy(), appends the client-supplied path with strlcat() (both truncating at PATH_MAX-1), and then, in the non-chroot branch, prepends the configured home directory using memmove(dir + len, dir, strlen(dir) + 1) with len = strlen(home). There is no check that len + strlen(dir) + 1 fits within sizeof(dir), so a path argument close to PATH_MAX makes the memmove write up to strlen(home) bytes beyond the end of dir[] - a stack out-of-bounds write (CWE-121, also described as CWE-787). The chrooted flag is 0 whenever uftpd was not started as root, since the daemon only chroots when running as root, so the vulnerable branch is reached in that common configuration. The overflow length is bounded by the home-directory prefix length and the bytes written are the shifted path itself, which the advisory cites as the reason remote code execution was not demonstrated; the practical outcome is memory corruption and a reliable service crash. The fix in 2.16 clamps len to sizeof(dir) - 1 and truncates dir[] when the combined prefix and path would not fit.

Know when Uftpd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
vuln.today AI 6.5 MEDIUM

Remote and post-login (anonymous accepted) gives AV:N/PR:L; the overflow is triggered by a simple overlong path in the common non-root config, so AC:L; impact is a reliable crash only (RCE not demonstrated), so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

1
Patch available
Nov 18, 2026 - 21:03 EUVD

DescriptionCVE.org

uftpd is a UNIX FTP and TFTP server. Prior to 2.16, uftpd's compose_path function in src/common.c can overflow the fixed dir[PATH_MAX] stack buffer when the server runs without chroot and prepends the configured home directory to a near-PATH_MAX attacker-supplied path using memmove. A logged-in FTP client, including an anonymous or guest client where enabled, can trigger the out-of-bounds write through commands such as CWD, RETR, STOR, or LIST, causing memory corruption and a reliable service crash. Remote code execution has not been demonstrated. This issue is fixed in version 2.16.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Low
niche open-source UNIX FTP/TFTP server, embedded/small-system use, no broad enterprise footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy