GHSA-9q4x-gw9j-6q2jLowCVSS 3.1
Bagisto through 2.5.2 contains an insecure randomness vulnerability that allows customers to...
🔗 CVE IDs covered (1)
📋 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.
🔗 References (4)
- https://nvd.nist.gov/vuln/detail/CVE-2026-145562
- https://github.com/bagisto/bagisto/blob/v2.5.2/packages/Webkul/CartRule/src/Repositories/CartRuleCouponRepository.php#L33-L60
- https://www.vulncheck.com/advisories/bagisto-through-2.5.2-predictable-coupon-codes-via-cartrulecouponrepository
- https://github.com/advisories/GHSA-9q4x-gw9j-6q2j