WooCommerce Square <= 5.5.3 - Unauthenticated Integer Overflow in Order Total Conversion

Low 3.7 CWE-190Fixed in 5.5.4
ID
WPSEC-2026-4503
Plugin
WooCommerce Square (woocommerce-square)
Affected
from 5.5.0 before 5.5.4
Remediation
Update to 5.5.4 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-190
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-03
Attack surface
WooCommerce Square on WPSec AttackSurface
Fix released
Published

Description

The WooCommerce Square plugin for WordPress is vulnerable to an integer overflow in the conversion of order amounts to the smallest currency unit in all versions up to, and including, 5.5.3, due to the rounded floating-point amount being cast to an integer without a range check in Money_Utility::amount_to_cents(). This makes it possible for unauthenticated attackers to place orders with extremely large totals, for example through a very large quantity of a product without stock management, so that the amount charged through Square wraps around to an unrelated and potentially much smaller value than the order total.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0