# CVE-2026-24038: Horilla HR has 2FA Bypass through its OTP Handling Logic

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-22T03:39:06.216Z
- Modified: 2026-06-17T10:22:30.190Z
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- horilla-opensource horilla: >= 1.4.0, < 1.5.0
- horilla horilla: 1.4.0

## References

- <https://github.com/horilla-opensource/horilla/security/advisories/GHSA-hqpv-ff5v-3hwf> (exploit, vendor-advisory)
- <https://github.com/horilla-opensource/horilla/releases/tag/1.5.0> (release-notes)

## Sources

- CVE List: [CVE-2026-24038](https://www.cve.org/CVERecord?id=CVE-2026-24038), CVE Terms of Use, modified 2026-01-22
- NVD: [CVE-2026-24038](https://nvd.nist.gov/vuln/detail/CVE-2026-24038), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-24038 · Whole record: https://cve.day/CVE-2026-24038.json · Rebuilt by cve.day 2026-11-25T22:59:13.046Z
