GHSA-j57r-4qw6-58r3: Rusty paseto Rusty_paseto Vulnerable To Private Key Vulnerability

LOW
Published
Advisory Summary

GHSA-j57r-4qw6-58r3 is a LOW rusty_paseto vulnerable to private key vulnerability (General Security Weakness) affecting Rusty paseto libraries in the crates.io ecosystem. The issue involves rusty_paseto vulnerable to private key extraction due to ed25519-dalek dependency. Remediation is available by upgrading affected packages to version 0.6.0.

GHSA-j57r-4qw6-58r3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j57r-4qw6-58r3
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rusty paseto
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-j57r-4qw6-58r3

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

rusty-paseto fixed: 0.6.0
Upgrade rusty-paseto to 0.6.0
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 rusty-paseto

How to Check if You Are Affected

To determine whether your application is affected by GHSA-j57r-4qw6-58r3, inspect your project dependencies for Rusty paseto:

inspect dependencies for rusty-paseto

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

## Impact The vulnerability, known as RUSTSEC-2022-0093, impacts the `ed25519-dalek` crate, which is a dependency of the `rusty-paseto` crate. This issue arises from a "Double Public Key Signing Function Oracle Attack" affecting versions of `ed25519-dalek` prior to v2.0. These versions expose an unsafe API for serializing and deserializing 64-byte keypairs that include both private and public keys, creating potential for certain attacks. `d25519-dalek` users utilizing these serialization and deserialization functions directly could potentially be impacted. ## Patches The vulnerability within the `ed25519-dalek` crate has been addressed in version 2.0. `rusty-paseto` has addressed it in release v0.6.0. ## Workarounds Users are recommended to upgrade to v0.6.0 of `rusty-paseto`. However, users should still ensure that their key serialization and deserialization practices are secure and avoid any practices that could lead to key exposure. ## References More information about RUSTSEC-2022-0093 can be found in the [RustSec Advisory Database](https://rustsec.org/advisories/RUSTSEC-2022-0093.html). Updates and details regarding the upcoming release of `rusty-paseto` will be documented in the project's [releases](https://github.com/your-repo/rusty-paseto/releases) and [changelog](https://github.com/your-repo/rusty-paseto/blob/main/CHANGELOG.md). This issue was first reported by Dependabot on 2023-08-15. The source was reviewed by @rrrodzilla at that time and a determination was made that the vulnerability low harm to existing users due to the strongly typed nature of keys provided by the rusty-paseto API. @techport-om reported the vulnerability to the repository by discovering during a `cargo-audit` run on 2023-11-05 and opened [issue 28](https://github.com/rrrodzilla/rusty_paseto/issues/28). This advisory was created at that time to notify existing users.

GHSA-j57r-4qw6-58r3 Affected Rusty paseto Versions

1 component(s)
Fixed Versions:
0.6.0
Product / Package Ecosystem Affected Versions Fixed Version
rusty-paseto
crates.io
< 0.6.0
0.6.0

References

Frequently Asked Questions

What is GHSA-j57r-4qw6-58r3?
GHSA-j57r-4qw6-58r3 is a security vulnerability in Rusty paseto involving rusty_paseto vulnerable to private key extraction due to ed25519-dalek dependency under General Security Weakness.
Which Rusty paseto versions are affected?
Affected versions include releases prior to 0.6.0 across affected packages: rusty-paseto.
What version fixes GHSA-j57r-4qw6-58r3?
Upgrading to 0.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rusty-paseto affected?
Yes, rusty-paseto is affected in releases prior to 0.6.0. Upgrade your dependency to 0.6.0 or later.
What CWE is associated with GHSA-j57r-4qw6-58r3?
GHSA-j57r-4qw6-58r3 is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-j57r-4qw6-58r3?
Run the dependency tree command: 'inspect dependencies for rusty-paseto'. 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-j57r-4qw6-58r3",
  "modified" : "2023-11-07T23:44:25Z",
  "published" : "2023-11-07T23:44:25Z",
  "aliases" : [ ],
  "summary" : "rusty_paseto vulnerable to private key extraction due to ed25519-dalek dependency",
  "details" : "## Impact\n\nThe vulnerability, known as RUSTSEC-2022-0093, impacts the `ed25519-dalek` crate, which is a dependency of the `rusty-paseto` crate. This issue arises from a \"Double Public Key Signing Function Oracle Attack\" affecting versions of `ed25519-dalek` prior to v2.0. These versions expose an unsafe API for serializing and deserializing 64-byte keypairs that include both private and public keys, creating potential for certain attacks. `d25519-dalek` users utilizing these serialization and deserialization functions directly could potentially be impacted. \n\n## Patches\n\nThe vulnerability within the `ed25519-dalek` crate has been addressed in version 2.0. `rusty-paseto` has addressed it in release v0.6.0. \n\n## Workarounds\n\nUsers are recommended to upgrade to v0.6.0 of `rusty-paseto`. However, users should still ensure that their key serialization and deserialization practices are secure and avoid any practices that could lead to key exposure.\n\n## References\n\nMore information about RUSTSEC-2022-0093 can be found in the [RustSec Advisory Database](https://rustsec.org/advisories/RUSTSEC-2022-0093.html). Updates and details regarding the upcoming release of `rusty-paseto` will be documented in the project's [releases](https://github.com/your-repo/rusty-paseto/releases) and [changelog](https://github.com/your-repo/rusty-paseto/blob/main/CHANGELOG.md).  This issue was first reported by Dependabot on 2023-08-15. The source was reviewed by @rrrodzilla at that time and a determination was made that the vulnerability low harm to existing users due to the strongly typed nature of keys provided by the rusty-paseto API. @techport-om reported the vulnerability to the repository by discovering during a `cargo-audit` run on 2023-11-05 and opened [issue 28](https://github.com/rrrodzilla/rusty_paseto/issues/28). This advisory was created at that time to notify existing users.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rusty-paseto"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.5.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rrrodzilla/rusty_paseto/security/advisories/GHSA-j57r-4qw6-58r3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rrrodzilla/rusty_paseto/commit/42718c1b757c1dfabb80621f2f48b8268f7fa24e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rrrodzilla/rusty_paseto"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rrrodzilla/rusty_paseto/releases/tag/v0.6.0"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0093.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-07T23:44:25Z",
    "nvd_published_at" : null
  }
}