Description (en)
0day Rubbish Research Team is publicly disclosing a vulnerability in NETGEAR
RAX120 (Nighthawk AX12) firmware V1.2.5.18, the WiFi 6 consumer router from
NETGEAR (United States), built on the Qualcomm IPQ8074 platform. The
administrative web plane of this firmware generation is a lighttpd server
fronting the vendor's DNI-framework CGI handler /usr/sbin/net-cgi (an
aarch64, musl, stripped image; the handler binary measures 1,042,120 bytes
and its recorded image digest begins d7035dd3), and the SOAP control plane
dispatches every action through /soap/server_XMLresp.cgi. Among those
actions is the app-installation control InstallApp of the service
urn:NETGEAR-ROUTER:service:AppSystem:1, which requires the router
administrator's session.
Type and root cause. OS command injection (CWE-78 primary, with CWE-20
co-equal for the blocklist-style improper input validation, and CWE-426
recorded as contributing without raising any metric). The operation takes a
NewAppName argument and passes it through a blocklist validator whose
"apname" mode (the routine at fcn.000407d8 in the stripped image, mode
string at 0xc3058) rejects six characters chosen with shell injection in
mind: the at-sign, the backtick, the semicolon, the double quote, the
single quote and the backslash. That set covers the classic
statement-separator and quote-context breakouts. It does not reject the
dollar sign or either parenthesis, which are the entire grammar of command
substitution. The handler then embeds the validated name, unquoted, into two
working paths (/tmp/<name>_tmp and /sw-apps/<name>, both built by direct
snprintf interpolation) and then into three shell command lines:
system("rm -rf /sw-apps/<name>/version.txt > /dev/console")
system("rm -rf /sw-apps/<name> > /dev/console")
popen("rm -rf /tmp/<name>_tmp; mkdir /tmp/<name>_tmp;
tar -zxf /tmp/<tarball> -C /tmp/<name>_tmp", "r")
Each sink executes through /bin/sh -c, so a second parse happens inside a
shell the validator never modeled. A name of the shape x$(cmd) substitutes
attacker-chosen command text before the rm words ever run, and the shell's
parser walks the whole command line with a substitution pass before
executing any word of it, so the injected command fires whether or not the
surrounding rm errors out. An intermediate string processor in the handler
walk (recorded at fcn.00079060) rewrites carriage returns and line feeds to
spaces and performs no other transformation, so no downstream mitigation
exists: the dollar sign, pipe, ampersand and every other metacharacter pass
untouched. Two gates sit ahead of the validator, a 255-character length cap
on the name and a value gate on the companion NewUpdate element, and both
are compatible with the payload, which is under 30 characters.
Execution identity. system() and popen() children inherit the identity of
the web stack that calls them, and the research record identifies, from the
firmware image's own lighttpd configuration, the server's configured
runtime user as root, so command text supplied through this handler
inherits device-root authority by product configuration. The dynamic
verification measured exactly that identity in a sink-level replication:
markers carrying uid=0(root) gid=0(root) groups=0(root) from all three
vectors, and none from a benign control name.
Authentication, credited plainly. This is not an unauthenticated finding
and no unauthenticated variant of it is claimed. The gate is identified from
the artifacts as the administrative SOAP login bound to the requesting
station's MAC address, failing closed; the chain consumes a legitimate
administrator session and neither bypasses nor forges it. It is also not a
default-credential finding: the same request succeeds whatever the
administrator password is. No second web-account tier with reach into this
service exists in any artifact examined, which is what fixes Privileges
Required at High. The product gets the gate right and the argument
construction wrong; this is a CWE-78/CWE-20 defect, not CWE-306 and not
CWE-862.
Why this handler and not a hundred others. The DNI framework also contains
an exec helper (recorded at fcn.000779f0) that runs commands through
vfork() plus execve() with an argument vector, architecturally immune to
shell injection, and large parts of the firmware use it. A census of the
shell-mediated remainder classified on the order of 150+ system() sites,
almost all of them fixed string constants loaded by address arithmetic with
no substitution, and about 54 popen() sites. The app-installation handler
is the single family in the analysed image that interpolates an
attacker-controlled SOAP argument into a shell command line, so the defect
is one handler rather than a platform-wide sloppy pattern.
The sibling platform. The same root cause was confirmed on the NETGEAR
R7800 (Nighthawk X4S), firmware V1.0.2.68: a different SoC generation
(Broadcom BCM4709), a different instruction set (32-bit ARM), a different
handler binary (recorded digest beginning c5a9f2b3) and a different
validator function whose reject set is only the double quote, the single
quote and the backslash, which is strictly more permissive than the main
model's six. The identical x$(cmd) payload passed that validator and
executed through the same handler family in that platform's own sink-level
replication, with three root markers of its own and a clean control. The
merge is argued at the level of root cause, not build identity, and the
platform differences are stated rather than smoothed over. Other models
shipping this framework's app-system code were not audited, and the vendor's
older R6700/R7000/R8000 generation runs a different self-built httpd lineage
that does not contain this handler, so no claim is made about it.
Verification boundary, stated in full, because it defines what is and is not
being claimed. No physical router was driven during verification and no
live SOAP request was fired at device hardware, at any point, in any phase
of this work. The request path, the session gate and the parameter
extraction are established at disassembly level from the shipped image. The
injection behaviour at the sink is established by a sink-level replication:
on an isolated cloud-hosted sandbox, a natively compiled C program
re-implemented the disassembled validator logic, the CRLF-normalising string
processor and all three command constructions, run with the root privilege
model the image's lighttpd configuration records for the web stack. Three
vectors, one per sink, each carrying x$(id>/tmp/<marker>) through the
replicated validator and construction, each produced a marker containing
uid=0(root) gid=0(root) groups=0(root); a benign control name traversing
the identical code path produced none. The control is the load-bearing
negative: it makes the marker creation attributable to the substitution
content alone, not to the surrounding construction or the harness. Not
performed and not claimed: any end-to-end HTTP round trip against device
hardware, any cross-station or cross-network detonation, any persistence
mechanism, any radio-firmware or hardware-adjacent effect, and any memory
corruption. There is none in the chain, which is metacharacter-class gap
and nothing else. The landing-identity mapping rests on the image's own
configuration artifact read as text, not on a live-device observation.
Scoring. One score is published: 6.8 Medium,
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. The arithmetic is printed so
any reader can reproduce it under the CVSS 3.1 base algorithm and its
round-up-to-the-tenth rule: ISS = 1 - (0.44 x 0.44 x 0.44) = 0.914816;
Impact for Scope Unchanged = 6.42 x 0.914816 = 5.873119; Exploitability =
8.22 x 0.62 (adjacent) x 0.77 x 0.27 x 0.85 = 0.900610; sum = 6.773729;
Roundup = 6.8. Attack Vector is Adjacent because the SOAP control plane
belongs to the router's local administrative service and no shipped
artifact examined establishes that the action answers on the wide-area side
of an unmodified deployment; the reading is argued from the product's
transport and the recovered session model, not demonstrated between two
hosts.
Two alternative readings are published, each labelled. A conditional
reading at 7.2 High (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, from
Exploitability 1.234708 and sum 7.107827) applies where the management
plane is deliberately exposed beyond the adjacent network, by enabled
remote administration, by a port forward directed at the SOAP responder, or
by a management relay; it is conditional on a deployment choice this
research did not measure, and it is not the headline. Two further readings
are published as rejected with their arithmetic: a hypothetical
lower-privilege web tier at PR:L computes to 8.8 with AV:N (Exploitability
2.835255, sum 8.708374) and to 8.0 with AV:A, and both are rejected because
the app-installation control plane is administrator-only on this firmware
and no artifact documents a secondary account class with web access to this
service, so no principal exists to justify Low privileges.
One correction to the researchers' own record is published rather than
quietly made. The internal research ledger behind this advisory carried 8.8
for this chain. Recomputation rejects it: 8.8 is the arithmetic of the same
impact profile read at Low privilege, and the documented chain requires the
device administrator, so no vector supported by this evidence computes to
the recorded figure. The published score is 6.8, computed from the vector,
with the discrepancy recorded in the advisory rather than silently
overwritten, because a number that was quietly changed is a number nobody
downstream can audit. Correcting it lowered the published figure.
Impact. Command execution as the root-configured web stack, from a position
of an administrator credential the holder was never meant to convert into an
operating-system shell. Concretely: the complete configuration store
including credentials retained by the firmware; creation or modification of
accounts, startup scripts and scheduled tasks within the writable
filesystem; reconfiguration of interfaces, routes and the DNS resolver the
LAN depends on; redirection or observation of LAN traffic according to the
platform's own capabilities, turning the network's chokepoint device into an
interior attack position; and degradation of service at will, including
through the very rm -rf constructions this chain lives in. The chain is
silent in product terms: one authenticated POST inside a legitimate
management action, with no log-relevant traffic pattern beyond ordinary
app-management use. Persistence was not tested and is not claimed; what
survives a factory reset or reflash was not tested and is not claimed.
Mitigation summary: replace the blocklist with an allowlist for the
application name, [A-Za-z0-9][A-Za-z0-9._-]* with the existing length cap;
stop interpolating the name into shell command lines at all, implementing
cleanup, directory creation and extraction with unlink(), mkdir() and
argument-array execve()-family calls or the framework's own exec helper,
which closes the class for every caller pattern rather than enumerating
today's metacharacters; if a shell-based implementation must survive one
release cycle, single-quote every interpolated value with literal
single-quote escaping and assert post-construction that the compiled
command contains no dollar sign, failing the request otherwise; drop
web-stack privileges so lighttpd and its CGI handlers run as a dedicated
non-root identity; patch the sibling model in the same pass, its validator
being strictly more permissive, with one cross-model regression test
submitting $(true) as an application name and asserting no shell-out; adopt
a build rule failing the release on any system() or popen() site that
interpolates request data, rather than another manual audit of on the order
of 54 popen() sites in one binary; and for operators until a patch ships,
keep the managRaw JSON
{
"containers": {
"cna": {
"affected": [
{
"product": "Rax120",
"vendor": "Netgear",
"versions": [
{
"status": "affected",
"version": "unknown"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "disclosure via Fulldisclosure"
}
],
"descriptions": [
{
"lang": "en",
"value": "0day Rubbish Research Team is publicly disclosing a vulnerability in NETGEAR\nRAX120 (Nighthawk AX12) firmware V1.2.5.18, the WiFi 6 consumer router from\nNETGEAR (United States), built on the Qualcomm IPQ8074 platform. The\nadministrative web plane of this firmware generation is a lighttpd server\nfronting the vendor's DNI-framework CGI handler /usr/sbin/net-cgi (an\naarch64, musl, stripped image; the handler binary measures 1,042,120 bytes\nand its recorded image digest begins d7035dd3), and the SOAP control plane\ndispatches every action through /soap/server_XMLresp.cgi. Among those\nactions is the app-installation control InstallApp of the service\nurn:NETGEAR-ROUTER:service:AppSystem:1, which requires the router\nadministrator's session.\n\nType and root cause. OS command injection (CWE-78 primary, with CWE-20\nco-equal for the blocklist-style improper input validation, and CWE-426\nrecorded as contributing without raising any metric). The operation takes a\nNewAppName argument and passes it through a blocklist validator whose\n\"apname\" mode (the routine at fcn.000407d8 in the stripped image, mode\nstring at 0xc3058) rejects six characters chosen with shell injection in\nmind: the at-sign, the backtick, the semicolon, the double quote, the\nsingle quote and the backslash. That set covers the classic\nstatement-separator and quote-context breakouts. It does not reject the\ndollar sign or either parenthesis, which are the entire grammar of command\nsubstitution. The handler then embeds the validated name, unquoted, into two\nworking paths (/tmp/<name>_tmp and /sw-apps/<name>, both built by direct\nsnprintf interpolation) and then into three shell command lines:\n\n system(\"rm -rf /sw-apps/<name>/version.txt > /dev/console\")\n system(\"rm -rf /sw-apps/<name> > /dev/console\")\n popen(\"rm -rf /tmp/<name>_tmp; mkdir /tmp/<name>_tmp;\n tar -zxf /tmp/<tarball> -C /tmp/<name>_tmp\", \"r\")\n\nEach sink executes through /bin/sh -c, so a second parse happens inside a\nshell the validator never modeled. A name of the shape x$(cmd) substitutes\nattacker-chosen command text before the rm words ever run, and the shell's\nparser walks the whole command line with a substitution pass before\nexecuting any word of it, so the injected command fires whether or not the\nsurrounding rm errors out. An intermediate string processor in the handler\nwalk (recorded at fcn.00079060) rewrites carriage returns and line feeds to\nspaces and performs no other transformation, so no downstream mitigation\nexists: the dollar sign, pipe, ampersand and every other metacharacter pass\nuntouched. Two gates sit ahead of the validator, a 255-character length cap\non the name and a value gate on the companion NewUpdate element, and both\nare compatible with the payload, which is under 30 characters.\n\nExecution identity. system() and popen() children inherit the identity of\nthe web stack that calls them, and the research record identifies, from the\nfirmware image's own lighttpd configuration, the server's configured\nruntime user as root, so command text supplied through this handler\ninherits device-root authority by product configuration. The dynamic\nverification measured exactly that identity in a sink-level replication:\nmarkers carrying uid=0(root) gid=0(root) groups=0(root) from all three\nvectors, and none from a benign control name.\n\nAuthentication, credited plainly. This is not an unauthenticated finding\nand no unauthenticated variant of it is claimed. The gate is identified from\nthe artifacts as the administrative SOAP login bound to the requesting\nstation's MAC address, failing closed; the chain consumes a legitimate\nadministrator session and neither bypasses nor forges it. It is also not a\ndefault-credential finding: the same request succeeds whatever the\nadministrator password is. No second web-account tier with reach into this\nservice exists in any artifact examined, which is what fixes Privileges\nRequired at High. The product gets the gate right and the argument\nconstruction wrong; this is a CWE-78/CWE-20 defect, not CWE-306 and not\nCWE-862.\n\nWhy this handler and not a hundred others. The DNI framework also contains\nan exec helper (recorded at fcn.000779f0) that runs commands through\nvfork() plus execve() with an argument vector, architecturally immune to\nshell injection, and large parts of the firmware use it. A census of the\nshell-mediated remainder classified on the order of 150+ system() sites,\nalmost all of them fixed string constants loaded by address arithmetic with\nno substitution, and about 54 popen() sites. The app-installation handler\nis the single family in the analysed image that interpolates an\nattacker-controlled SOAP argument into a shell command line, so the defect\nis one handler rather than a platform-wide sloppy pattern.\n\nThe sibling platform. The same root cause was confirmed on the NETGEAR\nR7800 (Nighthawk X4S), firmware V1.0.2.68: a different SoC generation\n(Broadcom BCM4709), a different instruction set (32-bit ARM), a different\nhandler binary (recorded digest beginning c5a9f2b3) and a different\nvalidator function whose reject set is only the double quote, the single\nquote and the backslash, which is strictly more permissive than the main\nmodel's six. The identical x$(cmd) payload passed that validator and\nexecuted through the same handler family in that platform's own sink-level\nreplication, with three root markers of its own and a clean control. The\nmerge is argued at the level of root cause, not build identity, and the\nplatform differences are stated rather than smoothed over. Other models\nshipping this framework's app-system code were not audited, and the vendor's\nolder R6700/R7000/R8000 generation runs a different self-built httpd lineage\nthat does not contain this handler, so no claim is made about it.\n\nVerification boundary, stated in full, because it defines what is and is not\nbeing claimed. No physical router was driven during verification and no\nlive SOAP request was fired at device hardware, at any point, in any phase\nof this work. The request path, the session gate and the parameter\nextraction are established at disassembly level from the shipped image. The\ninjection behaviour at the sink is established by a sink-level replication:\non an isolated cloud-hosted sandbox, a natively compiled C program\nre-implemented the disassembled validator logic, the CRLF-normalising string\nprocessor and all three command constructions, run with the root privilege\nmodel the image's lighttpd configuration records for the web stack. Three\nvectors, one per sink, each carrying x$(id>/tmp/<marker>) through the\nreplicated validator and construction, each produced a marker containing\nuid=0(root) gid=0(root) groups=0(root); a benign control name traversing\nthe identical code path produced none. The control is the load-bearing\nnegative: it makes the marker creation attributable to the substitution\ncontent alone, not to the surrounding construction or the harness. Not\nperformed and not claimed: any end-to-end HTTP round trip against device\nhardware, any cross-station or cross-network detonation, any persistence\nmechanism, any radio-firmware or hardware-adjacent effect, and any memory\ncorruption. There is none in the chain, which is metacharacter-class gap\nand nothing else. The landing-identity mapping rests on the image's own\nconfiguration artifact read as text, not on a live-device observation.\n\nScoring. One score is published: 6.8 Medium,\nCVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. The arithmetic is printed so\nany reader can reproduce it under the CVSS 3.1 base algorithm and its\nround-up-to-the-tenth rule: ISS = 1 - (0.44 x 0.44 x 0.44) = 0.914816;\nImpact for Scope Unchanged = 6.42 x 0.914816 = 5.873119; Exploitability =\n8.22 x 0.62 (adjacent) x 0.77 x 0.27 x 0.85 = 0.900610; sum = 6.773729;\nRoundup = 6.8. Attack Vector is Adjacent because the SOAP control plane\nbelongs to the router's local administrative service and no shipped\nartifact examined establishes that the action answers on the wide-area side\nof an unmodified deployment; the reading is argued from the product's\ntransport and the recovered session model, not demonstrated between two\nhosts.\n\nTwo alternative readings are published, each labelled. A conditional\nreading at 7.2 High (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, from\nExploitability 1.234708 and sum 7.107827) applies where the management\nplane is deliberately exposed beyond the adjacent network, by enabled\nremote administration, by a port forward directed at the SOAP responder, or\nby a management relay; it is conditional on a deployment choice this\nresearch did not measure, and it is not the headline. Two further readings\nare published as rejected with their arithmetic: a hypothetical\nlower-privilege web tier at PR:L computes to 8.8 with AV:N (Exploitability\n2.835255, sum 8.708374) and to 8.0 with AV:A, and both are rejected because\nthe app-installation control plane is administrator-only on this firmware\nand no artifact documents a secondary account class with web access to this\nservice, so no principal exists to justify Low privileges.\n\nOne correction to the researchers' own record is published rather than\nquietly made. The internal research ledger behind this advisory carried 8.8\nfor this chain. Recomputation rejects it: 8.8 is the arithmetic of the same\nimpact profile read at Low privilege, and the documented chain requires the\ndevice administrator, so no vector supported by this evidence computes to\nthe recorded figure. The published score is 6.8, computed from the vector,\nwith the discrepancy recorded in the advisory rather than silently\noverwritten, because a number that was quietly changed is a number nobody\ndownstream can audit. Correcting it lowered the published figure.\n\nImpact. Command execution as the root-configured web stack, from a position\nof an administrator credential the holder was never meant to convert into an\noperating-system shell. Concretely: the complete configuration store\nincluding credentials retained by the firmware; creation or modification of\naccounts, startup scripts and scheduled tasks within the writable\nfilesystem; reconfiguration of interfaces, routes and the DNS resolver the\nLAN depends on; redirection or observation of LAN traffic according to the\nplatform's own capabilities, turning the network's chokepoint device into an\ninterior attack position; and degradation of service at will, including\nthrough the very rm -rf constructions this chain lives in. The chain is\nsilent in product terms: one authenticated POST inside a legitimate\nmanagement action, with no log-relevant traffic pattern beyond ordinary\napp-management use. Persistence was not tested and is not claimed; what\nsurvives a factory reset or reflash was not tested and is not claimed.\n\nMitigation summary: replace the blocklist with an allowlist for the\napplication name, [A-Za-z0-9][A-Za-z0-9._-]* with the existing length cap;\nstop interpolating the name into shell command lines at all, implementing\ncleanup, directory creation and extraction with unlink(), mkdir() and\nargument-array execve()-family calls or the framework's own exec helper,\nwhich closes the class for every caller pattern rather than enumerating\ntoday's metacharacters; if a shell-based implementation must survive one\nrelease cycle, single-quote every interpolated value with literal\nsingle-quote escaping and assert post-construction that the compiled\ncommand contains no dollar sign, failing the request otherwise; drop\nweb-stack privileges so lighttpd and its CGI handlers run as a dedicated\nnon-root identity; patch the sibling model in the same pass, its validator\nbeing strictly more permissive, with one cross-model regression test\nsubmitting $(true) as an application name and asserting no shell-out; adopt\na build rule failing the release on any system() or popen() site that\ninterpolates request data, rather than another manual audit of on the order\nof 54 popen() sites in one binary; and for operators until a patch ships,\nkeep the manag"
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20",
"lang": "en",
"type": "CWE"
},
{
"cweId": "CWE-306",
"description": "CWE-306",
"lang": "en",
"type": "CWE"
},
{
"cweId": "CWE-426",
"description": "CWE-426",
"lang": "en",
"type": "CWE"
},
{
"cweId": "CWE-78",
"description": "CWE-78",
"lang": "en",
"type": "CWE"
},
{
"cweId": "CWE-862",
"description": "CWE-862",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-02T07:30:04Z",
"orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"shortName": "VULNARCHIVE"
},
"references": [
{
"tags": [
"technical-description",
"exploit"
],
"url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Oct/57"
},
{
"tags": [
"technical-description"
],
"url": "https://seclists.org/fulldisclosure/2026/Oct/57"
},
{
"url": "https://0day-rubbish.com"
},
{
"url": "https://0day-rubbish.com/blog/soap-installapp-apname-command-injection-root-rce"
},
{
"url": "https://github.com/Exploit-Garbage/0day-Rubbish"
},
{
"url": "https://nmap.org/mailman/listinfo/fulldisclosure"
},
{
"url": "https://seclists.org/fulldisclosure/"
}
],
"source": {
"defect": [
"https://seclists.org/fulldisclosure/2026/Oct/57"
],
"discovery": "EXTERNAL"
},
"title": "[0day-rubbish] NETGEAR RAX120 V1.2.5.18 authenticated SOAP InstallApp OS command injection to root-configured web-stack execution (6.8 Medium; conditionally 7.2 High with management exposure)",
"x_gcve": [
{
"recordType": "advisory",
"relationships": [],
"vulnId": "GCVE-1988-2026-0507",
"x_vulnarchive": {
"archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Oct/57",
"automated": true,
"contentSha256": "3775d80dede37755e77055c1feaf401d4676226713e2707af3c2b8df6e4b3b6d",
"evidenceScore": 11,
"messageId": "",
"originalUrl": "https://seclists.org/fulldisclosure/2026/Oct/57",
"policy": "vulnarchive-1",
"sourceFormat": "text/html",
"sourcePublishedAt": "2026-10-27T16:39:59Z"
}
}
]
}
},
"cveMetadata": {
"assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"assignerShortName": "VULNARCHIVE",
"datePublished": "2026-11-02T07:30:04Z",
"dateUpdated": "2026-11-02T07:30:04Z",
"state": "PUBLISHED",
"vulnId": "GCVE-1988-2026-0507"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}