{"id":36613,"date":"2025-05-09T07:52:28","date_gmt":"2025-05-09T07:52:28","guid":{"rendered":""},"modified":"2025-06-13T17:21:47","modified_gmt":"2025-06-13T23:21:47","slug":"cve-2025-46625-root-shell-access-exploit-in-tenda-rx2-pro-router","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-46625-root-shell-access-exploit-in-tenda-rx2-pro-router\/","title":{"rendered":"<strong>CVE-2025-46625: Root Shell Access Exploit in Tenda RX2 Pro Router<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The CVE-2025-46625 vulnerability poses a significant risk to owners of the Tenda RX2 Pro routers, specifically those using the 16.03.30.14 version. The vulnerability, which lies in the &#8216;setLanCfg&#8217; API endpoint in httpd, can be exploited by remote attackers who have been authorized to the web management portal.<br \/>\nThe gravity of this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-23180-a-critical-vulnerability-allowing-execution-with-unnecessary-privileges\/\"  data-wpil-monitor-id=\"41568\">vulnerability is significant as it allows<\/a> an attacker to gain root shell access by sending a crafted web request to the device. This could potentially <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-24351-remote-logging-vulnerability-in-ctrlx-os-can-lead-to-root-level-system-compromise\/\"  data-wpil-monitor-id=\"42197\">lead to system<\/a> compromise or data leakage, posing a significant risk to user privacy and network security.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-46625<br \/>\nSeverity: High (8.8 CVSS Severity Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: Required<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32974-critical-vulnerability-in-xwiki-s-rights-analysis-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"42796\">System compromise and potential<\/a> data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-956236355\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p><a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46633-cleartext-transmission-of-sensitive-information-in-tenda-rx2-pro\/\"  data-wpil-monitor-id=\"42794\">Tenda RX2<\/a> Pro | 16.03.30.14<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The exploit works by taking advantage of a lack of input validation\/sanitization in the &#8216;setLanCfg&#8217; <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-3260-security-vulnerability-in-grafana-api-endpoints-leading-to-permission-bypass\/\"  data-wpil-monitor-id=\"57687\">API endpoint<\/a> in httpd. An attacker who has <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46274-unauthenticated-access-to-managed-database-through-hard-coded-credentials-in-uni-nms-lite\/\"  data-wpil-monitor-id=\"41394\">access to the web management<\/a> portal of the Tenda RX2 Pro router sends a specially crafted web request to the device. This request takes advantage of the API endpoint&#8217;s lack of input validation to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-35959-command-injection-vulnerability-in-gtkwave-3-3-115\/\"  data-wpil-monitor-id=\"41591\">inject commands<\/a> directly into the device&#8217;s configuration.<br \/>\nBecause the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46272-command-injection-vulnerability-in-wgs-80hpt-v2-and-wgs-4215-8t2s\/\"  data-wpil-monitor-id=\"41597\">injected commands<\/a> are saved in the device&#8217;s configuration, they persist even after the device is restarted. This allows the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2021-47663-unauthenticated-remote-attacker-gaining-full-access-due-to-improper-json-web-tokens-implementation\/\"  data-wpil-monitor-id=\"41611\">attacker to maintain root shell access<\/a> to the device, potentially leading to a complete system compromise.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-118360684\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>Here&#8217;s an example of a malicious HTTP <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-1305-cross-site-request-forgery-csrf-vulnerability-in-newsblogger-wordpress-theme\/\"  data-wpil-monitor-id=\"42795\">request an attacker might send to exploit this vulnerability<\/a>:<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/api\/setLanCfg HTTP\/1.1\nHost: target.router.com\nContent-Type: application\/json\n{\n&quot;lanCfg&quot;: &quot;; rm -rf \/; #&quot;\n}<\/code><\/pre>\n<p>In this example, the attacker sends an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-4829-critical-buffer-overflow-vulnerability-in-totolink-http-post-request-handler\/\"  data-wpil-monitor-id=\"57688\">HTTP POST request<\/a> to the &#8216;setLanCfg&#8217; API endpoint. The attacker uses the lack of input validation to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-35960-os-command-injection-vulnerabilities-in-gtkwave-s-decompression-functionality\/\"  data-wpil-monitor-id=\"41731\">inject a command<\/a> (`rm -rf \/; #`) into the device&#8217;s configuration. This command would, in theory, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-3404-wordpress-download-manager-arbitrary-file-deletion-vulnerability\/\"  data-wpil-monitor-id=\"41702\">delete all files<\/a> on the device, illustrating the severity of the potential impact of this vulnerability.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The CVE-2025-46625 vulnerability poses a significant risk to owners of the Tenda RX2 Pro routers, specifically those using the 16.03.30.14 version. The vulnerability, which lies in the &#8216;setLanCfg&#8217; API endpoint in httpd, can be exploited by remote attackers who have been authorized to the web management portal. The gravity of this vulnerability is significant [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[103],"product":[104],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-36613","post","type-post","status-publish","format-standard","hentry","category-uncategorized","vendor-apache","product-apache-httpd"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/36613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=36613"}],"version-history":[{"count":10,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/36613\/revisions"}],"predecessor-version":[{"id":51489,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/36613\/revisions\/51489"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=36613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=36613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=36613"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=36613"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=36613"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=36613"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=36613"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=36613"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=36613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}