0.13.0 - 2026-12-03
- Treat an installed GSSAPI provider with a missing native runtime as unavailable, allowing other authentication providers to work.
- Fix the
pyspnego-parseconsole script failing withTypeError: main() missing 1 required positional argument: 'args' - Security fixes for the NTLM acceptor
- Fix authentication bypass where an
AUTHENTICATEmessage with only an LM response andNTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITYwas accepted without knowledge of the password- With extended session security the LM response contains no password derived data, an NT response is now required
- Reject an
AUTHENTICATEmessage whoseMsvAvFlagsstate a MIC is present but has been modified to remove the MIC - When the acceptor has channel bindings, reject NTLMv1 responses as they cannot provide channel bindings
- Use constant time comparisons for the NT/LM responses, MIC, and message signatures
- Fix authentication bypass where an
- The NTLM initiator now only uses the flags it requested from the
CHALLENGEmessage - The NTLM initiator now fails if the acceptor does not negotiate 128-bit encryption, matching the Windows default for the
Minimum session security for NTLM SSP based clientspolicy- Set the env var
NTLM_ALLOW_WEAK_KEYS=1to allow 40 or 56-bit keys with legacy acceptors - This env var is temporary and will be removed in a future version once it is known whether it is needed in real world scenarios, please open an issue if you need to set it
- Set the env var
- Security fixes for the SPNEGO initiator
- Require the acceptor's
mechListMICwhen the acceptor selected a mech other than the initiator's preferred mech or sentrequest-mic, as per RFC 4178, to detect the mech list being altered to downgrade the mech - Only treat the negotiation as complete on
accept-completedonce the mech context has also completed - Fail when the acceptor selects a mech that was not offered
- Require the acceptor's
- Fix the SPNEGO acceptor passing the initiator's optimistic token to a mech it was not created for
- An acceptor without Kerberos failed when a Windows client offered Kerberos first, it now discards the token and continues with the next common mech like NTLM as per RFC 4178
- The
request-micstate is now based on the mech selected rather than the acceptor's preferred mech
- Fail when a completed SPNEGO context receives a
NegTokenInitor no token rather than restarting the negotiation while still reporting it is complete - Fix SPNEGO
new_context()not keeping the credentials of the original context and only supporting the mech that was selected by the original context - Fix GSSAPI
GSS_S_BAD_NAMEandGSS_S_BAD_MICerrors not being mapped toBadNameErrorandBadMICError - Fix the memory leak of the in-memory Kerberos credential cache created for a
PasswordorKerberosKeytabcredential with GSSAPI- The cache, containing the TGT, was never destroyed and is now destroyed once the credential is no longer used
- Security fixes for the CredSSP acceptor
- Require a 32 byte
clientNoncewhen CredSSP version 5 or newer is negotiated, an initiator could omit it to bypasscredssp_min_protocoland use the public key binding without the CVE-2018-0886 mitigations - Use a constant time comparison for the
pubKeyAuthvalue
- Require a 32 byte
- Fix CredSSP
new_context()not keeping thecredssp_tls_contextandcredssp_min_protocolsettings- The new context used the default TLS context, which does not verify the server certificate, and allowed any CredSSP version
- Read the CredSSP TLS data in 16 KiB chunks, the size of a TLS record, rather than 1 KiB to speed up
unwrap()on large messages
What's Changed
- Bump version after release by @jborean93 in #114
- Update integration tests by @jborean93 in #115
- Handle missing native runtimes in optional GSSAPI imports by @omrzk in #118
- Follow up on GSSAPI import fix by @jborean93 in #119
- Fix up CI for new Ubuntu runners by @jborean93 in #120
- Update GSSAPI known issues for released upstream fixes by @skywalkw3r in #116
- Migrate to uv lock files and CI workflow by @jborean93 in #121
- Bump ruff from 0.16.4 to 0.17.6 in the uv group by @dependabot[bot] in #122
- Fix NTLM acceptor authentication bypass and harden NTLM security by @jborean93 in #123
- Fix SPNEGO mech negotiation and GSSAPI credential issues by @jborean93 in #124
- Fix CredSSP acceptor nonce check and new_context settings by @jborean93 in #125
- Fix pyspnego-parse script arg reading by @jborean93 in #126
- Prepare for v0.13.0 release by @jborean93 in #127
New Contributors
- @omrzk made their first contribution in #118
- @skywalkw3r made their first contribution in #116
- @dependabot[bot] made their first contribution in #122
Full Changelog: v0.12.4...v0.13.0