CVE-2024-21530

Source
https://cve.org/CVERecord?id=CVE-2024-21530
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21530.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-21530
Aliases
Published
2024-10-02T05:00:02.359Z
Modified
2026-07-08T06:45:34.939689657Z
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/E:P CVSS Calculator
Summary
[none]
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
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "0.4.0"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "0.4.0"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21530.json",
    "cwe_ids": [
        "CWE-323"
    ],
    "cna_assigner": "snyk"
}
References

Affected packages

Git / github.com/fadeevab/cocoon

Affected ranges

Type
GIT
Repo
https://github.com/fadeevab/cocoon
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "REFERENCES"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21530.json"