{"schemaVersion":3,"id":"CVE-2004-2771","aliases":["UBUNTU-CVE-2004-2771","DEBIAN-CVE-2004-2771"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2014-12-24T18:00:00.000Z","modified":"2024-08-08T01:36:25.354Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.06858,"percentile":0.93985,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.06858},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06858,"percentile":0.93985}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06858,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06858,"percentile":0.93985}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_20972F470F1FD08C","name":"Exploit Reference (bugs.debian.org)","source":"reference","url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278748","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"bsd_mailx_project","product":"bsd_mailx","name":"bsd mailx","label":"bsd_mailx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 8.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 8.1.2","eol":null,"hubHref":"/vendor/bsd_mailx_project/bsd_mailx"},{"vendor":"debian","product":"bsd-mailx","name":"bsd-mailx","label":"bsd-mailx","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/bsd-mailx","purlType":"deb","versions":[{"text":"< 8.1.2-0.20071201cvs-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.2-0.20071201cvs-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"heirloom-mailx","name":"heirloom-mailx","label":"heirloom-mailx","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/heirloom-mailx","purlType":"deb","versions":[{"text":"< 12.5-2+deb7u1build0.14.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.5-2+deb7u1build0.14.04.1","eol":null,"hubHref":null},{"vendor":"heirloom","product":"mailx","name":"mailx","label":"mailx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 12.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 12.5","eol":null,"hubHref":"/vendor/heirloom/mailx"},{"vendor":"oracle","product":"linux","name":"linux","label":"linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"6","noFixRecorded":false,"fixedIn":null},{"text":"7","noFixRecorded":false,"fixedIn":null}],"versionsText":"6 | 7","eol":{"isEol":true,"eolDate":"2021-03-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"6","label":"6","eolFrom":"2021-03-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"6.10"},"product":{"name":"oracle-linux","label":"Oracle Linux","category":"os"}},"hubHref":"/vendor/oracle/linux"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 7.0","eol":{"isEol":true,"eolDate":"2020-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"6","label":"6 (ELS)","eolFrom":"2020-11-30T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"6.10"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"}],"affectedCount":6,"eol":{"hasEol":true,"count":2},"references":[{"url":"http://linux.oracle.com/errata/ELSA-2014-1999.html","label":"linux.oracle.com/errata/ELSA-2014-1999.html","hostname":"linux.oracle.com","tags":["X Refsource CONFIRM"]},{"url":"http://www.debian.org/security/2014/dsa-3105","label":"www.debian.org/security/2014/dsa-3105","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN"]},{"url":"http://secunia.com/advisories/61693","label":"secunia.com/advisories/61693","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278748","label":"bugs.debian.org/cgi-bin/bugreport.cgi?bug=278748","hostname":"bugs.debian.org","tags":["X Refsource CONFIRM","Exploit"]},{"url":"http://seclists.org/oss-sec/2014/q4/1066","label":"seclists.org/oss-sec/2014/q4/1066","hostname":"seclists.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://secunia.com/advisories/60940","label":"secunia.com/advisories/60940","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://secunia.com/advisories/61585","label":"secunia.com/advisories/61585","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1999.html","label":"rhn.redhat.com/errata/RHSA-2014-1999.html","hostname":"rhn.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://ubuntu.com/security/CVE-2004-2771","label":"ubuntu.com/security/CVE-2004-2771","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-2771","label":"www.cve.org/CVERecord?id=CVE-2004-2771","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-2771","label":"security-tracker.debian.org/tracker/CVE-2004-2771","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-2771","label":"nvd.nist.gov/vuln/detail/CVE-2004-2771","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-114-1","DSA-3105-1","MGASA-2014-0538","OPENSUSE-SU-2024:10561-1","RHSA-2014:1999"],"duplicates":[],"related":["OPENSUSE-SU-2024:10561-1"]},"timeline":[{"kind":"published","date":"2014-12-24T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-08T01:36:25.354Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:17:04.433Z","stale":false,"partial":false}}