GoWorst: Critical4 advisories

gopkg.in/src-d/go-git.v4: known vulnerabilities

gopkg.in/src-d/go-git.v4 has 4 reviewed security advisories in the GitHub Advisory Database — 2 critical, 2 high. The most recent was published 2025-01-06. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the gopkg.in/src-d/go-git.v4 versions running across your servers, containers and images, and ranks what to patch first.

How to fix gopkg.in/src-d/go-git.v4

Upgrade gopkg.in/src-d/go-git.v4 to a release at or above the fixed version shown for each advisory below. For Go:

go get gopkg.in/src-d/go-git.v4@<fixed> && go mod tidy (check govulncheck)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (4)

go-git clients vulnerable to DoS via maliciously crafted Git server replies High 7.5 CWE-20 CWE-400 CWE-770 — Affected: 4.0.0 through 4.13.1. No fixed release is listed. Published 2025-01-06. GHSA-r9px-m959-cxf4 · CVE-2025-21614
go-git has an Argument Injection via the URL field Critical 9.8 CWE-88 — Affected: 4.0.0 through 4.13.1. No fixed release is listed. Published 2025-01-06. GHSA-v725-9546-7q7m · CVE-2025-21613
Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients Critical 9.8 CWE-22 — Affected: 4.0.0 through 4.13.1. No fixed release is listed. Published 2024-01-12. GHSA-449p-3h89-pw88 · CVE-2023-49569
Maliciously crafted Git server replies can cause DoS on go-git clients High 7.5 CWE-20 — Affected: 4.7.1 through 4.13.1. No fixed release is listed. Published 2024-01-12. GHSA-mw99-9chc-xw7r · CVE-2023-49568

Find gopkg.in/src-d/go-git.v4 across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.