Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-10130

The http_connect function in transports/http.c in libgit2 before 0.24.6 and 0.25.x before 0.25.1 might allow man-in-the-middle attackers to spoof servers by leveraging clobbering of the error variable.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-10130
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:09 UTC · Revision 1

Source evidence

CVE-2016-10130

core-osv · Original source

Published 24 Mar 2017, 15:59 UTC

The http_connect function in transports/http.c in libgit2 before 0.24.6 and 0.25.x before 0.25.1 might allow man-in-the-middle attackers to spoof servers by leveraging clobbering of the error variable.

osv:CVE-2016-10130
Complete source record
{
  "id": "6d1da9f55e6880e1d81ba7d1af8f1ccb0ff554d26286ef62d9f5ea53e48dc0dd",
  "url": "https://osv.dev/vulnerability/CVE-2016-10130",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-10130",
    "summary": "The http_connect function in transports/http.c in libgit2 before 0.24.6 and 0.25.x before 0.25.1 might allow man-in-the-middle attackers to spoof servers by leveraging clobbering of the error variable.",
    "evidence": "osv:CVE-2016-10130",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2016-10130",
      "aliases": [
        "CVE-2016-10130"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libgit2/libgit2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "428e18f8d4765b8ad6cf4022080a81ab16f6fdc4"
                },
                {
                  "introduced": "75db289a041b1f1084768244e167b953ac7eeaa5"
                },
                {
                  "last_affected": "a6763ff93aed9a1486c4f84d77151ff57dd4795e"
                },
                {
                  "fixed": "9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22"
                },
                {
                  "fixed": "b5c6a1b407b7f8b952bded2789593b68b1876211"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libgit2_project:libgit2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.24.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:libgit2_project:libgit2:0.25.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.25.0"
                      },
                      {
                        "last_affected": "0.25.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:libgit2_project:libgit2:0.25.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.25.0-rc2"
                      },
                      {
                        "last_affected": "0.25.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:libgit2_project:libgit2:0.25.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.25.0-rc1"
                      },
                      {
                        "last_affected": "0.25.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b5c6a1b407b7f8b952bded2789593b68b1876211"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.25.0",
            "0.25.0-rc1",
            "v0.25.0-rc2",
            "v0.25.0",
            "v0.24.5",
            "v0.24.0",
            "v0.24.3",
            "v0.25.0-rc1",
            "v0.24.2",
            "v0.24.1",
            "v0.24.0-rc1",
            "v0.23.0",
            "v0.23.0-rc2",
            "v0.23.0-rc1",
            "v0.22.0",
            "v0.22.0-rc2",
            "v0.22.0-rc1",
            "v0.21.0",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.8.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10130.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-10130-38834b57",
                "digest": {
                  "length": 1705,
                  "function_hash": "318247992408900916298322585007822052541"
                },
                "source": "https://github.com/libgit2/libgit2/commit/b5c6a1b407b7f8b952bded2789593b68b1876211",
                "target": {
                  "file": "src/transports/http.c",
                  "function": "http_connect"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-10130-bae22778",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "41661622924679872820485924092865500866",
                    "193636358063097759214999378978920200563",
                    "283241526558171429306071759488049258192",
                    "91166795071158107891136958663602337790",
                    "51273040654368137999328432674070513002",
                    "300264548954108489270359162159651110606",
                    "72503220256604289807738209762998253897",
                    "86526419933920457111589238345365215882"
                  ]
                },
                "source": "https://github.com/libgit2/libgit2/commit/b5c6a1b407b7f8b952bded2789593b68b1876211",
                "target": {
                  "file": "src/transports/http.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-10130-e6d14d99",
                "digest": {
                  "length": 1411,
                  "function_hash": "886347240987743745827901455911811629"
                },
                "source": "https://github.com/libgit2/libgit2/commit/9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22",
                "target": {
                  "file": "src/transports/http.c",
                  "function": "http_connect"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-10130-ebebf2dd",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "41661622924679872820485924092865500866",
                    "193636358063097759214999378978920200563",
                    "283241526558171429306071759488049258192",
                    "91166795071158107891136958663602337790",
                    "51273040654368137999328432674070513002",
                    "300264548954108489270359162159651110606",
                    "72503220256604289807738209762998253897",
                    "86526419933920457111589238345365215882"
                  ]
                },
                "source": "https://github.com/libgit2/libgit2/commit/9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22",
                "target": {
                  "file": "src/transports/http.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:13:29Z"
          }
        }
      ],
      "modified": "2026-10-20T13:13:29.902095613Z",
      "provider": "osv",
      "references": [
        "https://github.com/libgit2/libgit2/commit/9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22",
        "https://github.com/libgit2/libgit2/commit/b5c6a1b407b7f8b952bded2789593b68b1876211",
        "https://libgit2.github.com/security/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2016-10130",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387331,
  "published_at": "2017-03-24T15:59:00.263+00:00"
}