CVE-2013-6422: Input Validation

Published Dec 23, 2013
·
Updated

The GnuTLS backend in libcurl 7.21.4 through 7.33.0, when disabling digital signature verification (CURLOPTSSLVERIFYPEER), also disables the CURLOPTSSLVERIFYHOST check for CN or SAN host name fields, which makes it easier for remote attackers to spoof servers and conduct man-in-the-middle (MITM) attacks.

Affected Software

23 affected components
Debian Debian Linux=7.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10
Canonical Ubuntu Linux=13.04
Canonical Ubuntu Linux=13.10
haxx libcurl=7.21.4
haxx libcurl=7.21.5
haxx libcurl=7.21.6
haxx libcurl=7.21.7
haxx libcurl=7.22.0
haxx libcurl=7.23.0
haxx libcurl=7.23.1
haxx libcurl=7.24.0
haxx libcurl=7.25.0
haxx libcurl=7.26.0
haxx libcurl=7.27.0
haxx libcurl=7.28.0
haxx libcurl=7.28.1
haxx libcurl=7.29.0
haxx libcurl=7.30.0
haxx libcurl=7.31.0
haxx libcurl=7.32.0
haxx libcurl=7.33.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Do not disable digital signature verification; ensure CURLOPT_SSL_VERIFYPEER is enabled to prevent the related GnuTLS behavior from also disabling the CURLOPT_SSL_VERIFYHOST hostname check (in affected versions 7.21.4 through 7.33.0).

    libcurl (GnuTLS backend) CURLOPT_SSL_VERIFYPEER = true
  2. Compensating control

    If you must run on affected libcurl versions (7.21.4 through 7.33.0), avoid MITM risk by not using settings that disable TLS verification (i.e., do not set CURLOPT_SSL_VERIFYPEER to disable verification), since this also makes it easier to spoof servers due to the hostname-check being disabled.

Event History

Dec 23, 2013
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
via NVD·10:55 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2013-6422?

CVE-2013-6422 is considered a high severity vulnerability due to the potential for man-in-the-middle attacks.

2

How do I fix CVE-2013-6422?

To fix CVE-2013-6422, it is recommended to upgrade to a version of libcurl later than 7.33.0.

3

Which versions of libcurl are affected by CVE-2013-6422?

CVE-2013-6422 affects libcurl versions from 7.21.4 to 7.33.0.

4

What impact does CVE-2013-6422 have on security?

CVE-2013-6422 allows remote attackers to spoof server identities, potentially leading to unauthorized access to sensitive information.

5

Is it safe to disable CURLOPT_SSL_VERIFYPEER due to CVE-2013-6422?

Disabling CURLOPT_SSL_VERIFYPEER is not safe with CVE-2013-6422 as it also disables critical hostname verification checks.

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