---
id: CVE-2026-95754
title: >-
  In MISP's UsersController login() method, the pre-authentication database
  query used for the TOTP (two-factor authentication) verification branch did
  not include the User.disabled column in its SELECT fields list
summary: >-
  In MISP's UsersController login() method, the pre-authentication database
  query used for the TOTP (two-factor authentication) verification branch did
  not include the User.disabled column in its SELECT fields list. The query
  selected only…
severity: medium
cvss: 6.9
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'
cwe:
  - CWE-285
vendor: MISP
product: MISP
affected:
  - MISP < 2.5.47
published: '2026-09-22'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T16:18:24.163'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-95754'
references:
  - url: 'https://github.com/MISP/MISP/commit/3df982ab1'
    label: 5a6e4751-2f3f-4070-9419-94fb35b644e8
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-22T15:53:03.966908Z'
cvssSource: cna
ingestedAt: '2026-09-22T15:05:01.075Z'
epss: 0.00543
epssPercentile: 0.44539
---

## Overview

In MISP's UsersController login() method, the pre-authentication database query used for the TOTP (two-factor authentication) verification branch did not include the User.disabled column in its SELECT fields list. The query selected only User.password, User.totp, and User.hotp_counter. When the TOTP branch subsequently accessed $unauth_user['User']['disabled'], the key was absent from the result set, producing a PHP 'Undefined array key' warning and causing the expression to evaluate as null (falsy). As a result, the disabled-user guard in the TOTP branch was effectively a no-op: a disabled, TOTP-enrolled user could proceed to the TOTP verification step rather than being rejected at that point. 

The commit message explicitly states this was 'harmless in practice' because the subsequent identify() call re-validates the user and would still reject a disabled account. 

The practical security impact is therefore minimal, limited to a very small information-disclosure difference in the login response (a TOTP prompt is presented instead of an immediate rejection) and a PHP warning in application logs.

## Remediation

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