CVE-2018-16744
published 2018-09-13CVE-2018-16744: An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection…
PriorityP339high7.8CVSS 3.0
AVLACLPRLUINSUCHIHAH
EPSS
1.03%
59.5th percentile
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | mgetty | < mgetty 1.2.1-1 (bookworm) | mgetty 1.2.1-1 (bookworm) |
| mgetty_project | mgetty | < 1.2.1 | 1.2.1 |
| mgetty_project | mgetty | >= 0 < 1.2.1-1 | 1.2.1-1 |
| mgetty_project | mgetty | >= 0 < 1.2.1-1 | 1.2.1-1 |
| mgetty_project | mgetty | >= 0 < 1.2.1-1 | 1.2.1-1 |
| mgetty_project | mgetty | >= 0 < 1.2.1-1 | 1.2.1-1 |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-86wq-gv4v-p8jq: An issue was discovered in mgetty before 1
ghsa_unreviewed·2022-05-13
CVE-2018-16744 [HIGH] CWE-78 GHSA-86wq-gv4v-p8jq: An issue was discovered in mgetty before 1
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.
OSV
CVE-2018-16744: An issue was discovered in mgetty before 1
osv·2018-09-13·CVSS 7.8
CVE-2018-16744 [HIGH] CVE-2018-16744: An issue was discovered in mgetty before 1
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.
Red Hat
mgetty: Command injection in faxrec.c
vendor_redhat·2018-09-13·CVSS 7.8
CVE-2018-16744 [HIGH] CWE-78 mgetty: Command injection in faxrec.c
mgetty: Command injection in faxrec.c
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.
Mitigation: Make sure the `notify` option in /etc/mgetty+sendfax/mgetty.config does not contain characters that can be possibly interpreted by the shell and that the file is readable and writable only by root.
Package: mgetty (Red Hat Enterprise Linux 5) - Will not fix
Package: mgetty (Red Hat Enterprise Linux 6) - Will not fix
Package: mgetty (Red Hat Enterprise Linux 7) - Fix deferred
Debian
CVE-2018-16744: mgetty - An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c...
vendor_debian·2018·CVSS 7.8
CVE-2018-16744 [HIGH] CVE-2018-16744: mgetty - An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c...
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.
Scope: local
bookworm: resolved (fixed in 1.2.1-1)
bullseye: resolved (fixed in 1.2.1-1)
forky: resolved (fixed in 1.2.1-1)
sid: resolved (fixed in 1.2.1-1)
trixie: resolved (fixed in 1.2.1-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16745 mgetty: Stack-based buffer overflow in fax_notify_mail() in faxrec.c
bugzilla·2018-09-17·CVSS 7.8
CVE-2018-16745 [HIGH] CVE-2018-16745 mgetty: Stack-based buffer overflow in fax_notify_mail() in faxrec.c
CVE-2018-16745 mgetty: Stack-based buffer overflow in fax_notify_mail() in faxrec.c
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow a buffer overflow if long untrusted input can reach it.
References:
https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgetty
Discussion:
Created mgetty tracking bugs for this issue:
Affects: fedora-all [bug 1629980]
---
Mitigation:
Make sure the `notify` option in /etc/mgetty+sendfax/mgetty.config does not contain more than 150 characters and that the file is readable and writable only by root.
---
Only root can write to /etc/mgetty+sendfax/mgetty.config and set the `notify` option which `mail_to` is set to when the program runs. Thus, this flaw is very unlike
Bugzilla
CVE-2018-16744 mgetty: Command injection in faxrec.c
bugzilla·2018-09-17·CVSS 7.8
CVE-2018-16744 [HIGH] CVE-2018-16744 mgetty: Command injection in faxrec.c
CVE-2018-16744 mgetty: Command injection in faxrec.c
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.
References:
https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgetty
Discussion:
Created mgetty tracking bugs for this issue:
Affects: fedora-all [bug 1629976]
---
Only root can write to /etc/mgetty+sendfax/mgetty.config and set the `notify` option which `mail_to` is set to when the program runs.
---
Created attachment 1485085
upstream patch
This patch was extracted from mgetty-1.2.1
---
This flaw is very unlikely to be exploited since it requires the root account to set a wrong `notify` option.
---
Mitigation
Bugzilla
CVE-2018-16744 mgetty: Command injection in faxrec.c [fedora-all]
bugzilla·2018-09-17·CVSS 7.8
CVE-2018-16744 [HIGH] CVE-2018-16744 mgetty: Command injection in faxrec.c [fedora-all]
CVE-2018-16744 mgetty: Command injection in faxrec.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora.
2018-09-13
Published