CVE-2026-31824 Details
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.
A Time-of-Check To Time-of-Use (TOCTOU) race condition has been identified in the Sylius eCommerce framework, specifically within the promotion and coupon usage limit enforcement. This vulnerability affects versions of Sylius through 1.9.11, 1.10.0 prior to 1.10.15, 1.11.0 prior to 1.11.16, 1.12.0 prior to 1.12.22, 1.13.0 prior to 1.13.14, 1.14.0 prior to 1.14.17, 2.0.0 prior to 2.0.15, 2.1.0 prior to 2.1.11, and 2.2.0 prior to 2.2.2. The vulnerability arises because the eligibility checks for promotion and coupon usage read from an in-memory Doctrine entity without proper database-level locking. As a result, concurrent requests can exploit this by bypassing usage limits and allowing limited-use promotions or coupons to be redeemed multiple times, potentially leading to financial loss.
Sylius users can update to 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, or 2.2.3. For those unable to update, a workaround involves decorating the 'OrderPromotionsUsageModifier' service to use atomic operations based on database-synchronized values. Instructions for registering this decorator service are available in the advisory.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Sylius/Sylius/security/advisories/GHSA-7mp4-25j8-hp5q | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sylius sylius | < 1.9.12 >= 1.10.0, < 1.10.16 >= 1.11.0, < 1.11.17 >= 1.12.0, < 1.12.23 >= 1.13.0, < 1.13.15 >= 1.14.0, < 1.14.18 >= 2.0.0, < 2.0.16 >= 2.1.0, < 2.1.12 >= 2.2.0, < 2.2.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 11, 2026 | Initial Analysis | [email protected] |
| Mar 10, 2026 | New CVE Received | [email protected] |