Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-18187

In ARM mbed TLS before 2.7.0, there is a bounds-check bypass through an integer overflow in PSK identity parsing in the ssl_parse_client_psk_identity() function in library/ssl_srv.c.

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

Source evidence

CVE-2017-18187

core-osv · Original source

Published 14 Feb 2018, 17:29 UTC

In ARM mbed TLS before 2.7.0, there is a bounds-check bypass through an integer overflow in PSK identity parsing in the ssl_parse_client_psk_identity() function in library/ssl_srv.c.

osv:CVE-2017-18187
Complete source record
{
  "id": "6abbdcbd93e23819fe833494d2380c451e6c2e65c342885b4709acdcfbad0495",
  "url": "https://osv.dev/vulnerability/CVE-2017-18187",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-18187",
    "summary": "In ARM mbed TLS before 2.7.0, there is a bounds-check bypass through an integer overflow in PSK identity parsing in the ssl_parse_client_psk_identity() function in library/ssl_srv.c.",
    "evidence": "osv:CVE-2017-18187",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2017-18187",
      "aliases": [
        "CVE-2017-18187"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/Mbed-TLS/mbedtls",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "32605dc83042d737e715a685e53176388d73540e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.7.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mbedtls-2.7.0-rc1",
            "mbedtls-2.6.0",
            "mbedtls-2.6.0-rc1",
            "mbedtls-2.5.1",
            "mbedtls-2.5.0",
            "mbedtls-2.4.0",
            "mbedtls-2.2.1",
            "yotta-2.3.1",
            "mbedtls-2.3.0",
            "mbedtls-2.2.0",
            "mbedos-release-15-11",
            "mbedos-techcon-oob2",
            "mbedtls-2.1.2",
            "mbedtls-2.1.0",
            "mbedtls-2.1.1",
            "beta-oob-2",
            "mbedtls-2.0.0",
            "polarssl-1.3.9",
            "polarssl-1.3.8",
            "polarssl-1.3.7",
            "polarssl-1.3.6",
            "polarssl-1.3.5",
            "polarssl-1.3.4",
            "polarssl-1.3.3",
            "polarssl-1.3.2",
            "polarssl-1.3.1",
            "polarssl-1.3.0",
            "polarssl-1.3.0-rc0",
            "polarssl-1.2.6",
            "polarssl-1.2.5",
            "polarssl-1.2.4",
            "polarssl-1.2.2",
            "polarssl-1.2.1",
            "polarssl-1.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-18187.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/mbed-tls/mbedtls",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "83c9f495ffe70c7dd280b41fdfd4881485a3bc28"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "83c9f495ffe70c7dd280b41fdfd4881485a3bc28"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mbedtls-2.5.0",
            "mbedtls-2.4.0",
            "mbedtls-2.2.1",
            "yotta-2.3.1",
            "mbedtls-2.3.0",
            "mbedtls-2.2.0",
            "mbedos-release-15-11",
            "mbedos-techcon-oob2",
            "mbedtls-2.1.2",
            "mbedtls-2.1.0",
            "mbedtls-2.1.1",
            "beta-oob-2",
            "mbedtls-2.0.0",
            "polarssl-1.3.9",
            "polarssl-1.3.8",
            "polarssl-1.3.7",
            "polarssl-1.3.6",
            "polarssl-1.3.5",
            "polarssl-1.3.4",
            "polarssl-1.3.3",
            "polarssl-1.3.2",
            "polarssl-1.3.1",
            "polarssl-1.3.0",
            "polarssl-1.3.0-rc0",
            "polarssl-1.2.6",
            "polarssl-1.2.5",
            "polarssl-1.2.4",
            "polarssl-1.2.2",
            "polarssl-1.2.1",
            "polarssl-1.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-18187.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-18187-2d89a41b",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "146705795122806448969502256052171142492",
                    "250739608582514144555358197331282491043",
                    "138311258465109895060410760846872072497",
                    "226521422758386904350980188820999931980",
                    "166683699188758028603646729933607871728",
                    "135889021735654070488482182026670372764",
                    "179663835056930844441641430651641120248",
                    "26630778509266565837874525009607955193"
                  ]
                },
                "source": "https://github.com/mbed-tls/mbedtls/commit/83c9f495ffe70c7dd280b41fdfd4881485a3bc28",
                "target": {
                  "file": "library/ssl_srv.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-18187-601b0b25",
                "digest": {
                  "length": 1429,
                  "function_hash": "121718152799964170990906735473705715749"
                },
                "source": "https://github.com/mbed-tls/mbedtls/commit/83c9f495ffe70c7dd280b41fdfd4881485a3bc28",
                "target": {
                  "file": "library/ssl_srv.c",
                  "function": "ssl_parse_client_psk_identity"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:21:17Z"
          }
        }
      ],
      "modified": "2026-10-20T13:21:17.071927151Z",
      "provider": "osv",
      "references": [
        "https://usn.ubuntu.com/4267-1/",
        "https://github.com/ARMmbed/mbedtls/blob/master/ChangeLog",
        "https://security.gentoo.org/glsa/201804-19",
        "https://www.debian.org/security/2018/dsa-4138",
        "https://www.debian.org/security/2018/dsa-4147",
        "https://github.com/ARMmbed/mbedtls/commit/83c9f495ffe70c7dd280b41fdfd4881485a3bc28"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-18187",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387557,
  "published_at": "2018-02-14T17:29:00.237+00:00"
}