{"id":53935,"date":"2025-06-21T16:09:21","date_gmt":"2025-06-21T16:09:21","guid":{"rendered":""},"modified":"2025-09-03T09:05:21","modified_gmt":"2025-09-03T15:05:21","slug":"cve-2025-47164-code-execution-vulnerability-in-microsoft-office-via-use-after-free-error","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-47164-code-execution-vulnerability-in-microsoft-office-via-use-after-free-error\/","title":{"rendered":"<strong>CVE-2025-47164: Code Execution Vulnerability in Microsoft Office via Use After Free Error<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>In the ever-evolving landscape of cybersecurity, vulnerabilities often emerge that compromise the security of systems, leading to potential data leakage or system compromise. One such vulnerability is the CVE-2025-47164, which affects users of Microsoft Office. This <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-24770-critical-php-local-file-inclusion-vulnerability-in-bzotheme-craftxtore\/\"  data-wpil-monitor-id=\"60243\">vulnerability allows unauthorized attackers to execute code locally<\/a>, thereby causing a potential threat to user data. Given the widespread use of <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47172-sql-injection-vulnerability-in-microsoft-office-sharepoint\/\"  data-wpil-monitor-id=\"61105\">Microsoft Office<\/a> globally, this vulnerability creates a significant risk that needs immediate attention and mitigation.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-47164<br \/>\nSeverity: High (8.4\/10 on CVSS v3.0 Severity Scale)<br \/>\nAttack Vector: Local<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: Required<br \/>\nImpact: Unauthorized code execution <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5901-buffer-overflow-vulnerability-in-totolink-t10-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"60535\">leading to potential system<\/a> compromise or data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-476669475\" 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-47167-microsoft-office-type-confusion-vulnerability-leading-to-unauthorized-local-code-execution\/\"  data-wpil-monitor-id=\"61754\">Microsoft Office<\/a> | All versions prior to the vendor patch<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The exploit works by taking advantage of the Use After Free <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47166-critical-deserialization-vulnerability-in-microsoft-office-sharepoint\/\"  data-wpil-monitor-id=\"61083\">vulnerability in Microsoft Office<\/a>. In essence, a Use After Free condition is a type of <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49709-critical-memory-corruption-vulnerability-in-firefox\/\"  data-wpil-monitor-id=\"60938\">memory corruption<\/a> flaw that can be leveraged by attackers to execute arbitrary code. This <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-43592-a-critical-access-of-uninitialized-pointer-vulnerability-in-indesign-desktop\/\"  data-wpil-monitor-id=\"78224\">vulnerability arises when a program continues to use a pointer<\/a> after it has been freed, causing an application to behave unpredictably. In this case, an attacker who successfully exploits this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-48123-critical-code-injection-vulnerability-in-holest-engineering-spreadsheet-price-changer-for-woocommerce-and-wp-e-commerce-light\/\"  data-wpil-monitor-id=\"60270\">vulnerability could run arbitrary code<\/a> in the context of the current user, leading to unauthorized system access or data leakage.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2933090566\" 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>A conceptual example of how this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49526-out-of-bounds-write-vulnerability-in-illustrator-leading-to-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"75139\">vulnerability might be exploited is illustrated<\/a> below:<\/p>\n<pre><code class=\"\" data-line=\"\">\/\/ A simple C program to demonstrate use after free vulnerability\n#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\nint main(void)\n{\n\/\/ Allocating memory to p\nint* p = malloc(10 * sizeof(int));\n\/\/ Freeing p\nfree(p);\n\/\/ Accessing a memory location after free\nprintf(&quot;%d\\n&quot;, *(p+2));\nreturn 0;\n}<\/code><\/pre>\n<p>In this example, we are <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46713-buffer-overflow-vulnerability-in-sandboxie-s-memory-allocation-subsystem\/\"  data-wpil-monitor-id=\"68577\">allocating memory<\/a> to a pointer `p` and then freeing it. However, after freeing `p`, we are again trying to access a memory location associated with it. This is the core of the Use After Free vulnerability, and in the context of Microsoft Office, an attacker could manipulate such a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-48140-code-injection-vulnerability-in-metalpriceapi\/\"  data-wpil-monitor-id=\"60341\">vulnerability to execute arbitrary code<\/a>.<br \/>\nTo protect your <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-40912-critical-vulnerability-in-cryptx-for-perl-allows-potential-system-compromise\/\"  data-wpil-monitor-id=\"60939\">system from this vulnerability<\/a>, apply the vendor patch provided by Microsoft, or use a Web Application Firewall (WAF) or Intrusion Detection System (IDS) as a temporary mitigation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In the ever-evolving landscape of cybersecurity, vulnerabilities often emerge that compromise the security of systems, leading to potential data leakage or system compromise. One such vulnerability is the CVE-2025-47164, which affects users of Microsoft Office. This vulnerability allows unauthorized attackers to execute code locally, thereby causing a potential threat to user data. Given the [&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":[82],"product":[],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-53935","post","type-post","status-publish","format-standard","hentry","category-uncategorized","vendor-microsoft"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/53935","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=53935"}],"version-history":[{"count":11,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/53935\/revisions"}],"predecessor-version":[{"id":70599,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/53935\/revisions\/70599"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=53935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=53935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=53935"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=53935"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=53935"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=53935"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=53935"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=53935"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=53935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}