REDHAT-BUG-2468126: Medium severity go-git go-git vulnerability

Published May 8, 2026
·
Updated

go-git is an extensible git implementation library written in pure Go. Prior to versions 5.18.0 and 6.0.0-alpha.2, go-git may leak HTTP authentication credentials when following redirects during smart-HTTP clone and fetch operations. This issue has been patched in versions 5.18.0 and 6.0.0-alpha.2.

Affected Software

1 affected component
go-git go-git<5.18.0, <6.0.0-alpha.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go-git to a version that resolves this vulnerability.

    Fixed in 5.18.0
  2. Upgrade

    Upgrade go-git to a version that resolves this vulnerability.

    Fixed in 6.0.0-alpha.2

Event History

May 8, 2026
Data Sourced
via Red Hat·02:05 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which operations are affected by this credential leak?

The issue affects smart-HTTP clone and fetch operations when go-git follows HTTP redirects. HTTP authentication credentials may be sent to the redirected destination.

2

What versions contain the fix?

The issue is patched in go-git version 5.18.0 and version 6.0.0-alpha.2. Versions prior to those releases are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203