cocoon up to 0.3.x Encryption nonce re-use

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.0$0-$5k0.00

Summaryinfo

A vulnerability identified as problematic has been detected in cocoon up to 0.3.x. The affected element is an unknown function of the component Encryption. This manipulation causes nonce re-use. This vulnerability appears as CVE-2024-21530. The attack requires local access. There is no available exploit. You should upgrade the affected component.

Detailsinfo

A vulnerability was found in cocoon up to 0.3.x. It has been declared as problematic. Affected by this vulnerability is some unknown functionality of the component Encryption. The manipulation with an unknown input leads to a nonce re-use vulnerability. The CWE definition for the vulnerability is CWE-323. Nonces should be used for the present occasion and only once. As an impact it is known to affect confidentiality, and integrity. The summary by CVE is:

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.

It is possible to read the advisory at security.snyk.io. This vulnerability is known as CVE-2024-21530 since 12/22/2023. The exploitation appears to be difficult. Attacking locally is a requirement. The technical details are unknown and an exploit is not publicly available. The attack technique deployed by this issue is T1600.001 according to MITRE ATT&CK.

Upgrading to version 0.4.0 eliminates this vulnerability. Applying the patch 1b6392173ce35db4736a94b62b2d2973f9a71441 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2024-3124). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.0
VulDB Meta Temp Score: 4.0

VulDB Base Score: 3.6
VulDB Temp Score: 3.5
VulDB Vector: 🔍
VulDB Reliability: 🔍

CNA Base Score: 4.5
CNA Vector (snyk): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Nonce re-use
CWE: CWE-323
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: cocoon 0.4.0
Patch: 1b6392173ce35db4736a94b62b2d2973f9a71441

Timelineinfo

12/22/2023 🔍
10/02/2024 +284 days 🔍
10/02/2024 +0 days 🔍
12/30/2025 +454 days 🔍

Sourcesinfo

Advisory: 22
Status: Confirmed

CVE: CVE-2024-21530 (🔍)
GCVE (CVE): GCVE-0-2024-21530
GCVE (VulDB): GCVE-100-279043
EUVD: 🔍

Entryinfo

Created: 10/02/2024 08:20
Updated: 12/30/2025 01:17
Changes: 10/02/2024 08:20 (65), 10/05/2024 04:37 (1), 12/30/2025 01:17 (1)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!