High [CVE-2026-76218] Remote Code Execution via malicious Git hooks
This high-severity Red Hat Linux advisory covers CVE-2026-76218 affecting Red Hat Satellite 6.19 for RHEL 9, Red Hat Ansible Automation Platform 2.5, Red Hat Ansible Automation Platform 2.6.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published Record updated
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Summary
GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.
A flaw was found in GitPython. This vulnerability allows a remote attacker to achieve arbitrary code execution.
By supplying a specially crafted template parameter to the `Repo.init` function, an attacker can point to a directory containing malicious Git hooks.
Red Hat products that bundle GitPython use it as an internal build/automation-time dependency and do not expose the Repo.init template/options parameters to adversary-controlled input; the vulnerable parameter cannot be controlled by an attacker in these products, so they are marked not affected.
GitPython as shipped in Red Hat OpenStack Platform 16.2 and 17.1 contains the vulnerable library code and retains its affected determination. Red Hat severity: Important — CVSS 7.5 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
Weakness: CWE-94.
Affected products named by the advisory: Red Hat Satellite 6.19 for RHEL 9; Red Hat Ansible Automation Platform 2.5; Red Hat Ansible Automation Platform 2.6; Red Hat Ansible Automation Platform 2.7; and 1 more.
- < 3.1.58
Official advisory · high-confidence parse· fetched 14 days ago·verify at source
- python3.12-gitpython-0:3.1.59-1.el9pc
- ansible-automation-platform-25/controller-rhel8:1789607021
- ansible-automation-platform-26/controller-rhel9:1789673739
- ansible-automation-platform-27/controller-rhel9:1789580684
- satellite/iop-vmaas-rhel9:1789611858
- satellite/iop-vulnerability-engine-rhel9:1789637082
- satellite/iop-vulnerability-engine-rhel9:1789607605
- satellite/iop-vmaas-rhel9:1789611998
- RHSA-2026:63385
- RHSA-2026:71210
- RHSA-2026:71179
- RHSA-2026:71177
- RHSA-2026:68764
- RHSA-2026:68771
- RHSA-2026:68776
- RHSA-2026:68780
Official advisory · high-confidence parse· fetched 14 days ago·verify at source
Mitigation checklist
- Do not pass untrusted or attacker-influenced input as the template parameter (or other forwarded options) to GitPython's Repo.init. Upgrade to GitPython 3.1.58 or later, where the unsafe option forwarding is fixed.
Official advisory · high-confidence parse· fetched 14 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.