CVE-2024-34063: Vodozemac Vodozemac Has Degraded Secret Zeroization Vulnerability

LOW
Advisory Identifier: GHSA-c3hm-hxwf-g5c6
CVSS 2.5
CWE-1188
Published
Advisory Summary

CVE-2024-34063 is a LOW (CVSS 2.5) vodozemac has degraded secret zeroization vulnerability (CWE-1188: Initialization of a Resource with an Insecure Default) affecting Vodozemac libraries in the crates.io ecosystem. The issue involves vodozemac has degraded secret zeroization capabilities. Remediation is available by upgrading affected packages to version 0.6.0.

CVE-2024-34063 at a Glance

CVE Identifier CVE-2024-34063
GHSA Identifier GHSA-c3hm-hxwf-g5c6
Severity LOW
CVSS v3.1 Base Score 2.5
CWE Classification CWE-1188: Initialization of a Resource with an Insecure Default
Affected Product Vodozemac
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 2.5

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

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

How to Fix CVE-2024-34063

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

vodozemac fixed: 0.6.0
Upgrade vodozemac 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 vodozemac

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-34063, inspect your project dependencies for Vodozemac:

inspect dependencies for vodozemac

Analyze the terminal output to locate any version of Vodozemac 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 CWE-1188: Initialization of a Resource with an Insecure Default, where the product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure. In Vodozemac, 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

Versions 0.5.0 and 0.5.1 of vodozemac have degraded secret zeroization capabilities, due to changes in third-party cryptographic dependencies (the Dalek crates), which moved secret zeroization capabilities behind a feature flag while vodozemac disabled the default feature set. ### Impact The degraded zeroization capabilities could result in the production of more memory copies of encryption secrets and secrets could linger in memory longer than necessary. This marginally increases the risk of sensitive data exposure. Overall, we consider the impact of this issue to be low. Although cryptographic best practices recommend the clearing of sensitive information from memory once it's no longer needed, the inherent limitations of Rust regarding absolute zeroization reduce the practical severity of this lapse. ### Patches The patch is in commit https://github.com/matrix-org/vodozemac/pull/130/commits/297548cad4016ce448c4b5007c54db7ee39489d9. ### Workarounds None. ### For more information If you have any questions or comments about this advisory please email us at [security at matrix.org](mailto:security@matrix.org).

CVE-2024-34063 Affected Vodozemac Versions

1 component(s)
Fixed Versions:
0.6.0
Product / Package Ecosystem Affected Versions Fixed Version
vodozemac
crates.io
≥ 0.5.0
< 0.6.0
0.6.0

References

Frequently Asked Questions

What is CVE-2024-34063?
CVE-2024-34063 is a security vulnerability in Vodozemac involving vodozemac has degraded secret zeroization capabilities under CWE-1188: Initialization of a Resource with an Insecure Default.
Which Vodozemac versions are affected?
Affected versions include releases prior to 0.6.0 across affected packages: vodozemac.
What version fixes CVE-2024-34063?
Upgrading to 0.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vodozemac affected?
Yes, vodozemac is affected in releases prior to 0.6.0. Upgrade your dependency to 0.6.0 or later.
What is the CVSS score of CVE-2024-34063?
CVE-2024-34063 has a CVSS v3.1 base score of 2.5 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-34063?
CVE-2024-34063 is classified under CWE-1188: Initialization of a Resource with an Insecure Default (The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.).
How can I check crates.io dependencies for CVE-2024-34063?
Run the dependency tree command: 'inspect dependencies for vodozemac'. 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-c3hm-hxwf-g5c6",
  "modified" : "2024-05-20T15:34:44Z",
  "published" : "2024-05-03T19:34:07Z",
  "aliases" : [ "CVE-2024-34063" ],
  "summary" : "vodozemac has degraded secret zeroization capabilities",
  "details" : "Versions 0.5.0 and 0.5.1 of vodozemac have degraded secret zeroization capabilities, due to changes in third-party cryptographic dependencies (the Dalek crates), which moved secret zeroization capabilities behind a feature flag while vodozemac disabled the default feature set.\n\n### Impact\nThe degraded zeroization capabilities could result in the production of more memory copies of encryption secrets and secrets could linger in memory longer than necessary. This marginally increases the risk of sensitive data exposure.\n\nOverall, we consider the impact of this issue to be low. Although cryptographic best practices recommend the clearing of sensitive information from memory once it's no longer needed, the inherent limitations of Rust regarding absolute zeroization reduce the practical severity of this lapse.\n\n### Patches\nThe patch is in commit https://github.com/matrix-org/vodozemac/pull/130/commits/297548cad4016ce448c4b5007c54db7ee39489d9.\n\n### Workarounds\nNone.\n\n### For more information\nIf you have any questions or comments about this advisory please email us at [security at matrix.org](mailto:security@matrix.org).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "vodozemac"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.5.0"
      }, {
        "fixed" : "0.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/matrix-org/vodozemac/security/advisories/GHSA-c3hm-hxwf-g5c6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34063"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/matrix-org/vodozemac/commit/297548cad4016ce448c4b5007c54db7ee39489d9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/matrix-org/vodozemac"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0342.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1188" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-03T19:34:07Z",
    "nvd_published_at" : "2024-05-03T10:15:08Z"
  }
}