{"id":1608,"date":"2025-01-29T10:10:00","date_gmt":"2025-01-29T10:10:00","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/01\/29\/critical-cacti-vulnerability-let-attackers-code-remotely-poc-released\/"},"modified":"2025-01-29T10:10:00","modified_gmt":"2025-01-29T10:10:00","slug":"critical-cacti-vulnerability-let-attackers-code-remotely-poc-released","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/01\/29\/critical-cacti-vulnerability-let-attackers-code-remotely-poc-released\/","title":{"rendered":"Critical Cacti Vulnerability Let Attackers Code Remotely \u2013 PoC Released"},"content":{"rendered":"<p>    Critical Cacti Vulnerability Let Attackers Code Remotely \u2013 PoC Released<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>The widely used open-source network monitoring tool, Cacti, identified a critical vulnerability.\u00a0The flaw, tracked as CVE-2025-22604 has a CVSS score of 9.1, indicating high severity.\u00a0<\/p>\n<p>It allows authenticated users with device management permissions to <a href=\"https:\/\/cybersecuritynews.com\/ibm-security-verify-vulnerabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">execute arbitrary commands<\/a> on the server, posing significant risks to data integrity and system security.<\/p>\n<h2 class=\"wp-block-heading\">\n<strong>Cacti RCE Vulnerability<\/strong>  <\/h2>\n<p>According to security researcher u32i, the vulnerability stems from a flaw in Cacti\u2019s multi-line <a href=\"https:\/\/cybersecuritynews.com\/cisco-ios-snmp-implementation-flaw\/\" target=\"_blank\" rel=\"noreferrer noopener\">SNMP<\/a> (Simple Network Management Protocol) result parser. Specifically, authenticated users can inject malformed Object Identifiers (OIDs) into SNMP responses.\u00a0<\/p>\n<p>These malformed OIDs are processed by functions such as ss_net_snmp_disk_io() and ss_net_snmp_disk_bytes(). During processing, parts of the OIDs are used as keys in an array that is later incorporated into a shell command. This improper handling creates an <a href=\"https:\/\/cybersecuritynews.com\/poc-exploit-palo-alto-command-injection\/\" target=\"_blank\" rel=\"noreferrer noopener\">OS Command Injection vulnerability<\/a>.<\/p>\n<p>The issue originates in the cacti_snmp_walk() function, which uses exec_into_array() to execute commands and parse multi-line SNMP results into arrays. While the values are filtered during parsing, the OIDs themselves are not sanitized.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 93%,rgb(169,184,195) 100%)\"><strong>Are you from SOC\/DFIR Teams? \u2013\u00a0Analyse Malware Files &amp; Links with ANY.RUN Sandox -&gt;\u00a0<a href=\"https:\/\/any.run\/demo\/?utm_source=li_csn&amp;utm_medium=post&amp;utm_campaign=video_meme&amp;utm_content=demo&amp;utm_term=270125\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Try for Free<\/a><\/strong><\/p>\n<p>If a line lacks a valid OID, its content is appended to the previous OID\u2019s value without filtering. This oversight enables attackers to craft malicious payloads.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Proof of Concept (PoC)<\/strong><\/h2>\n<p>A proof-of-concept (PoC) exploit has been publicly released, demonstrating how attackers can leverage this vulnerability:<\/p>\n<ul class=\"wp-block-list\">\n<li>Start an SNMP agent configured to send a crafted payload.<\/li>\n<li>Modify the \u201cLocal <a href=\"https:\/\/cybersecuritynews.com\/linux-ransomware\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux Machine<\/a>\u201d device port in Cacti to point to the attacker\u2019s SNMP agent.<\/li>\n<li>Add the \u201cNet-SNMP \u2013 Combined SCSI Disk I\/O\u201d graph template to the device.<\/li>\n<li>Navigate to the graph tree, select \u201cLocal Linux Machine,\u201d and click \u201cview in real-time\u201d for the \u201cCombined SCSI Disk I\/O\u201d graph.<\/li>\n<li>The exploit allows attackers to inject commands via malformed OIDs, bypassing Cacti\u2019s attempt to quote JSON-encoded data before passing it to a shell.<\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXejkdNy7zzW-yzDoST-aO-U-hoq8TVOSpB4IbQaqstOxIWWK5PYPJuaxixc_RT-kVSF5d-X53FlGcmbHPGLv-QtOAOaAQARo5qokorg573Ys5LL2_wsyxc0EintYoV-YI_5ekJKpA?key=03yjAZGFriFED57Ypi5AFCBt\" alt=\"\"><figcaption class=\"wp-element-caption\">Proof-of-concept (PoC) exploit\u00a0<\/figcaption><\/figure>\n<\/div>\n<p>Successful exploitation grants attackers the ability to:<\/p>\n<ul class=\"wp-block-list\">\n<li>Execute arbitrary code on the server.<\/li>\n<li>Access, modify, or delete sensitive data.<\/li>\n<li>Compromise system integrity and availability.<\/li>\n<\/ul>\n<p>This vulnerability is particularly dangerous because it requires only authenticated access with device management permissions, making it exploitable by malicious insiders or attackers who gain access credentials through phishing or other means.<\/p>\n<p>Users are strongly <a href=\"https:\/\/github.com\/Cacti\/cacti\/security\/advisories\/GHSA-c5j8-jxj3-hh36\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">advised to upgrade<\/a> to version 1.2.29 or later, where this issue has been patched.<\/p>\n<p>CVE-2025-22604 highlights the critical importance of input validation and secure coding practices in network management tools like Cacti.<\/p>\n<p>Organizations using Cacti should act immediately to patch their systems and implement robust security measures to prevent exploitation of this vulnerability.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><strong><strong>Integrating Application Security into Your CI\/CD Workflows Using Jenkins &amp; Jira -&gt;\u00a0<a href=\"https:\/\/webinars.indusface.com\/agile-security-workflows-devsecops-hacks-for-ci-cd-pipeline\/register?utm_source=gbhackers-blog-cta&amp;utm_campaign=2025-jan-webinar-agile-security&amp;utm_medium=referral\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Free Webinar<\/a><\/strong><\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/cacti-vulnerability-let-attackers-code-remotely\/\">Critical Cacti Vulnerability Let Attackers Code Remotely \u2013 PoC Released<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Kaaviya Ragupathy<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/cacti-vulnerability-let-attackers-code-remotely\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Critical Cacti Vulnerability Let Attackers Code Remotely \u2013 PoC Released The widely used open-source network monitoring tool, Cacti, identified a critical vulnerability.\u00a0The flaw, tracked as CVE-2025-22604 has a CVSS score of 9.1, indicating high severity.\u00a0 It allows authenticated users with device management permissions to execute arbitrary commands on the server, posing significant risks to data [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,652,131],"tags":[130],"class_list":["post-1608","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-security-news","category-vulnerability","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1608"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=1608"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1608\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=1608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=1608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=1608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}