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 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.
CVE-2026-40356 is a vulnerability in 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., rated Moderate by Microsoft, with a CVSS 3.1 base score of 5.9 (Medium). An attacker can exploit it remotely over the network, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 0.60% probability of exploitation activity in the next 30 days, higher than 50% of all scored vulnerabilities. Microsoft released the fix on 30 April 2026, outside Patch Tuesday. It affects 5 products in 1 product family (Open Source Software).
Key facts
- CVE ID
- CVE-2026-40356
- Severity
- Medium CVSS 5.9
- Microsoft severity
- Moderate
- Exploited in the wild
- No
- Publicly disclosed
- No
- Weakness
- CWE-191
- EPSS
- 0.60% (percentile 50%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- April 2026 Patch Tuesday
- Product families
- Open Source Software
CVSS score and vector
Microsoft scores CVE-2026-40356 at 5.9 (temporal 5.4) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U
| Metric | Value |
|---|---|
| Attack vector | Network |
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | None |
| Integrity impact | None |
| Availability impact | High |
| Exploit code maturity | Unproven |
Affected products (5)
Open Source Software
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| azl3 krb5 1.21.3-3 on Azure Linux 3.0 | CBL-Mariner Releases | Security Update | 1.21.3-4 | No |
| cbl2 krb5 1.19.4-5 on CBL Mariner 2.0 | ||||
| azl3 krb5 1.21.3-4 on Azure Linux 3.0 | CBL-Mariner Releases | Security Update | 1.21.3-4 | No |
| cbl2 krb5 1.19.4-5 on CBL-Mariner 2.0 | Release Notes | Security Update | ||
| azl4 krb5 1.22.2-9.azl4 on Azure Linux 4.0 | Release Notes | Security Update | 0:1.22.2-9.azl4 |
NIST NVD data
- NVD status
- Analyzed
- NVD CVSS
- 5.9 (MEDIUM)
- NVD weakness
- CWE-191
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| kerberos 5 | from 1.18.0, up to and including 1.22.2 |
References
- https://cems.fun/2026/04/27/krb5-two-unauthenticated-network-vulnerabilities.html (Exploit, Third Party Advisory, Patch)
- https://github.com/krb5/krb5/commit/2e75f0d9362fb979f5fc92829431a590a130929f (Patch)
- https://web.mit.edu/kerberos/advisories/ (Vendor Advisory)
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. | |
| 2.0 | Information published. | |
| 3.0 | Information published. | |
| 4.0 | Information published. | |
| 5.0 | Information published. |