Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-20200

CertificatePinner.java in OkHttp 3.x through 3.12.0 allows man-in-the-middle attackers to bypass certificate pinning by changing SSLContext and the boolean values while hooking the application. NOTE: This id is disputed because some parties don't consider this is a vulnerability. Their rationale can be found in https://github.com/square/okhttp/issues/4967

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-20200
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:43 UTC · Revision 1

Source evidence

CVE-2018-20200

core-osv · Original source

Published 18 Apr 2019, 19:29 UTC

CertificatePinner.java in OkHttp 3.x through 3.12.0 allows man-in-the-middle attackers to bypass certificate pinning by changing SSLContext and the boolean values while hooking the application. NOTE: This id is disputed because some parties don't consider this is a vulnerability. Their rationale can be found in https://github.com/square/okhttp/issues/4967

osv:CVE-2018-20200
Complete source record
{
  "id": "d358ff630b5d6e6d0d388d87e179a423ac962ded4e459735a7386f56428f16c3",
  "url": "https://osv.dev/vulnerability/CVE-2018-20200",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-20200",
    "summary": "CertificatePinner.java in OkHttp 3.x through 3.12.0 allows man-in-the-middle attackers to bypass certificate pinning by changing SSLContext and the boolean values while hooking the application. NOTE: This id is disputed because some parties don't consider this is a vulnerability. Their rationale can be found in https://github.com/square/okhttp/issues/4967",
    "evidence": "osv:CVE-2018-20200",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-20200",
      "aliases": [
        "CVE-2018-20200"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lysine-dev/okhttp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c9b812a4ab75bfbf1e1de439ee719fa700a592f1"
                },
                {
                  "last_affected": "7f63a35ab1a8344279d2e84e07884a45f45f0690"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:squareup:okhttp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "last_affected": "3.12.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "parent-3.12.0",
            "parent-3.10.0",
            "parent-3.9.1",
            "list",
            "parent-3.9.0",
            "parent-3.8.0",
            "parent-3.7.0",
            "parent-3.6.0",
            "parent-3.5.0",
            "parent-3.4.0",
            "parent-3.4.0-RC1",
            "parent-3.3.1",
            "parent-3.3.0",
            "parent-3.2.0",
            "parent-3.1.2",
            "parent-3.1.1",
            "parent-3.1.0",
            "parent-3.0.1",
            "parent-3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20200.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:25.812844193Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E",
        "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E",
        "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E",
        "https://lists.apache.org/thread.html/r0dd7ff197b2e3bdd80a0326587ca3d0c22e10d1dba17c769d6da7d7a%40%3Cuser.flink.apache.org%3E",
        "https://lists.apache.org/thread.html/r71100f23778d72fbd8be8baa6baffc159b9c4f3fae3db4826bdc8ab8%40%3Cissues.flink.apache.org%3E",
        "https://lists.apache.org/thread.html/r78bfce980843be61a55615a7680bbf7ac751a9b3515231eab2d32068%40%3Cissues.flink.apache.org%3E",
        "https://lists.apache.org/thread.html/rc436d58531754ac8fe20340044566518ea4dce66aeff9193356a225d%40%3Cissues.flink.apache.org%3E",
        "https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E",
        "https://lists.apache.org/thread.html/recce57e195fbdd856dcf1933c136a8a66d7b02e05e3580f44d75a640%40%3Cissues.flink.apache.org%3E",
        "https://lists.apache.org/thread.html/rfd1eed12ba2a5dff37229edd60fc84a25517815d848994146a15af91%40%3Cissues.flink.apache.org%3E",
        "https://square.github.io/okhttp/3.x/okhttp/",
        "https://github.com/square/okhttp/issues/4967",
        "https://github.com/square/okhttp/commits/master",
        "https://github.com/square/okhttp/releases",
        "https://cxsecurity.com/issue/WLB-2018120252"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-20200",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382557,
  "published_at": "2019-04-18T19:29:01.347+00:00"
}