cvelo
P4 · InfoCVSS 3.1

Bagisto through 2.5.2 Predictable Coupon Codes via CartRuleCouponRepository

  • CVE-2026-145562
  • EUVD-2026-145696

Summary

Bagisto through version 2.5.2 has an insecure randomness flaw in CartRuleCouponRepository::getRandomString(), which uses PHP's rand() function to produce bulk coupon codes. An attacker who holds two or more codes from the same batch can recover the 32-bit Mersenne Twister seed and then compute codes that have not yet been issued. Those computed codes can be redeemed for discounts intended for other customers. The record scores the issue at CVSS 3.1 and states that it is not on the CISA known exploited vulnerabilities list.

AI summary · verify against the vendor advisory

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Webkul Bagisto

    Affected versionsFixed in
    up to 2.5.2none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.