ANNOUNCE: The 6.5.7.rc1 release of fetchmail is available (SMTP AUTH fixes & .netrc support - NO (START)TLS yet)
Matthias Andree via Fetchmail-announce <[email protected]> Wed, 8 Oct 2025 16:40:34 +0200
| Newsgroups | gmane.mail.fetchmail.announce |
|---|---|
| Message-ID | <aOZ34juBeqN2sxLB__29256.8789723859$1759934477$gmane$org@ryzen.an3e.de> |
--===============0476792637305943737==
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="J8ZTJ2vM4K9sSgGH"
Content-Disposition: inline
--J8ZTJ2vM4K9sSgGH
Content-Type: multipart/mixed; boundary="RlSK9f02XUfnGnQa"
Content-Disposition: inline
--RlSK9f02XUfnGnQa
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
The 6.5.7.rc1 release of fetchmail is now available at the usual locations,
including <https://downloads.sourceforge.net/project/fetchmail/branch_6.5/>.
Please test this especially if
+ you use SMTP AUTH (esmtppassword)
+ and/or want to store your SMTP passwords in .netrc
and share feedback mentioning the 6.5.7.rc1 version via list,
by e-mail or, if you find a bug, Gitlab issue (account required) at=20
https://gitlab.com/fetchmail/fetchmail/-/issues -
note for bug reports that AUTH PLAIN and AUTH LOGIN data must be redacted
=66rom your reports, these can be reversed to reveal your password!
Reminder: only subscribers to the fetchmail mailing lists can send mail the=
re.
=20
Plan:
I intend this to further clean up the SMTP AUTH code, which I saw necessary
when fixing the security bug in 6.5.6, and collect the translations, which
I could not wait for when making the security bugfix release.=20
If we don't see regressions, I intend to release 6.5.7 in c. 10 days.
Afterwards, I intend to quickly follow up with an unplanned but necessary
fetchmail 6.6.0 feature release that will add TLS and STARTTLS support for
SMTP because we don't have strong protection for SMTP passwords yet.
The source archive is available at:
<https://downloads.sourceforge.net/project/fetchmail/branch_6.5/fetchmail-6=
=2E5.7.rc1.tar.xz/download>
The detached GnuPG signature is available at:
<https://downloads.sourceforge.net/project/fetchmail/branch_6.5/fetchmail-6=
=2E5.7.rc1.tar.xz.asc/download>
The SHA256 hashes for the tarballs are:
SHA2-256(fetchmail-6.5.7.rc1.tar.xz)=3D 2aa57f8cfe117dcfaf0a481a8c607dc401c=
15603bcb641bc610ec794c398cb9a
Here are the release notes:
---------------------------------------------------------------------------=
-----
fetchmail-6.5.7 (not yet released):
## BUGFIX:
* When authenticating to an SMTP server, the AUTH LOGIN method (which didn't
become a proposed standard, and is only the third method fetchmail would =
try,
if CRAM-MD5 and PLAIN weren't offered) required that the server returned
a 334 code followed by a blank and by a decodable base64 challenge we ign=
ored
anyways. This is in line with RFC 4952.
However, to improve compatibility, fetchmail now accepts anything that
starts with "334 " and disregards the remainder of the line.
At the same time, AUTH LOGIN was deprecated. AUTH PLAIN should be availab=
le
everywhere AUTH LOGIN is, and is specified in IETF RFC 4616.
* When authenticating to an SMTP server, i. e. esmtpname/esmtppassword are
defined, check for errors, and skip servers that do not understand EHLO,
because we cannot negotiate supported authentication schemes with them.
This should avoid attempting to send a lot of messages and see them rejec=
ted.
* When authenticating to an SMTP server, do not send client abort "*" when
we receive any other server reply but 334.
* Extend 6.5.6's RFC-5321 address-literal fix to MAIL FROM:<>. This might
apply when we only have a server's IP address and need to quality
addresses without domain. Fixes Debian Bug#1080025.
* SMTP AUTH can now look up passwords from the .netrc file - for that,
fetchmail's esmtpname setting must match the login for the given host in
.netrc. Fixes Debian Bug#1056651 by Ticker Berkin.
## TRANSLATION UPDATES were contributed by these fine people - thank you!
* cs: Petr Pisar [Czech]
* eo: Keith Bowes [Esperanto]
* es: Cristian Oth=F3n Mart=EDnez Vera [Spanish]
* fr: Fr=E9d=E9ric Marchal [French]
* ja: Takeshi Hamasaki [Japanese]
* pl: Jakub Bogusz [Polish]
* ro: Remus-Gabriel Chelu [Romanian]
* sv: G=F6ran Uddeborg [Swedish]
---------------------------------------------------------------------------=
----
--RlSK9f02XUfnGnQa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=fetchmail-SA-2025-01.txt
Content-Transfer-Encoding: quoted-printable
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
fetchmail-SA-2025-01: SMTP AUTH denial of service
Topics: fetchmail SMTP client can crash when authenticating
Author: Matthias Andree
Version: 1.0
Announced: 2025-10-03
Type: failure to validate network input in certain configurations
Impact: fetchmail tries to read from address 1 and can crash
Severity: moderate
URL: https://www.fetchmail.info/fetchmail-SA-2025-01.txt
Project URL: https://www.fetchmail.info/
CVE Name: pending, requested via MITRE as CNA-LR
Affects: - fetchmail releases up to and including 6.5.5
- fetchmail 7.0.0 pre-releases
Not affected: - fetchmail 6.5 releases 6.5.6 and newer
Introduced in: 2002-03-09 fetchmail release 5.9.9 added SMTP AUTH
Corrected in: 2025-10-03 Git commit 4c3cebfa4e659fb778ca2cae0ccb3f69201609a8
2025-10-03 fetchmail release 6.5.6
1. Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
fetchmail is a software package to retrieve mail from remote POP3, IMAP,
ETRN or ODMR servers and forward it to local SMTP, LMTP servers or
message delivery agents.
fetchmail defaults to using the SMTP server on "localhost"
and to not attempting to authenticate, unless configured otherwise.
fetchmail also supports a "daemon" mode, where it runs over extended time
and periodically polls the upstream servers. This can detach fetchmail
=66rom the controlling terminal into the background, or - with a "nodetach"=
setting
- - keep attached to the controlling terminal, which also eases use by
service supervisors.
2. Problem description and Impact
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
fetchmail's SMTP client, when configured to authenticate [1], is susceptible
to a protocol violation where, when a trusted but malicious or malfunctioni=
ng
SMTP server responds to an authentication request with a "334" code but wit=
hout a
following blank on the line, it will attempt to start reading from memory
address 0x1 to parse the server's SASL challenge. This address is constant =
and not
under the attacker's control. This event will usually cause a crash of fetc=
hmail.
If fetchmail in this situation was running in daemon mode, this mode is a=
lso
terminated by the crash.
[1] This requires the esmtpname and esmtppassword options to be configured =
in
the configuration file and the plugout and mda options to be inactive.
As a word of warning, this vulnerability has eluded several static code ana=
lyzers.
3. Solutions
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
General recommendation: if running fetchmail in the background or in daemon
mode, ensure that the daemon is supervised and crashes are reported so that
action can be taken about the malfunctioning SMTP server, or on fetchmail's=
end
to replace local delivery by different server or other means.
3a. Install fetchmail 6.5.6 or newer.
The fetchmail source code is available from
<https://sourceforge.net/projects/fetchmail/files/> and
<https://gitlab.com/fetchmail/fetchmail/-/releases>
The Git-based source code repository is currently published via
https://gitlab.com/fetchmail/fetchmail/-/tree/legacy_6x (primary)
https://sourceforge.net/p/fetchmail/git/ci/legacy_6x/tree/ (copy)
3b. Apply the smtp.c patch from the URL below and rebuild fetchmail:
<https://gitlab.com/fetchmail/fetchmail/-/commit/4c3cebfa4e659fb778ca2cae0c=
cb3f69201609a8>
A. Copyright, License and Non-Warranty
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(C) Copyright 2025 by Matthias Andree, <[email protected]>.
Some rights reserved.
This file is licensed under CC BY-ND 4.0. To view a copy of this license,
visit <http://creativecommons.org/licenses/by-nd/4.0/>
THIS WORK IS PROVIDED FREE OF CHARGE AND WITHOUT ANY WARRANTIES.
Use the information herein at your own risk.
END of fetchmail-SA-2025-01
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE3EplW9mTzUhx+oIQ5BKxVu/zhVoFAmjfuj8ACgkQ5BKxVu/z
hVoXfRAApBdTub7EDpczbGlHfuqM96xFFRXHahETtL3sPSTNf+EB5CpBH+t5wV2M
zeYcdbYLgf0X/nT8+ua2lyP8c5YW5OOntINa49HOwYhTnIf/Msju4NS9RExigOxM
xpUAFNO8Mci79q7NWxrNJkOZIy5OfM1cTxXfECbibWjg2MsbZj7BaJu3E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EBYK+jSTpMAgi
VamIIUrmFr7DsKmCid71WptCI2mnvljEAFao12/8bp9QBwQG7sxDEHCJUdZXtuuN
KNZgomlsvgBSKJID56LFMNNuvwwLlOkKCM+3uB3X8eURNLiqjMEUCmHDc9NPw4Wi
0ryd3av44NlI7zGJ6PaO1gjetqFg99Vwk4bn8FtGpGRB7A9B7mBdTi6SaGPVNE/4
VFvfB3WaUDyItDUnx8yNO6gVY3MgBFQflpC8FJWbTb01dKsbQtGcvP4pCSasIK0K
u8Upr/dEeMALJjajhEAEASn+YLKDyAZXY92uvevyjULDcxXJynI=
=25/p
-----END PGP SIGNATURE-----
--J8ZTJ2vM4K9sSgGH--
--===============0476792637305943737==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============0476792637305943737==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Fetchmail-announce mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fetchmail-announce
--===============0476792637305943737==--