Skip to main content
CVE-2026-110859VulnerabilityPublished

tern · GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of

Affects ternSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-110859· High 8.7

Not known to be exploited · CVSS 8.7 High.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Homebrewternpkg:brew/ternOther threatsAffected
  • >=2.12.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should upgrade GitPython to a version later than 3.1.62 once an official fix is released. Until patched, avoid cloning untrusted repositories or performing checkout operations on branches controlled by untrusted sources. Monitor the vendor advisory for updates. The vulnerability is due to incomplete sanitization of positional arguments in Head.checkout(), so patching will require applying the same positional argument checks as done for other similar methods.

Description

GitPython versions up to 3.1.62 contain a vulnerability in the Head.checkout() method where an attacker-controlled branch name can be used to perform an arbitrary file read. This occurs because the branch name is passed as a positional argument to git checkout without proper sanitization or argument separation, allowing injection of git options like --pathspec-from-file. The flaw was incompletely fixed in prior advisories, leaving Head.checkout vulnerable. An attacker who can cause the application to clone a repository they control can exploit this to read any file accessible by the application process, with no authentication or privileges required.

References

Community reviews

Loading reviews…