Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1yMmp3LWM5NXEtcmoyOc4AA_6I

cocoon Reuses a Nonce, Key Pair in Encryption

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.

Permalink: https://github.com/advisories/GHSA-r2jw-c95q-rj29
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1yMmp3LWM5NXEtcmoyOc4AA_6I
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 20 days ago
Updated: 19 days ago


CVSS Score: 4.5
CVSS vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

Identifiers: GHSA-r2jw-c95q-rj29, CVE-2024-21530
References: Repository: https://github.com/fadeevab/cocoon
Blast Radius: 3.8

Affected Packages

cargo:cocoon
Dependent packages: 5
Dependent repositories: 7
Downloads: 76,529 total
Affected Version Ranges: < 0.4.0
Fixed in: 0.4.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3.0, 0.3.1, 0.3.2, 0.3.3
All unaffected versions: 0.4.0, 0.4.1, 0.4.2, 0.4.3