GHSA-r2jw-c95q-rj29

Suggest an improvement
Source
https://github.com/advisories/GHSA-r2jw-c95q-rj29
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-r2jw-c95q-rj29/GHSA-r2jw-c95q-rj29.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r2jw-c95q-rj29
Aliases
Published
2024-10-02T06:30:26Z
Modified
2024-10-08T04:11:51.783273Z
Severity
  • 4.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
cocoon Reuses a Nonce, Key Pair in Encryption
Details

Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair in Encryption when the encrypt, wrap, and dump functions are sequentially called. An attacker can generate the same ciphertext by creating a new encrypted message with the same cocoon object.

Note: The issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.

Database specific
{
    "nvd_published_at": "2024-10-02T05:15:11Z",
    "cwe_ids": [
        "CWE-323"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-10-02T17:57:49Z"
}
References

Affected packages

crates.io / cocoon

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.0