{"id":"CVE-2026-24038","state":"PUBLISHED","title":"Horilla HR has 2FA Bypass through its OTP Handling Logic","description":"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.","publishedAt":"2026-01-22T03:39:06.216Z","updatedAt":"2026-01-22T12:33:39.694Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["horilla-opensource horilla"],"affected":[{"vendor":"horilla-opensource","product":"horilla","versions":[{"version":">= 1.4.0, < 1.5.0","status":"affected"}]}],"references":["https://github.com/horilla-opensource/horilla/security/advisories/GHSA-hqpv-ff5v-3hwf","https://github.com/horilla-opensource/horilla/releases/tag/1.5.0"],"weaknesses":["CWE-287"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/24xxx/CVE-2026-24038.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-24038","state":"PUBLISHED","datePublished":"2026-01-22T03:39:06.216Z","dateUpdated":"2026-01-22T12:33:39.694Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-20T22:30:11.777Z"},"containers":{"cna":{"title":"Horilla HR has 2FA Bypass through its OTP Handling Logic","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"horilla-opensource","product":"horilla","versions":[{"version":">= 1.4.0, < 1.5.0","status":"affected"}]}],"references":[{"url":"https://github.com/horilla-opensource/horilla/security/advisories/GHSA-hqpv-ff5v-3hwf","name":"https://github.com/horilla-opensource/horilla/security/advisories/GHSA-hqpv-ff5v-3hwf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/horilla-opensource/horilla/releases/tag/1.5.0","name":"https://github.com/horilla-opensource/horilla/releases/tag/1.5.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","lang":"en","description":"CWE-287: Improper Authentication","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-22T03:39:06.216Z"},"source":{"advisory":"GHSA-hqpv-ff5v-3hwf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-22T12:33:17.546072Z","id":"CVE-2026-24038","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-22T12:33:39.694Z"}}]}}}