Repository navigation
[SECURITY] maddy 0.9.8 #908
foxcpp
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
This release includes fixes for two reported security issues: IMAP
parsing now limits command size and nesting depth, and LDAP
authentication cleanup avoids a nil-pointer panic in a connection error
path.
Operators using IMAP or LDAP authentication should upgrade to receive
these fixes.
IMAP behavior is corrected for read-only
EXAMINEsessions andRENAME INBOX, and searches usingSINCEorONnow include messages from thespecified day. The release also adds optional SMTP reverse-DNS lookup
control, bounded command execution for
check.command, andplatform-specific default directories.
Security
(GHSA-3gp8-jmrg-pq2v).
The IMAP parser now rejects excessively long commands and deeply nested
lists, limiting resource use while parsing client input. Previously, a
client able to reach an IMAP listener could send input without these
parser bounds.
Affects configurations exposing an IMAP endpoint to clients. No
additional configuration is required for the parser limits.
(GHSA-854c-vjm7-rqw8).
If rebinding a pooled LDAP connection failed, cleanup could clear the
shared connection and then dereference it while trying to close it
again, panicking the process. Cleanup now returns after invalidating the
connection.
Affects configurations using
auth.ldap; the problematic path requiresa rebind failure while returning a connection to the pool.
Bug fixes
CLOSE, andreject
MOVEandUID MOVEon a read-only selection (IMAP EXAMINE removes \Deleted messages on CLOSE #906).RENAME INBOX, make the new emptyINBOXvisible in the same session while preserving messages in the renamed
mailbox (IMAP RENAME INBOX returns OK but same-session SELECT INBOX opens the old mailbox (stale users.inboxId) #907).
SINCEand
ONsearches (IMAP SEARCH SINCE/ON incorrectly excludes current day #887).avoiding a data race (data race in go-imap-sql #886).
asynchronous delivery does not race with changes to session state
(data race in SMTP endpoint vs target.queue #899).
Argon2 hashes (Upstream SCys bug fixes #888) (PR auth/pass_table: Return an error for malformed argon2 hashes instead of panicking #891, thanks @kabeer7121).
auth_maponly once during SASL LOGIN authentication.delivery errors.
override bypassed MX authentication policies.
TLS endpoints explicitly because the milter client does not support
TLS.
lists, including supported legacy character sets (Bug: DMARC rejects valid RFC 2047 From headers with KOI8-R / Windows-1251 #894).
Improvements
rdns_lookupto disable client reverse-DNSlookups. It defaults to
yes; setting it tonoskips PTR lookupsand dependent checks (endpoint/smtp: Allow to disable rDNS lookup #150) (PR feat(endpoint/smtp): Add rdns_lookup option #889, thanks @kabeer7121).
timeoutandinterrupt_timeoutcontrols forexternal commands. Both default to one minute; a timed-out command
receives SIGINT and is killed if it does not stop within the interrupt
timeout.
close message-body readers after filtering.
and BSD. Windows uses
%ProgramData%\maddyfor configuration,separate
dataandrundirectories, and%ProgramFiles%\maddyforlibexec. macOS and BSD use
/var/run/maddyfor runtime files and/usr/lib/maddyfor libexec (Add appropriate state_dir/runtime_dir values for non-Linux platforms #290) (PR feat(config): add appropriate default directories for non-Linux platforms #900, thanks @AdamMagued).tcp4,tcp6,fdandfdnameendpoint addresses,including TLS modifiers for inherited file descriptors.
no entry for a username, while keeping client-facing authentication
errors generic (Error Message should Validate Username is in Domain for Authentication Error #649) (PR feat: log specific diagnostics for unknown authentication usernames #890, thanks @mvanhorn).
expand_placeholdersdirectivewhile retaining the old
expand_replaceholdersspelling with adeprecation warning (docs: table.chain +tag example doesn't parse, and table.regexp documents the wrong directive name #896) (PR fix(table/regexp): rename expand_replaceholders to expand_placeholders #902, thanks @troioi-vn).
Documentation
+tagstripping example fortable.chain(docs: table.chain +tag example doesn't parse, and table.regexp documents the wrong directive name #896) (PRdocs(table/chain): fix the +tag stripping example #898, thanks @troioi-vn).
Misc
collisions
races in test code.
This discussion was created from the release [SECURITY] maddy 0.9.8.
All reactions