CVE-2018-16741
published 2018-09-13CVE-2018-16741: An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent…
PriorityP340high7.8CVSS 3.0
AVLACLPRLUINSUCHIHAH
EPSS
1.32%
67.3th percentile
An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent command injection. It is possible to use the ||, &&, or > characters within a file created by the "faxq-helper activate " command.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| 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.07.2HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
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-g9c8-38wc-phh5: An issue was discovered in mgetty before 1
ghsa_unreviewed·2022-05-13
CVE-2018-16741 [HIGH] CWE-78 GHSA-g9c8-38wc-phh5: An issue was discovered in mgetty before 1
An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent command injection. It is possible to use the ||, &&, or > characters within a file created by the "faxq-helper activate " command.
OSV
CVE-2018-16741: An issue was discovered in mgetty before 1
osv·2018-09-13·CVSS 7.8
CVE-2018-16741 [HIGH] CVE-2018-16741: An issue was discovered in mgetty before 1
An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent command injection. It is possible to use the ||, &&, or > characters within a file created by the "faxq-helper activate " command.
Red Hat
mgetty: command injection in faxrunq
vendor_redhat·2018-09-11·CVSS 7.8
CVE-2018-16741 [HIGH] CWE-77 mgetty: command injection in faxrunq
mgetty: command injection in faxrunq
An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent command injection. It is possible to use the ||, &&, or > characters within a file created by the "faxq-helper activate " command.
A command injection flaw was discovered in mgetty in the faxrunq script used to send queued faxes. The shell script faxrunq does not properly escape the arguments passed to faxsend before evaluating the command allowing a user, who has permissions to queue faxes in the system, to execute arbitrary command with elevated privileges.
Mitigation: Allow only trusted users to run the faxq-helper binary, by correctly setting the /etc/mgetty+sendfax/fax.allow configuration fil
Debian
CVE-2018-16741: mgetty - An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the functi...
vendor_debian·2018·CVSS 7.8
CVE-2018-16741 [HIGH] CVE-2018-16741: mgetty - An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the functi...
An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent command injection. It is possible to use the ||, &&, or > characters within a file created by the "faxq-helper activate " command.
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-16741 mgetty: command injection in faxrunq
bugzilla·2018-09-13·CVSS 7.8
CVE-2018-16741 [HIGH] CVE-2018-16741 mgetty: command injection in faxrunq
CVE-2018-16741 mgetty: command injection in faxrunq
An issue was discovered in mgetty before 1.2.1. The shell script faxrunq does not properly escape arguments passed to faxsend and that may lead to command injection. A local user may use faxq-helper to sneak in some shell metacharacters (e.g. ||, &&, >) in the fax job file, that will be later parsed by faxrunq.
References:
https://lists.debian.org/debian-lts-announce/2018/09/msg00012.html
https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgetty/
Discussion:
Created mgetty tracking bugs for this issue:
Affects: fedora-all [bug 1628755]
---
Created attachment 1484634
upstream patch
This patch was extracted from mgetty-1.2.1
---
faxrunq SHELL script does not properly escape the parameters before evaluating
the command to send th
Bugzilla
CVE-2018-16741 mgetty: command injection in fax/faxq-helper.c [fedora-all]
bugzilla·2018-09-13·CVSS 7.8
CVE-2018-16741 [HIGH] CVE-2018-16741 mgetty: command injection in fax/faxq-helper.c [fedora-all]
CVE-2018-16741 mgetty: command injection in fax/faxq-helper.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
https://lists.debian.org/debian-lts-announce/2018/09/msg00012.htmlhttps://www.debian.org/security/2018/dsa-4291https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgettyhttps://lists.debian.org/debian-lts-announce/2018/09/msg00012.htmlhttps://www.debian.org/security/2018/dsa-4291https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgetty
2018-09-13
Published