CVE Professor
/
All CVEs
CVE-2026-145562

CVE-2026-145562 — CWE-338

LOW CVSS 3.1 NVD

Bagisto through 2.5.2 contains an insecure randomness vulnerability that allows customers to predict bulk coupon codes generated by CartRuleCouponRepository::getRandomString() using PHP rand(). Attackers holding two or more codes from one batch can recover the 32-bit Mersenne Twister seed and compute unissued codes to redeem discounts meant for others.

Bagisto through 2.5.2 contains an insecure randomness vulnerability that allows customers to predict bulk coupon codes generated by CartRuleCouponRepository::getRandomString() using PHP rand(). Attackers holding two or more codes from one batch can recover the 32-bit Mersenne Twister seed and compute unissued codes to redeem discounts meant for others.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity Low I:L
Availability None A:N
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-145562
CVSS 3.1/10 · LOW · 05.12.2026
CWE: CWE-338
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: Bagisto through 2.5.2 contains an insecure randomness vulnerability that allows customers to predict bulk coupon codes generated by CartRuleCouponRepository::getRandomString() using PHP rand(). Attackers holding two or more codes from one batch can recover the 32-bit Mersenne Twister seed and compute unissued codes to redeem discounts meant for others.

⚡ ATTACK VECTOR
Network / Remote (AV:N) · low-privilege account (PR:L) · no user interaction (UI:N).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L).

🛡️ REMEDIATION
→ Apply the vendor-released patch immediately.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📌 Low priority — routine update sufficient.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

header="X-Powered-By" && header="PHP"
CVSS Score
3.1 / 10 · CVSS LOW
Weakness Types (CWE)
CWE-338
References & Advisories (2)
Related CVEs
9.6
CVE-2025-15660
A use of cryptographically weak pseudo-random number generator (PRNG) in the redis of Synology MailPlus Server
7.5
CVE-2026-137847
A predictable recovery-code vulnerability in Zimbra Collaboration Suite (ZCS) allows an authenticated user to
6.3
CVE-2026-145492
form-data through 4.0.6 contains a CRLF injection vulnerability in _multiPartHeader that allows attackers to i
5.0
CVE-2026-144920
A security vulnerability has been detected in eosphoros-ai DB-GPT up to 0.8.3. Affected by this vulnerability
3.9
CVE-2026-81231
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Neutralizati
3.7
CVE-2026-137346
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vu
3.7
CVE-2026-144348
undici is an HTTP client for Node.js. In versions 5.16.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 throu