GHSA-xphf-cx8h-7q9g: `openssl` `X509StoreRef :objects` Is Unsound Vulnerability

MODERATE
Published
Advisory Summary

GHSA-xphf-cx8h-7q9g is a MODERATE :objects` is unsound vulnerability (General Security Weakness) affecting `openssl` `X509StoreRef libraries in the crates.io ecosystem. The issue involves :objects` is unsound. Remediation is available by upgrading affected packages to version 0.10.60.

GHSA-xphf-cx8h-7q9g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xphf-cx8h-7q9g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product `openssl` `X509StoreRef
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-xphf-cx8h-7q9g

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

openssl fixed: 0.10.60
Upgrade openssl to 0.10.60
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 openssl

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xphf-cx8h-7q9g, inspect your project dependencies for `openssl` `X509StoreRef:

inspect dependencies for openssl

Analyze the terminal output to locate any version of `openssl` `X509StoreRef in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.60), 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 General Security Weakness. In `openssl` `X509StoreRef, 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

This function returned a reference into an OpenSSL datastructure, but there was no way to ensure OpenSSL would not mutate the datastructure behind one's back. Use of this function should be replaced with `X509StoreRef::all_certificates`.

GHSA-xphf-cx8h-7q9g Affected `openssl` `X509StoreRef Versions

1 component(s)
Fixed Versions:
0.10.60
Product / Package Ecosystem Affected Versions Fixed Version
openssl
crates.io
≥ 0.10.29
< 0.10.60
0.10.60

References

Frequently Asked Questions

What is GHSA-xphf-cx8h-7q9g?
GHSA-xphf-cx8h-7q9g is a security vulnerability in `openssl` `X509StoreRef involving :objects` is unsound under General Security Weakness.
Which `openssl` `X509StoreRef versions are affected?
Affected versions include releases prior to 0.10.60 across affected packages: openssl.
What version fixes GHSA-xphf-cx8h-7q9g?
Upgrading to 0.10.60 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openssl affected?
Yes, openssl is affected in releases prior to 0.10.60. Upgrade your dependency to 0.10.60 or later.
What CWE is associated with GHSA-xphf-cx8h-7q9g?
GHSA-xphf-cx8h-7q9g is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-xphf-cx8h-7q9g?
Run the dependency tree command: 'inspect dependencies for openssl'. 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-xphf-cx8h-7q9g",
  "modified" : "2023-11-28T20:51:08Z",
  "published" : "2023-11-28T20:51:08Z",
  "aliases" : [ ],
  "summary" : "`openssl` `X509StoreRef::objects` is unsound",
  "details" : "This function returned a reference into an OpenSSL datastructure, but there was no way to ensure OpenSSL would not mutate the datastructure behind one's back.\n\nUse of this function should be replaced with `X509StoreRef::all_certificates`.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "openssl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.29"
      }, {
        "fixed" : "0.10.60"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sfackler/rust-openssl/issues/2096"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sfackler/rust-openssl/commit/cf9681a55cabd4cb9f1475bde17b5079f2a0384e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sfackler/rust-openssl"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2023-0072.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-28T20:51:08Z",
    "nvd_published_at" : null
  }
}