GHSA-h864-m8vm-3xvj: Oqs Oqs's Post-Quantum Signature Scheme Rainbow Vulnerability

HIGH
Published
Advisory Summary

GHSA-h864-m8vm-3xvj is a HIGH oqs's post-quantum signature scheme rainbow vulnerability (General Security Weakness) affecting Oqs libraries in the crates.io ecosystem. The issue involves oqs's post-quantum signature scheme rainbow level i parametersets broken. Remediation is available by upgrading affected packages to version 0.7.2.

GHSA-h864-m8vm-3xvj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h864-m8vm-3xvj
Severity HIGH
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-h864-m8vm-3xvj

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-h864-m8vm-3xvj, 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

Ward Beullens found a practical key-recovery attack against Rainbow. The level I parametersets are removed from liboqs starting from version `0.7.2`. Find the scientific details in [Breaking Rainbow Takes a Weekend on a Laptop](https://eprint.iacr.org/2022/214). This means all the `oqs::sig::Algorithm::RainbowI*` variants are insecure.

GHSA-h864-m8vm-3xvj 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-h864-m8vm-3xvj?
GHSA-h864-m8vm-3xvj is a security vulnerability in Oqs involving oqs's Post-Quantum Signature scheme Rainbow level I parametersets 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-h864-m8vm-3xvj?
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-h864-m8vm-3xvj?
GHSA-h864-m8vm-3xvj is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-h864-m8vm-3xvj?
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-h864-m8vm-3xvj",
  "modified" : "2022-08-18T19:06:39Z",
  "published" : "2022-08-18T19:06:39Z",
  "aliases" : [ ],
  "summary" : "oqs's Post-Quantum Signature scheme Rainbow level I parametersets broken",
  "details" : "Ward Beullens found a practical key-recovery attack against Rainbow.\nThe level I parametersets are removed from liboqs starting from version `0.7.2`.\nFind the scientific details in [Breaking Rainbow Takes a Weekend on a Laptop](https://eprint.iacr.org/2022/214).\n\nThis means all the `oqs::sig::Algorithm::RainbowI*` variants are insecure.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "oqs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/open-quantum-safe/liboqs-rust"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/KFgw5_qCXiI?pli=1"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0047.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-18T19:06:39Z",
    "nvd_published_at" : null
  }
}