CVE-2026-31824
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-03-10
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.2 %
higher than 8 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| sylius | sylius (Packagist) | < 1.9.12 | Affected |
| Sylius | Sylius | < 1.9.12 | Affected |
| sylius | sylius (Packagist) | ≥ 1.10.0, < 1.10.16 | Affected |
| Sylius | Sylius | ≥ 1.10.0, < 1.10.16 | Affected |
| sylius | sylius (Packagist) | ≥ 1.11.0, < 1.11.17 | Affected |
| Sylius | Sylius | ≥ 1.11.0, < 1.11.17 | Affected |
| sylius | sylius (Packagist) | ≥ 1.12.0, < 1.12.23 | Affected |
| Sylius | Sylius | ≥ 1.12.0, < 1.12.23 | Affected |
| sylius | sylius (Packagist) | ≥ 1.13.0, < 1.13.15 | Affected |
| Sylius | Sylius | ≥ 1.13.0, < 1.13.15 | Affected |
| sylius | sylius (Packagist) | ≥ 1.14.0, < 1.14.18 | Affected |
| Sylius | Sylius | ≥ 1.14.0, < 1.14.18 | Affected |
| sylius | sylius (Packagist) | ≥ 2.0.0, < 2.0.16 | Affected |
| Sylius | Sylius | ≥ 2.0.0, < 2.0.16 | Affected |
| sylius | sylius (Packagist) | ≥ 2.1.0, < 2.1.12 | Affected |
| Sylius | Sylius | ≥ 2.1.0, < 2.1.12 | Affected |
| sylius | sylius (Packagist) | ≥ 2.2.0, < 2.2.3 | Affected |
| Sylius | Sylius | ≥ 2.2.0, < 2.2.3 | Affected |
Weakness type
-
CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization
The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating …
-
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
References
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.