CVE-2013-0308: Input Validation

Published Feb 11, 2013
·
Updated

A security flaw was found in the way git-imap-send command (tool to send a collection of patches from stdin to an IMAP folder) of Git performed IMAP server's SSL x509.v3 certificate validation (server's hostname was previously not verified to match the CN field of the particular certificate). A rogue server could use this flaw to conduct man-in-the-middle (MiTM) attacks, possibly leading to disclosure of sensitive information.

References: [1] https://www.kernel.org/pub/software/scm/git/docs/git-imap-send.html [2] https://github.com/git/git/blob/master/imap-send.c#L233

Other sources

The imap-send command in GIT before 1.8.1.4 does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.

MITRE

Affected Software

1 affected component
git-scm Git<=1.8.1.3

Event History

Feb 11, 2013
Data Sourced
03:09 PM
DescriptionSeverityAffected Software
Mar 8, 2013
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2013-0308?

CVE-2013-0308 has a medium severity rating due to the potential for man-in-the-middle attacks.

2

How do I fix CVE-2013-0308?

To fix CVE-2013-0308, upgrade to Git version 1.8.2 or later, where the issue has been resolved.

3

What systems are affected by CVE-2013-0308?

CVE-2013-0308 affects Git versions up to and including 1.8.1.3.

4

What does CVE-2013-0308 affect in Git?

CVE-2013-0308 affects the git-imap-send command's ability to properly validate SSL x509.v3 certificates.

5

Is there a workaround for CVE-2013-0308?

While the best solution is to upgrade, users can avoid the issue by using alternative methods for sending patches until an upgrade is feasible.

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