Sylius has a Promotion Usage Limit Bypass via Race Condition
Description
Sylius is an Open Source eCommerce Framework on Symfony. A Time-of-Check To Time-of-Use (TOCTOU) race condition was discovered in the promotion usage limit enforcement. The same class of vulnerability affects the promotion usage limit (the global used counter on Promotion entities), coupon usage limit (the global used counter on PromotionCoupon entities), and coupon per-customer usage limit (the per-customer redemption count on PromotionCoupon entities). In all three cases, the eligibility check reads the used counter (or order count) from an in-memory Doctrine entity during validation, while the actual usage increment in OrderPromotionsUsageModifier happens later during order completion — with no database-level locking or atomic operations between the two phases. Because Doctrine flushes an absolute value (SET used = 1) rather than an atomic increment (SET used = used + 1), and because the affected entities lack optimistic locking, concurrent requests all read the same stale usage counts and pass the eligibility checks simultaneously. An attacker can exploit this by preparing multiple carts with the same limited-use promotion or coupon and firing simultaneous PATCH /api/v2/shop/orders/{token}/complete requests. All requests pass the usage limit checks and complete successfully, allowing a single-use promotion or coupon to be redeemed an arbitrary number of times. The per-customer limit can be bypassed in the same way by a single customer completing multiple orders concurrently. No authentication is required to exploit this vulnerability. This may lead to direct financial loss through unlimited redemption of limited-use promotions and discount coupons. The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 2.0.16, 2.1.12, 2.2.3 and above.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
TOCTOU race condition in Sylius allows bypass of promotion and coupon usage limits, enabling unlimited redemption of limited-use discounts.
Vulnerability
Overview A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in Sylius promotion usage limit enforcement [1][2]. The eligibility check reads stale in-memory Doctrine entity values, while the usage increment occurs later during order completion without atomic operations or locking [1]. This affects promotion global counts, coupon usage, and per-customer redemption limits [1].
Exploitation
An attacker can prepare multiple carts with a limited-use promotion or coupon and send simultaneous PATCH /api/v2/shop/orders/{token}/complete requests [1]. All requests pass the eligibility checks and complete successfully, allowing a single-use discount to be used arbitrarily many times [1]. No authentication is required [1].
Impact
Unlimited redemption of limited-use promotions can lead to direct financial loss [1][2].
Mitigation
The issue is fixed in Sylius versions 1.9.12, 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 2.0.16, 2.1.12, 2.2.3 and above [1][2].
AI Insight generated on May 18, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sylius/syliusPackagist | < 1.9.12 | 1.9.12 |
sylius/syliusPackagist | >= 1.10.0, < 1.10.16 | 1.10.16 |
sylius/syliusPackagist | >= 1.11.0, < 1.11.17 | 1.11.17 |
sylius/syliusPackagist | >= 1.12.0, < 1.12.23 | 1.12.23 |
sylius/syliusPackagist | >= 1.13.0, < 1.13.15 | 1.13.15 |
sylius/syliusPackagist | >= 1.14.0, < 1.14.18 | 1.14.18 |
sylius/syliusPackagist | >= 2.0.0, < 2.0.16 | 2.0.16 |
sylius/syliusPackagist | >= 2.1.0, < 2.1.12 | 2.1.12 |
sylius/syliusPackagist | >= 2.2.0, < 2.2.3 | 2.2.3 |
Affected products
2- Sylius/Syliusv5Range: >= 2.2.0, < 2.2.3
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-7mp4-25j8-hp5qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-31824ghsaADVISORY
- github.com/Sylius/Sylius/security/advisories/GHSA-7mp4-25j8-hp5qghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.