CVE-2026-100872 DetailsANALYZED This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.
Description Sylius versions before 2.1.16 and 2.2.9 fail to validate payment amounts during cart recalculation, allowing unauthenticated attackers to modify order totals after gateway transaction initiation. Attackers can pay a small amount, enlarge the order after gateway capture, and have the system mark the inflated order as fully paid while the gateway captured only the original amount.
A vulnerability exists in Sylius versions prior to 2.1.16 and 2.2.9, where the application fails to properly validate payment amounts during cart recalculation. This oversight allows unauthenticated attackers to manipulate order totals after a payment gateway transaction has been initiated. Exploitation involves paying a small amount, increasing the order total after the payment has been processed, and having the system incorrectly mark the inflated order as fully paid, while the payment gateway only captured the original, smaller amount.
Users can update to Sylius versions 2.1.16 or 2.2.9 to address this vulnerability. If an immediate update is not possible, a temporary workaround involves creating a trait to check if a payment has been claimed by a gateway and using this trait in a custom order payment processor and payment remover that respect these claims.
Show AI summary Metrics CVSS Version 4.0 CVSS Version 3.x CVSS Version 2.0 SSVC
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 27, 2026 Exploitation: NoneAutomatable: YesTechnical Impact: Partial
CISA-ADP
Assessed Sep 28, 2026 Exploitation: PocAutomatable: YesTechnical Impact: Partial
References 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.
Weakness Enumeration Affected Products Product Versions Sylius >= 2.0.0, < 2.1.16 (semver)
>= 2.2.0, < 2.2.9 (semver)
CPE cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:* Remediation Upgrade: 2.1.16moderate effort Upgrade: 2.2.9moderate effort Workaround: moderate effort Create a new file at `src/Payment/ClaimedByGatewayCheckerTrait.php` with the following content:
```php
<?php
declare(strict_types=1);
namespace App\Payment;
use Sylius\Component\Payment\Model\PaymentInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
trait ClaimedByGatewayCheckerTrait
{
private function isClaimedByGateway(PaymentInterface $payment): bool
{
$claimingActions = [PaymentRequestInterface::ACTION_CAPTURE, PaymentRequestInterface::ACTION_AUTHORIZE];
$nonClaimingStates = [
PaymentRequestInterface::STATE_NEW,
PaymentRequestInterface::STATE_FAILED,
PaymentRequestInterface::STATE_CANCELLED,
];
$claimingPaymentRequests = $payment->getPaymentRequests()->filter(
static function (PaymentRequestInterface $paymentRequest) use ($claimingActions, $nonClaimingStates): bool {
return
in_array($paymentRequest->getAction(), $claimingActions, true) &&
!in_array($paymentRequest->getState(), $nonClaimingStates, true);
},
);
return !$claimingPaymentRequests->isEmpty();
}
}
```
Create a new file at `src/Payment/Remover/ClaimedPaymentAwareOrderPaymentsRemover.php` with the following content:
```php
<?php
declare(strict_types=1);
namespace App\Payment\Remover;
use App\Payment\ClaimedByGatewayCheckerTrait;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Payment\Remover\OrderPaymentsRemoverInterface;
use Sylius\Component\Payment\Model\PaymentInterface;
final class ClaimedPaymentAwareOrderPaymentsRemover implements OrderPaymentsRemoverInterface
{
use ClaimedByGatewayCheckerTrait;
public function __construct(private OrderPaymentsRemoverInterface $decoratedOrderPaymentsRemover)
{
}
public function canRemovePayments(OrderInterface $order): bool
{
return $this->decoratedOrderPaymentsRemover->canRemovePayments($order);
}
public function removePayments(OrderInterface $order): void
{
$removablePayments = $order->getPayments()->filter(function (PaymentInterface $payment): bool {
return $payment->getState() === PaymentInterface::STATE_CART && !$this->isClaimedByGateway($payment);
});
foreach ($removablePayments as $payment) {
$order->removePayment($payment);
}
}
}
```
Create a new file at `src/OrderProcessing/ClaimedPaymentAwareOrderPaymentProcessor.php` with the following content:
```php
<?php
declare(strict_types=1);
namespace App\OrderProcessing;
use App\Payment\ClaimedByGatewayCheckerTrait;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Payment\Exception\NotProvidedOrderPaymentException;
use Sylius\Component\Core\Payment\Provider\OrderPaymentProviderInterface;
use Sylius\Component\Core\Payment\Remover\OrderPaymentsRemoverInterface;
use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface;
use Sylius\Component\Order\Processor\OrderProcessorInterface;
use Webmozart\Assert\Assert;
final class ClaimedPaymentAwareOrderPaymentProcessor implements OrderProcessorInterface
{
use ClaimedByGatewayCheckerTrait;
/** @param array<string> $unprocessableOrderStates */
public function __construct(
private OrderProcessorInterface $decoratedOrderPaymentProcessor,
private OrderPaymentProviderInterface $orderPaymentProvider,
private OrderPaymentsRemoverInterface $orderPaymentsRemover,
private array $unprocessableOrderStates,
private string $targetState,
) {
}
public function process(BaseOrderInterface $order): void
{
Assert::isInstanceOf($order, OrderInterface::class);
/** @var OrderInterface $order */
if (in_array($order->getState(), $this->unprocessableOrderStates, true)) {
$this->decoratedOrderPaymentProcessor->process($order);
return;
}
if ($this->orderPaymentsRemover->canRemovePayments($order)) {
$this->decoratedOrderPaymentProcessor->process($order);
return;
}
$lastPayment = $order->getLastPayment($this->targetState);
if (null !== $lastPayment && $this->isClaimedByGateway($lastPayment)) {
if (
$lastPayment->getAmount() === $order->getTotal() &&
$lastPayment->getCurrencyCode() === $order->getCurrencyCode()
) {
return;
}
try {
$newPayment = $this->orderPaymentProvider->provideOrderPayment($order, $this->targetState);
$order->addPayment($newPayment);
} catch (NotProvidedOrderPaymentException) {
}
return;
}
$this->decoratedOrderPaymentProcessor->process($order);
}
}
```
Register the decorators in `config/services.yaml`:
```yaml
services:
App\Payment\Remover\ClaimedPaymentAwareOrderPaymentsRemover:
decorates: sylius.remover.payment.order
arguments:
$decoratedOrderPaymentsRemover: '@.inner'
app.order_payment_processor.checkout:
class: App\OrderProcessing\ClaimedPaymentAwareOrderPaymentProcessor
decorates: sylius.order_processing.order_payment_processor.checkout
arguments:
$decoratedOrderPaymentProcessor: '@.inner'
$orderPaymentProvider: '@sylius.provider.payment.order'
$orderPaymentsRemover: '@sylius.remover.payment.order'
$unprocessableOrderStates: '%sylius.order_payment_processor.checkout.unsupported_states%'
$targetState: 'cart'
app.order_payment_processor.after_checkout:
class: App\OrderProcessing\ClaimedPaymentAwareOrderPaymentProcessor
decorates: sylius.order_processing.order_payment_processor.after_checkout
arguments:
$decoratedOrderPaymentProcessor: '@.inner'
$orderPaymentProvider: '@sylius.provider.payment.order'
$orderPaymentsRemover: '@sylius.remover.payment.order'
$unprocessableOrderStates: '%sylius.order_payment_processor.after_checkout.unsupported_states%'
$targetState: 'new'
```
Finally, clear the cache with the command: `bin/console cache:clear`.
Change History 2 change records found show changes
Date Action Recorded By Sep 28, 2026 CVE Modified CISA-ADP Sep 27, 2026 New CVE Received [email protected]