---
id: CVE-2024-8122
title: >-
  The WSO2 Identity Server fails to enforce a default expiry time for SMS
  One-Time Passwords (OTPs) used in multi-factor authentication (MFA)
summary: >-
  The WSO2 Identity Server fails to enforce a default expiry time for SMS
  One-Time Passwords (OTPs) used in multi-factor authentication (MFA). This
  allows unused OTPs to remain valid indefinitely, presenting an opportunity for
  malicious ac…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-613
vendor: WSO2
product: WSO2 Identity Server
affected:
  - identity_server >= 5.11.0 < 5.11.0.372
  - identity_server >= 6.0.0 < 6.0.0.227
  - identity_server >= 6.1.0 < 6.1.0.219
published: '2026-10-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T01:16:32.183'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-8122'
references:
  - url: >-
      https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2024-3149/
    label: ed10eef1-636d-4fbe-9993-6890dfa878f8
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-08T01:01:40.727Z'
---

## Overview

The WSO2 Identity Server fails to enforce a default expiry time for SMS One-Time Passwords (OTPs) used in multi-factor authentication (MFA). This allows unused OTPs to remain valid indefinitely, presenting an opportunity for malicious actors to conduct brute force attacks by repeatedly guessing the OTP.

The absence of automatic expiration for OTPs grants attackers an unlimited timeframe to attempt guessing the correct code. A successful brute force attack can lead to an MFA bypass, resulting in the unauthorized takeover of a user's account and compromising the security and privacy of both the individual and the system.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
