Skip to main content
CVE-2026-145562VulnerabilityPublished

Bagisto through 2.5.2 contains an insecure randomness vulnerability that allows customers to predict bulk coupon codes

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-145562· Low 2.3

Not known to be exploited · CVSS 2.3 Low.

Data as of 5 Dec 2026, 20:09 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.02.3
CNA (VulnCheck)CVSS 3.13.1
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.

What to do

Affected software

ProductAffectedFixed in
WebkulBagistoAffected
  • <=2.5.2
Fixed in–
PackagistBagistopkg:composer/BagistoOther threatsAffected
  • <=2.5.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a fix is available, consider restricting access to issued coupon codes and monitoring coupon redemption patterns to detect abuse.

Description

Bagisto versions through 2.5.2 have an insecure randomness vulnerability in the coupon code generation process. The vulnerability arises from using PHP rand() in CartRuleCouponRepository::getRandomString(), which allows attackers who possess two or more coupon codes from the same batch to predict other unissued codes. This enables unauthorized redemption of discounts. The vulnerability has a low CVSS score of 3.1, indicating limited impact.

References

Community reviews

Loading reviews…