Improper Validation of Specified Quantity in Input Affecting spomky-labs/otphp package, versions <11.4.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SPOMKYLABSOTPHP-17660427
  • published27 Jun 2026
  • disclosed18 Jun 2026
  • creditUnknown

Introduced: 18 Jun 2026

CVE NOT AVAILABLE CWE-1284  (opens in a new tab)
CWE-369  (opens in a new tab)

How to fix?

Upgrade spomky-labs/otphp to version 11.4.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via the digits parameter in the provisioning URI. An attacker can cause unhandled fatal errors and disrupt the verification process by supplying a large value for digits, which leads to a division by zero during OTP generation.

References

CVSS Base Scores

version 4.0
version 3.1