{"id":"CVE-2026-24038","summary":"Horilla HR has 2FA Bypass through its OTP Handling Logic","details":"Horilla is a free and open source Human Resource Management System (HRMS). In version 1.4.0, the OTP handling logic has a flawed equality check that can be bypassed. When an OTP expires, the server returns None, and if an attacker omits the otp field from their POST request, the user-supplied OTP is also None, causing the comparison user_otp == otp to pass. This allows an attacker to bypass two-factor authentication entirely without ever providing a valid OTP. If administrative accounts are targeted, it could lead to compromise of sensitive HR data, manipulation of employee records, and further system-wide abuse. This issue has been fixed in version 1.5.0.","aliases":["GHSA-hqpv-ff5v-3hwf"],"modified":"2026-08-27T03:57:06.513009943Z","published":"2026-01-22T03:39:06.216Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-287"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24038.json"},"references":[{"type":"WEB","url":"https://github.com/horilla-opensource/horilla/releases/tag/1.5.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24038.json"},{"type":"ADVISORY","url":"https://github.com/horilla-opensource/horilla/security/advisories/GHSA-hqpv-ff5v-3hwf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24038"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/horilla/horilla-hr","events":[{"introduced":"e3568ca951e0a7a8976d7f462208956c5227053e"},{"fixed":"61bd5173220d19925ad8220db9152a75c881ea73"}],"database_specific":{"extracted_events":[{"introduced":"1.4.0"},{"fixed":"1.5.0"}],"source":"AFFECTED_FIELD"}}],"versions":["1.4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24038.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}