Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112285 Overview
CVE-2026-112285 is a business logic vulnerability in the Thelia e-commerce platform that allows authenticated customers to bypass coupon usage limits. The flaw affects Thelia versions before 3.1.5 and 3.2.x before 3.2.4. Coupon usage is counted only when an order transitions to the paid state, creating a window where authenticated customers can place multiple pay-later orders while a usage slot remains available. Attackers can also cancel paid orders to inflate max_usage counters, obtaining unlimited discounts. The weakness is classified as [CWE-837] Improper Enforcement of a Single, Unique Action.
Critical Impact
Authenticated customers can apply the same coupon across unlimited orders, resulting in revenue loss and inventory abuse through unauthorized discount stacking.
Affected Products
- Thelia versions prior to 3.1.5
- Thelia 3.2.x versions prior to 3.2.4
- Thelia Promotion/Coupon subsystem (OrderCouponUsageManager, CouponManager)
Discovery Timeline
- 2026-10-19 - CVE-2026-112285 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112285
Vulnerability Analysis
The vulnerability resides in Thelia's coupon redemption workflow. A coupon attached to an order through the order_coupon relation starts in a canceled-usage state. The usage counter increments only when the order transitions to paid, and decrements when the order leaves the paid state. Because the state transition — not the order submission — triggers accounting, an authenticated customer can submit multiple pay-later orders before any of them become paid. Each submission references the same coupon while the usage counter remains unchanged. The attacker then pays each order, receiving the discount every time. A second variation of the attack cancels paid orders to decrement the counter, re-enabling the coupon for additional redemptions beyond the configured max_usage.
Root Cause
The root cause is non-atomic enforcement of a single-use action across two separate database operations: incrementing the usage counter and validating remaining capacity. The pre-patch OrderCouponUsageManager documentation stated that "both moves are idempotent, so calling them twice changes nothing," but did not guard the increment against exhausted usage. Multiple concurrent or sequential pay-later orders could each pass the capacity check before any had committed a usage increment.
Attack Vector
Exploitation requires only authenticated customer-level access. An attacker with low privileges performs the abuse entirely over the network through the standard storefront checkout flow. No user interaction beyond the attacker's own browser is required.
// Patch excerpt: core/lib/Thelia/Domain/Promotion/Coupon/Service/OrderCouponUsageManager.php
*
* A coupon remembered on an order (order_coupon) starts with its usage canceled:
* it counts once the order is paid, and stops counting when the order stops
- * being paid. Both moves are idempotent, so calling them twice changes nothing.
+ * being paid. A line only counts when its coupon had a usage left to take, and
+ * only a counted line gives one back. Both moves are idempotent, so calling them
+ * twice changes nothing.
*/
final readonly class OrderCouponUsageManager
{
Source: GitHub commit 1c3ed9c. The patch rewrites the increment path so a usage is only recorded when capacity remains, and only a previously counted line can return a usage, closing the race window.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-112285
Indicators of Compromise
- Multiple orders from the same customer account referencing an identical coupon code within a short window, especially while orders remain in a pending/pay-later state.
- Discount totals in order reports that exceed the configured max_usage multiplied by the coupon value.
- Rows in coupon_customer_count or order_coupon tables that disagree with the number of paid orders carrying the coupon.
- Repeated order cancellations followed by immediate reuse of the same coupon by the same customer.
Detection Strategies
- Query the Thelia database for coupons where the count of distinct orders referencing the coupon exceeds its max_usage value.
- Correlate web access logs for repeated POSTs to the checkout endpoint by one authenticated session before any payment confirmation callback is received.
- Add application-level logging around the coupon redemption path and alert when the same customer applies the same coupon to more than one unpaid order.
Monitoring Recommendations
- Monitor order-cancellation events and flag accounts whose cancellation-to-reorder pattern reuses the same promotional code.
- Track margin and revenue anomalies per coupon campaign to surface aggregate abuse.
- Review authentication logs for customer accounts generating abnormal order volume following the publication of CVE-2026-112285.
How to Mitigate CVE-2026-112285
Immediate Actions Required
- Upgrade Thelia to version 3.1.5 or 3.2.4, which contain the atomic coupon-usage guard.
- Audit historical orders for coupons whose redemption count exceeds the configured max_usage and reconcile refunds or chargebacks as appropriate.
- Temporarily disable high-value or unlimited-stacking coupon campaigns until the upgrade is completed.
Patch Information
The fix is published in Thelia Release 3.1.5 and Thelia Release 3.2.4. The code changes are available in commit 1c3ed9c and commit edb7078. Additional details are in GitHub Security Advisory GHSA-pq5m-7g9w-ppg8 and the VulnCheck Advisory for Thelia.
Workarounds
- Set max_usage to 1 and configure one-coupon-per-customer constraints where business rules allow, limiting the scope of abuse until the patch is applied.
- Restrict high-value coupons to single-use codes generated per customer rather than shared campaign codes.
- Enforce a server-side rule that rejects a second order from the same customer referencing an active coupon while a prior order remains unpaid.
# Composer upgrade example for Thelia 3.2.x
composer require thelia/thelia:^3.2.4 --update-with-dependencies
php Thelia cache:clear --env=prod
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

