CVE catalog

CVE-2004-2771

bsd-mailx: CVE-2004-2771

[CVE catalog]

Severity
High · CVSS 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P
Published
Source
[NVD] · [CVE record]
EPSS
6.86% · Oct 25, 2026

The expand function in fio.c in Heirloom mailx 12.5 and earlier and BSD mailx 8.1.2 and earlier allows remote attackers to execute arbitrary commands via shell metacharacters in an email address.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianbsd-mailxsid8.1.2-0.20220412cvs-1.1fixed
Debianbsd-mailxforky8.1.2-0.20220412cvs-1.1fixed
Debianbsd-mailxtrixie8.1.2-0.20220412cvs-1.1fixed
Debianbsd-mailxbookworm8.1.2-0.20220412cvs-1fixed
CpelinuxNot reportedNot reportedunknown
Cpeenterprise_linuxNot reportedNot reportedunknown
Cpebsd_mailxNot reportedNot reportedunknown
CpemailxNot reportedNot reportedunknown
Opensusemailxtumbleweed12.5-24.4fixed
Ubuntuheirloom-mailx14.0412.5-2vulnerable
Ubuntuheirloom-mailx14.0412.5-2+deb7u1build0.14.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianbsd-mailxsourcesid8.1.2-0.20071201cvs-1not yet assignedNot reportedNot reported
Debianbsd-mailxsourceforky8.1.2-0.20071201cvs-1not yet assignedNot reportedNot reported
Debianbsd-mailxsourcetrixie8.1.2-0.20071201cvs-1not yet assignedNot reportedNot reported
Debianbsd-mailxsourcebookworm8.1.2-0.20071201cvs-1not yet assignedNot reportedNot reported
Opensusemailxrpmtumbleweed12.5-24.4Not reportedOPENSUSE-SU-2024:10561-1Not reported
Ubuntuheirloom-mailxdeb14.0412.5-2+deb7u1build0.14.04.1Not reportedUBUNTU-CVE-2004-2771Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [bsd-mailx]Fixed
    Details (2)
    • 8.1.2-0.20220412cvs-1 · amd64 · bookworm

      Fixed · Fixed: 8.1.2-0.20071201cvs-1

      dsa · bsd-mailx · debian · bookworm; dsa · bsd-mailx · debian · 12

    • 8.1.2-0.20220412cvs-1 · arm64 · bookworm

      Fixed · Fixed: 8.1.2-0.20071201cvs-1

      dsa · bsd-mailx · debian · bookworm; dsa · bsd-mailx · debian · 12

[Debian 13 (Trixie)]

  • [bsd-mailx]Fixed
    Details (2)
    • 8.1.2-0.20220412cvs-1.1 · amd64 · trixie

      Fixed · Fixed: 8.1.2-0.20071201cvs-1

      dsa · bsd-mailx · debian · 13

    • 8.1.2-0.20220412cvs-1.1 · arm64 · trixie

      Fixed · Fixed: 8.1.2-0.20071201cvs-1

      dsa · bsd-mailx · debian · 13

[openSUSE Tumbleweed]

  • [mailx]Fixed

    Source package: [mailx]

    Details (1)
    • 12.5-39.5 · x86_64 · tumbleweed

      Fixed · Fixed: 12.5-24.4

      dsa · mailx · opensuse · tumbleweed

Observed:

References