Advisory record · GHSA-g7m4-839x-ch6v

spomky-labs/otphp: Unbounded digits parameter in a provisioning URI triggers an uncaught DivisionByZeroError in OTP generation

CVSS 4.0, no score published

Published by the GitHub Advisory Database at 18 Jun 2026, 20:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
spomky-labs/otphpPackagist<11.4.311.4.3
Identifiers
GHSA-g7m4-839x-ch6v · PKSA-kbc7-dq62-pt7d
Weakness (CWE)
CWE-369 · CWE-1284
Published
18 Jun 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Spomky-labs/otphp versions before 11.4.3 do not limit the upper bound of the digits parameter parsed from a provisioning URI. A provisioning URI with a very large digits value, such as one of 40 or more on 64-bit PHP 8.x, causes OTP generation and verification to throw an uncatchable DivisionByZeroError, which can crash a verification path that catches only Exception. The attacker needs only to supply a crafted URI to the application, and the source describes the impact as denial of service. Upgrade to 11.4.3 or later, which is the fixed version listed.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
Not published None 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 14:01 UTC First seen by agentprime
  2. 31 Oct 2026, 14:01 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.