{"id":74866,"date":"2025-09-14T14:10:46","date_gmt":"2025-09-14T14:10:46","guid":{"rendered":""},"modified":"2025-10-24T08:38:47","modified_gmt":"2025-10-24T14:38:47","slug":"cve-2025-58755-high-risk-vulnerability-in-monai-ai-toolkit-allowing-system-file-overwrite","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-58755-high-risk-vulnerability-in-monai-ai-toolkit-allowing-system-file-overwrite\/","title":{"rendered":"<strong>CVE-2025-58755: High-risk Vulnerability in MONAI AI Toolkit Allowing System File Overwrite<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The well-regarded MONAI AI Toolkit, widely used for healthcare imaging, has recently been revealed to contain a significant security vulnerability. This vulnerability, identified as CVE-2025-58755, allows malicious actors to manipulate the project&#8217;s handling of Zip files to overwrite system files, potentially leading to a full system compromise or data leakage. This issue affects all versions of MONAI up to and including version 1.5.0. As this toolkit is commonly used in healthcare settings, the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-8067-udisks-daemon-vulnerability-leading-to-potential-system-compromise-or-data-leakage\/\"  data-wpil-monitor-id=\"85708\">potential impact on patient data<\/a> security is of serious concern.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-58755<br \/>\nSeverity: High (8.8 CVSS Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: Required<br \/>\nImpact: Overwriting of <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2022-45134-critical-vulnerability-in-mahara-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"82861\">system files leading to potential<\/a> system compromise and data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-4019009122\" 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>MONAI AI Toolkit | Up to and including version 1.5.0<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-9779-totolink-a702r-buffer-overflow-vulnerability-in-the-function-sub-4162dc\/\"  data-wpil-monitor-id=\"85136\">vulnerability stems from the extractall function<\/a>, `zip_file.extractall(output_dir)`, used directly to process compressed files. It is used in many places in the project. A malicious actor could create a Zip file with malicious content, and when this file is decompressed using the extractall function, it overwrites <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-59352-critical-vulnerability-in-dragonfly-file-distribution-system-leading-to-potential-remote-code-execution-rce\/\"  data-wpil-monitor-id=\"90791\">system files<\/a>. The vulnerability&#8217;s exploitation is further amplified by the fact that the project <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-35115-critical-system-package-download-vulnerability-in-agiloft-release-28\/\"  data-wpil-monitor-id=\"85289\">allows<\/a> the download of the zip content through a link.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-107543480\" 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>Below is a conceptual example of how the vulnerability might be exploited, using pseudocode:<\/p>\n<pre><code class=\"\" data-line=\"\"># Create a malicious zip file\nzip_file = ZipFile(&quot;malicious.zip&quot;, &quot;w&quot;)\nzip_file.write(&quot;system_file_to_overwrite&quot;, arcname=&quot;\/overwriting_file&quot;)\n# The malicious zip file is sent to the server running MONAI.\n# When the server decompresses the zip file, it overwrites the system file.\nzip_file.extractall(&quot;\/path\/to\/extract\/directory&quot;)<\/code><\/pre>\n<p>This pseudocode demonstrates how a malicious Zip <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-43596-insecure-file-system-permissions-vulnerability-in-msp360-backup-8-0\/\"  data-wpil-monitor-id=\"91401\">file could be created and used to overwrite crucial system<\/a> files when the extractall function is used.<\/p>\n<p><strong>Mitigation Guidance<\/strong><\/p>\n<p>As of the time of publication, no known fixed <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46715-kernel-pointer-vulnerability-in-sandboxie-versions-prior-to-1-15-12\/\"  data-wpil-monitor-id=\"82805\">versions are available for this vulnerability<\/a> in the MONAI AI Toolkit. Until such a solution is provided, users are encouraged to apply a vendor patch if available, or use a Web Application Firewall (WAF) or Intrusion Detection System (IDS) as temporary mitigation strategies. Users should also exercise caution when downloading and decompressing Zip <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-9693-arbitrary-file-deletion-vulnerability-in-user-meta-user-profile-builder-plugin-for-wordpress\/\"  data-wpil-monitor-id=\"90568\">files<\/a>, particularly from untrusted sources. Regular <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54742-data-deserialization-vulnerability-in-wpevently-leading-to-possible-system-compromise\/\"  data-wpil-monitor-id=\"86375\">system backups and data<\/a> encryption can further help to mitigate potential damage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The well-regarded MONAI AI Toolkit, widely used for healthcare imaging, has recently been revealed to contain a significant security vulnerability. This vulnerability, identified as CVE-2025-58755, allows malicious actors to manipulate the project&#8217;s handling of Zip files to overwrite system files, potentially leading to a full system compromise or data leakage. This issue affects all [&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":[],"product":[],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-74866","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/74866","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=74866"}],"version-history":[{"count":9,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/74866\/revisions"}],"predecessor-version":[{"id":84507,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/74866\/revisions\/84507"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=74866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=74866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=74866"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=74866"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=74866"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=74866"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=74866"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=74866"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=74866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}