# CVE-2026-40356: In MIT Kerberos 5 (aka krb5) before 1.22.3, there is an integer underflow and resultant out-of-bounds read if an application calls gssaccep…

- Severity: Medium 5.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-28T00:00:00.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

In MIT Kerberos 5 (aka krb5) before 1.22.3, there is an integer underflow and resultant out-of-bounds read if an application calls gss_accept_sec_context() on a system with a NegoEx mechanism registered in /etc/gss/mech. An unauthenticated remote attacker can trigger this, possibly causing the process to terminate in parse_message.

(As written by CVE List.)

## Affected

- MIT Kerberos 5: from 1.18 before 1.22.3
- mit kerberos_5: from 1.18.0 up to 1.22.2

## Every score

- mitre: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://cems.fun/2026/04/27/krb5-two-unauthenticated-network-vulnerabilities.html> (exploit, patch, third-party-advisory)
- <https://web.mit.edu/kerberos/advisories/> (vendor-advisory)
- <https://github.com/krb5/krb5/commit/2e75f0d9362fb979f5fc92829431a590a130929f> (patch)

## Sources

- CVE List: [CVE-2026-40356](https://www.cve.org/CVERecord?id=CVE-2026-40356), CVE Terms of Use, modified 2026-04-28
- NVD: [CVE-2026-40356](https://nvd.nist.gov/vuln/detail/CVE-2026-40356), Public domain, modified 2026-10-26

---

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