GHSA-hrjv-pf36-jpmr: Oqs Oqs's Post-Quantum Key Encapsulation Mechanism Vulnerability

MODERATE
Published
Advisory Summary

GHSA-hrjv-pf36-jpmr is a MODERATE oqs's post-quantum key encapsulation mechanism vulnerability (General Security Weakness) affecting Oqs libraries in the crates.io ecosystem. The issue involves oqs's post-quantum key encapsulation mechanism sike broken. Remediation is available by upgrading affected packages to version 0.7.2.

GHSA-hrjv-pf36-jpmr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hrjv-pf36-jpmr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Oqs
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-hrjv-pf36-jpmr

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

oqs fixed: 0.7.2
Upgrade oqs to 0.7.2
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 oqs

How to Check if You Are Affected

To determine whether your application is affected by GHSA-hrjv-pf36-jpmr, inspect your project dependencies for Oqs:

inspect dependencies for oqs

Analyze the terminal output to locate any version of Oqs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.2), 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 Oqs, 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

Wouter Castryck and Thomas Decru presented an efficient key recovery attack on the SIDH protocol. As a result, the secret key of SIKEp751 can be recovered in a matter of hours. The SIKE and SIDH schemes will be removed from oqs 0.7.2. [An efficient key recovery attack on SIDH (preliminary version)](https://eprint.iacr.org/2022/975)

GHSA-hrjv-pf36-jpmr Affected Oqs Versions

1 component(s)
Fixed Versions:
0.7.2
Product / Package Ecosystem Affected Versions Fixed Version
oqs
crates.io
< 0.7.2
0.7.2

References

Frequently Asked Questions

What is GHSA-hrjv-pf36-jpmr?
GHSA-hrjv-pf36-jpmr is a security vulnerability in Oqs involving oqs's Post-Quantum Key Encapsulation Mechanism SIKE broken under General Security Weakness.
Which Oqs versions are affected?
Affected versions include releases prior to 0.7.2 across affected packages: oqs.
What version fixes GHSA-hrjv-pf36-jpmr?
Upgrading to 0.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is oqs affected?
Yes, oqs is affected in releases prior to 0.7.2. Upgrade your dependency to 0.7.2 or later.
What CWE is associated with GHSA-hrjv-pf36-jpmr?
GHSA-hrjv-pf36-jpmr is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-hrjv-pf36-jpmr?
Run the dependency tree command: 'inspect dependencies for oqs'. 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-hrjv-pf36-jpmr",
  "modified" : "2022-08-18T19:01:15Z",
  "published" : "2022-08-18T19:01:15Z",
  "aliases" : [ ],
  "summary" : "oqs's Post-Quantum Key Encapsulation Mechanism SIKE broken",
  "details" : "Wouter Castryck and Thomas Decru presented an efficient key recovery attack on the SIDH protocol.\nAs a result, the secret key of SIKEp751 can be recovered in a matter of hours.\nThe SIKE and SIDH schemes will be removed from oqs 0.7.2.\n\n[An efficient key recovery attack on SIDH (preliminary version)](https://eprint.iacr.org/2022/975)\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "oqs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/open-quantum-safe/liboqs-rust/pull/151"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/open-quantum-safe/liboqs-rust"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0045.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-18T19:01:15Z",
    "nvd_published_at" : null
  }
}