Skip to content
OpenAdvisories
High · 8.2 CVE-2025-59937 EUVD-2025-31582GHSA-wpwj-69cm-q9c5GO-2025-3988

go-mail has insufficient address encoding when passing mail addresses to the SMTP client

Published Sep 29, 2025 · Updated Sep 30, 2025 · Assigned by GitHub_M

Description

go-mail is a comprehensive library for sending mails with Go. In versions 0.7.0 and below, due to incorrect handling of the mail.Address values when a sender- or recipient address is passed to the corresponding MAIL FROM or RCPT TO commands of the SMTP client, there is a possibility of wrong address routing or even ESMTP parameter smuggling. For successful exploitation, it is required that the user's code allows for arbitrary mail address input (i. e. through a web form or similar). If only static mail addresses are used (i. e. in a config file) and the mail addresses in use do not consist of quoted local parts, this should not affect users. This issue is fixed in version 0.7.1

Affected products

VendorProductAffectedFixed
wneessen go-mail < 0.7.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20251105T184115-1.1 openSUSE-SU-2025:15710-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gitea +1 1.24.6-r1 —
Wolfi rolling sftpgo 2.6.6-r9 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/wneessen/go-mail < 0.7.1 0.7.1 GHSA-wpwj-69cm-q9c5

Advisories 2

References