CVE-2017-18588: Security framework Improper Certificate Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-jqqr-c2r2-9cvr
CVSS 5.3
CWE-295
Published
Advisory Summary

CVE-2017-18588 is a MODERATE (CVSS 5.3) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Security framework libraries in the crates.io ecosystem. The issue involves improper certificate validation in security-framework. Remediation is available by upgrading affected packages to version 0.1.12.

CVE-2017-18588 at a Glance

CVE Identifier CVE-2017-18588
GHSA Identifier GHSA-jqqr-c2r2-9cvr
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Security framework
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2017-18588

To remediate this vulnerability, upgrade all affected Security framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

security-framework fixed: 0.1.12
Upgrade security-framework to 0.1.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for security-framework

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-18588, inspect your project dependencies for Security framework:

inspect dependencies for security-framework

Analyze the terminal output to locate any version of Security framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.12), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Security framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

If custom root certificates were registered with a ClientBuilder, the hostname of the target server would not be validated against its presented leaf certificate. This issue was fixed by properly configuring the trust evaluation logic to perform that check.

CVE-2017-18588 Affected Security framework Versions

1 component(s)
Fixed Versions:
0.1.12
Product / Package Ecosystem Affected Versions Fixed Version
security-framework
crates.io
< 0.1.12
0.1.12

References

Frequently Asked Questions

What is CVE-2017-18588?
CVE-2017-18588 is a security vulnerability in Security framework involving Improper Certificate Validation in security-framework under CWE-295: Improper Certificate Validation.
Which Security framework versions are affected?
Affected versions include releases prior to 0.1.12 across affected packages: security-framework.
What version fixes CVE-2017-18588?
Upgrading to 0.1.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is security-framework affected?
Yes, security-framework is affected in releases prior to 0.1.12. Upgrade your dependency to 0.1.12 or later.
What is the CVSS score of CVE-2017-18588?
CVE-2017-18588 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2017-18588?
CVE-2017-18588 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check crates.io dependencies for CVE-2017-18588?
Run the dependency tree command: 'inspect dependencies for security-framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jqqr-c2r2-9cvr",
  "modified" : "2023-06-13T20:37:16Z",
  "published" : "2021-08-25T20:42:59Z",
  "aliases" : [ "CVE-2017-18588" ],
  "summary" : "Improper Certificate Validation in security-framework",
  "details" : "If custom root certificates were registered with a ClientBuilder, the hostname of the target server would not be validated against its presented leaf certificate. This issue was fixed by properly configuring the trust evaluation logic to perform that check.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "security-framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-18588"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sfackler/rust-security-framework/pull/27"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sfackler/rust-security-framework"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2017-0003.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-08-19T21:25:26Z",
    "nvd_published_at" : null
  }
}