Arbitrary Code Injection Affecting mageai package, versions <0.9.80-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.41% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-MAGEAI-20843410
  • published13 Oct 2026
  • disclosed9 Sept 2026

Introduced: 9 Sep 2026

CVE-2026-87817  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Minimos:latest mageai to version 0.9.80-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mageai package and not the mageai package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.

CVSS Base Scores

version 3.1