CVE Catalog

CVE-2026-145562

LowCVSS 3.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.28%

22th percentile - higher than 22% of all known CVEs

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.

Risk Assessment

It may lead to unauthorized redemption of discounts and financial losses for the store, as well as abuse against other customers.

Recommendation

Update Bagisto to a version later than 2.5.2 and replace code generation with a cryptographically secure random source.

Other vulnerabilities in Bagisto

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS