{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-Crypt-RandomEncryption-2024-58040 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2025/cpansa-crypt-randomencryption-2024-58040.json" }, { "category": "external", "summary": "https://metacpan.org/release/QWER/Crypt-RandomEncryption-0.01/source/lib/Crypt/RandomEncryption.pm#L33", "url": "https://metacpan.org/release/QWER/Crypt-RandomEncryption-0.01/source/lib/Crypt/RandomEncryption.pm#L33" }, { "category": "external", "summary": "https://perldoc.perl.org/functions/rand", "url": "https://perldoc.perl.org/functions/rand" }, { "category": "external", "summary": "https://security.metacpan.org/docs/guides/random-data-for-security.html", "url": "https://security.metacpan.org/docs/guides/random-data-for-security.html" }, { "category": "external", "summary": "CVE-2024-58040 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58040" } ], "title": "Crypt-RandomEncryption vulnerability", "tracking": { "current_release_date": "2025-09-30T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-Crypt-RandomEncryption-2024-58040", "initial_release_date": "2025-09-30T00:00:00", "revision_history": [ { "date": "2025-09-30T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/>=0.01", "product": { "name": "Crypt-RandomEncryption greater than or equal 0.01", "product_id": "CSAFPID-0001" } } ], "category": "product_name", "name": "Crypt-RandomEncryption" } ] }, "vulnerabilities": [ { "cve": "CVE-2024-58040", "cwe": { "id": "CWE-331", "name": "Insufficient Entropy" }, "notes": [ { "category": "description", "text": "Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.", "title": "Vulnerability Description" } ], "product_status": { "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 9.1, "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }