{"id":59493,"date":"2025-07-19T15:00:43","date_gmt":"2025-07-19T15:00:43","guid":{"rendered":""},"modified":"2025-10-21T04:13:15","modified_gmt":"2025-10-21T10:13:15","slug":"cve-2025-46835-high-risk-vulnerability-in-git-gui-allows-unauthorized-file-overwrite","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-46835-high-risk-vulnerability-in-git-gui-allows-unauthorized-file-overwrite\/","title":{"rendered":"<strong>CVE-2025-46835: High-Risk Vulnerability in Git GUI Allows Unauthorized File Overwrite<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>In the dynamic world of cybersecurity, the discovery of a high-risk vulnerability in the popular source control management tool, Git GUI, raises serious concerns for users and administrators alike. This vulnerability, identified as CVE-2025-46835, poses a significant threat to any user who clones untrusted repositories and can lead to potential system compromise or data leakage.<br \/>\nThe vulnerability affects a wide range of users due to the widespread use of <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5243-critical-security-vulnerability-in-smg-software-information-portal\/\"  data-wpil-monitor-id=\"68003\">Git GUI<\/a> in software development. Being a tool that <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-50738-memos-application-vulnerability-allows-for-unauthorized-user-information-disclosure\/\"  data-wpil-monitor-id=\"69596\">allows developers to interact with Git via a Graphical User<\/a> Interface, the implications of this vulnerability are far-reaching, affecting individual developers, large software development teams, and organizations that rely on Git for version control.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-46835<br \/>\nSeverity: High-Risk (CVSS: 8.5)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: Required<br \/>\nImpact: System Compromise, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-53495-unauthorized-access-data-leakage-in-wikimedia-foundation-mediawiki-abusefilter-extension\/\"  data-wpil-monitor-id=\"72524\">Data Leakage<\/a><\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-1554302286\" 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-46334-critical-vulnerability-in-git-gui-enables-potential-system-compromise\/\"  data-wpil-monitor-id=\"70706\">Git GUI<\/a> | Prior to 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, 2.50.1<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The vulnerability lies within the functionality of <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52808-a-critical-php-remote-file-inclusion-vulnerability-in-realtyelite\/\"  data-wpil-monitor-id=\"65886\">Git GUI that allows users to edit files<\/a> within the repository. When a user is tricked into cloning an untrusted repository and editing a file located in a maliciously named directory, Git GUI can create and overwrite <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-40738-critical-arbitrary-file-write-vulnerability-in-sinec-nms\/\"  data-wpil-monitor-id=\"66563\">files for which the user has write<\/a> permission. By exploiting this vulnerability, an attacker can <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-53964-critical-file-manipulation-vulnerability-in-goldendict\/\"  data-wpil-monitor-id=\"67147\">manipulate the file<\/a> system on the user&#8217;s machine, potentially leading to system compromise or data leakage.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-1465060787\" 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 is a conceptual example of how the vulnerability might be exploited. An attacker could create a malicious repository with a specially crafted directory and file:<\/p>\n<pre><code class=\"\" data-line=\"\">mkdir ..\/..\/..\/tmp\/exploit\necho &quot;malicious code&quot; &gt; ..\/..\/..\/tmp\/exploit\/exploit.txt\ngit add .\ngit commit -m &quot;CVE-2025-46835 exploit&quot;<\/code><\/pre>\n<p>An unsuspecting user could then clone this repository and be tricked into editing the `exploit.txt` <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=\"90577\">file<\/a>. Git GUI would then <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-55345-arbitrary-file-overwrite-and-remote-code-execution-vulnerability-in-codex-cli\/\"  data-wpil-monitor-id=\"76795\">overwrite the file<\/a> at `\/tmp\/exploit\/exploit.txt` with the contents of the edited file.<\/p>\n<p><strong>Mitigation<\/strong><\/p>\n<p>To mitigate this vulnerability, users are strongly advised to update Git GUI to the latest patched versions: 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, or 2.50.1. If updating is not immediately possible, using a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can provide temporary mitigation. Additionally, users should be wary of cloning untrusted repositories and editing files within them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In the dynamic world of cybersecurity, the discovery of a high-risk vulnerability in the popular source control management tool, Git GUI, raises serious concerns for users and administrators alike. This vulnerability, identified as CVE-2025-46835, poses a significant threat to any user who clones untrusted repositories and can lead to potential system compromise or data [&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-59493","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\/59493","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=59493"}],"version-history":[{"count":9,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59493\/revisions"}],"predecessor-version":[{"id":83521,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59493\/revisions\/83521"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=59493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=59493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=59493"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=59493"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=59493"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=59493"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=59493"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=59493"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=59493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}