Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-15618: CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator in MOCK Business::OnlinePayment::StoredTransaction

0
High
VulnerabilityCVE-2025-15618cvecve-2025-15618cwe-338cwe-693
Published: Tue Mar 31 2026 (03/31/2026, 10:04:34 UTC)
Source: CVE Database V5
Vendor/Project: MOCK
Product: Business::OnlinePayment::StoredTransaction

Description

CVE-2025-15618 is a vulnerability in the Perl module Business::OnlinePayment::StoredTransaction versions up to 0. 01, where a cryptographically weak pseudo-random number generator is used to create secret keys. The module generates secret keys by applying an MD5 hash to a single call of Perl's built-in rand() function, which is not suitable for cryptographic purposes. These keys are used to encrypt sensitive credit card transaction data, making the encryption vulnerable to prediction and compromise. Although no known exploits are currently reported in the wild, the weakness could allow attackers to recover encryption keys, leading to exposure of confidential payment information. This vulnerability affects organizations using this Perl module for online payment processing, potentially undermining data confidentiality and trust. Mitigation requires replacing the weak key generation method with a cryptographically secure random number generator and stronger hashing algorithms. Countries with significant use of Perl-based payment systems and e-commerce platforms, including the United States, Germany, United Kingdom, Canada, Australia, and Japan, are more likely to be impacted. The severity is assessed as high due to the sensitive nature of the data involved and the ease of exploiting weak key generation without user interaction or authentication.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/31/2026, 10:54:09 UTC

Technical Analysis

CVE-2025-15618 identifies a cryptographic weakness in the Perl module Business::OnlinePayment::StoredTransaction (versions up to 0.01). The vulnerability arises from the use of an insecure method to generate secret keys for encrypting credit card transaction data. Specifically, the module creates the secret key by taking an MD5 hash of a single call to Perl's built-in rand() function. The rand() function is not designed to be cryptographically secure and can produce predictable outputs, especially if the seed is known or can be inferred. MD5, while a cryptographic hash function, is considered broken for collision resistance and is unsuitable for key derivation in modern cryptographic contexts. Combining a weak random source with MD5 hashing results in keys that can be feasibly predicted or brute-forced by attackers. This compromises the confidentiality of encrypted payment data, potentially allowing attackers to decrypt stored credit card information. The vulnerability is classified under CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator) and CWE-693 (Protection Mechanism Failure). No patches or fixes are currently linked, and no known exploits have been reported in the wild. However, the risk remains significant due to the sensitive nature of the data protected by the flawed key generation process.

Potential Impact

The primary impact of this vulnerability is the potential exposure of sensitive credit card transaction data encrypted using weakly generated secret keys. Attackers who can predict or reproduce the secret key can decrypt stored payment information, leading to data breaches involving financial data, identity theft, and fraud. Organizations relying on this Perl module for online payment processing risk losing customer trust, facing regulatory penalties for inadequate data protection, and incurring financial losses from fraud and remediation costs. The vulnerability undermines the confidentiality and integrity of payment data but does not directly affect system availability. Since the weakness is in the cryptographic key generation, exploitation does not require user interaction or authentication, increasing the risk of automated attacks. The scope is limited to systems using the affected module version, but given the widespread use of Perl in legacy and some modern payment systems, the affected population could be significant. The absence of known exploits suggests that attackers may need some effort to develop reliable attacks, but the fundamental cryptographic flaw is severe.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately cease using Business::OnlinePayment::StoredTransaction versions up to 0.01 for encrypting sensitive data. Developers should update the module to use a cryptographically secure pseudo-random number generator (CSPRNG), such as those provided by Perl's Crypt::PRNG or the operating system's secure random sources (e.g., /dev/urandom or Crypt::Random). The key derivation process should employ modern, secure algorithms like HKDF or PBKDF2 with appropriate salts and iteration counts instead of MD5 hashing. If no official patch is available, users should consider applying custom patches or switching to alternative, actively maintained payment processing libraries that follow current cryptographic best practices. Additionally, organizations should audit stored encrypted data and consider re-encrypting with securely generated keys. Implementing comprehensive logging and monitoring for unusual access patterns to payment data can help detect exploitation attempts. Finally, educating developers on secure cryptographic practices and regularly reviewing third-party dependencies for vulnerabilities is essential to prevent similar issues.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-03-29T14:46:35.859Z
Cvss Version
null
State
PUBLISHED

Threat ID: 69cba419e6bfc5ba1d08ff9f

Added to database: 3/31/2026, 10:38:17 AM

Last enriched: 3/31/2026, 10:54:09 AM

Last updated: 3/31/2026, 1:16:00 PM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses