CVE-2026-145562

low

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

https://www.vulncheck.com/advisories/bagisto-through-2.5.2-predictable-coupon-codes-via-cartrulecouponrepository

https://github.com/bagisto/bagisto/blob/v2.5.2/packages/Webkul/CartRule/src/Repositories/CartRuleCouponRepository.php#L33-L60

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-145696

Details

Source: Mitre, NVD

Published: 2026-12-05

Updated: 2026-12-05

CVSS v3

Base Score: 3.1

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Severity: Low

CVSS v4

Base Score: 2.3

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Severity: Low