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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Sat, 05 Dec 2026 14:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Bagisto through 2.5.2 Predictable Coupon Codes via CartRuleCouponRepository | |
| First Time appeared |
Webkul
Webkul bagisto |
|
| Weaknesses | CWE-338 | |
| CPEs | cpe:2.3:a:webkul:bagisto:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Webkul
Webkul bagisto |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-12-05T14:04:53.898Z
Reserved: 2026-12-05T14:00:16.940Z
Link: CVE-2026-145562
No data.
Status : Deferred
Published: 2026-12-05T14:17:19.800
Modified: 2026-12-05T14:17:19.943
Link: CVE-2026-145562
No data.
OpenCVE Enrichment
No data.
Weaknesses