CVE-2025-68398
Python vulnerability analysis and mitigation

Overview

CVE-2025-68398 is a Git configuration file overwrite vulnerability in Weblate, a web-based localization tool, that can lead to remote code execution (RCE). It affects all Weblate versions prior to 5.15.1 and was disclosed on December 18, 2025, following responsible disclosure by security researcher Jason Marcello (secjson). The vulnerability carries a CVSS v3.1 base score of 9.1 (Critical) per the GitHub Security Advisory, though the Feedly intelligence data notes a score of 9.1 with no privileges required under a different vector interpretation (GitHub Advisory).

Technical details

The vulnerability stems from improper input validation (CWE-20) and path traversal weaknesses (CWE-22, CWE-434) in Weblate's file handling logic. Specifically, Weblate failed to restrict filenames that could resolve to sensitive paths such as .git/config, allowing an attacker with administrative privileges to upload or specify a file path that overwrites the repository's Git configuration file. Two patches were applied: PR #17330 added validation in weblate/utils/validators.py to reject filenames starting with directories on the translation-finder blacklist (e.g., .git, .svn), and PR #17345 switched to using GIT_SSH_COMMAND environment variable to prevent external Git configuration from overriding Weblate's SSH behavior (GitHub Advisory, PR #17330, PR #17345). By overwriting .git/config, an attacker could inject malicious Git hooks or redirect SSH commands, ultimately achieving remote code execution on the server.

Impact

Successful exploitation allows a high-privileged attacker to overwrite the Git configuration of repositories managed by Weblate, enabling them to inject malicious Git hooks (e.g., core.sshCommand, core.fsmonitor) that execute arbitrary commands on the server. This results in full compromise of confidentiality, integrity, and availability of the affected Weblate instance and its underlying repositories. Organizations relying on Weblate for continuous localization workflows face risks including unauthorized code injection into translation repositories, lateral movement to connected version control systems, and potential supply chain impact (GitHub Advisory, Weblate Release).

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.0015 (0.15%), indicating a low current probability of exploitation in the wild. The vulnerability requires high-privilege (administrative) access to Weblate, which limits the attack surface compared to unauthenticated vulnerabilities. The CVE has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog as of the time of this report.

Exploitation steps

  1. Reconnaissance: Identify internet-facing Weblate instances running versions prior to 5.15.1 using search engines or Shodan, and obtain or compromise administrative credentials.
  2. Access administrative interface: Log in to the Weblate admin panel with high-privilege credentials.
  3. Craft malicious file path: Prepare a translation file upload or component configuration that specifies a filename resolving to .git/config (e.g., using path traversal sequences or directly targeting the .git directory path).
  4. Overwrite Git configuration: Submit the crafted request to Weblate's file handling endpoint, causing the application to write attacker-controlled content to the repository's .git/config file.
  5. Inject malicious Git hook or SSH command: Embed a malicious directive in the overwritten config, such as core.sshCommand pointing to an attacker-controlled binary, or core.fsmonitor set to execute a reverse shell payload.
  6. Trigger execution: Initiate a Git operation (e.g., push, pull, fetch) within Weblate that causes Git to read the modified configuration and execute the injected command, achieving RCE as the Weblate service account (GitHub Advisory, PR #17330, PR #17345).

Indicators of compromise

  • File System: Unexpected modifications to .git/config files within Weblate-managed repositories, particularly changes to core.sshCommand, core.fsmonitor, or filter directives; presence of unusual scripts or binaries referenced in Git config entries.
  • Logs: Weblate application logs showing file upload or component configuration requests with paths containing .git/, .svn/, or other VCS metadata directories; Django request logs with suspicious filename parameters.
  • Process: Unexpected child processes spawned by the Weblate service account (e.g., reverse shells, curl, wget, bash) following Git operations; unusual SSH connections originating from the Weblate server.
  • Network: Outbound connections from the Weblate server to unknown external IPs following Git push/pull operations; unexpected SSH sessions initiated by the Weblate process user.

Mitigation and workarounds

Upgrade Weblate to version 5.15.1 or later, which includes two security fixes: filename validation rejecting paths starting with VCS metadata directories (.git, .svn, etc.) and use of GIT_SSH_COMMAND to prevent external Git configuration from overriding Weblate's SSH behavior (Weblate Release, GitHub Advisory). As interim measures, restrict administrative access to trusted users only, audit recent component and file configuration changes, and monitor Git repository configurations for unauthorized modifications. No configuration-only workaround is available that fully mitigates the vulnerability without upgrading.

Community reactions

The vulnerability was covered by The Hacker Wire, which highlighted the RCE risk posed by the Git configuration overwrite flaw (The Hacker Wire). The CISA vulnerability bulletin for the week of December 15, 2025 included this CVE in its summary. Community discussion was observed on Mastodon (infosec.exchange) and Bluesky, with security aggregators such as CIRCL and offseq also noting the advisory. Red Hat tracked the vulnerability as well, indicating broader ecosystem awareness (Red Hat).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026
CVE-2026-55468MEDIUM4.3
  • Python logoPython
  • wagtail
NoYesAug 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management