CVE-2018-16743
published 2018-09-13CVE-2018-16743: An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can…
PriorityP339high7.8CVSS 3.0
AVLACLPRLUINSUCHIHAH
EPSS
0.45%
35.7th percentile
An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.
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.8LOW
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.
Red Hat
mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c
vendor_redhat·2018-09-13·CVSS 7.8
CVE-2018-16743 [HIGH] CWE-121 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c
mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c
An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.
Statement: This issue did not affect the versions of mgetty as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the patched login binary provided by mgetty.
Package: mgetty (Red Hat Enterprise Linux 5) - Not affected
Package: mgetty (Red Hat Enterprise Linux 6) - Not affected
Package: mgetty (Red Hat Enterprise Linux 7) - Not affected
Debian
CVE-2018-16743: mgetty - An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, t...
vendor_debian·2018·CVSS 7.8
CVE-2018-16743 [HIGH] CVE-2018-16743: mgetty - An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, t...
An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.
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)
GHSA
GHSA-63wf-289m-vgw6: An issue was discovered in mgetty before 1
ghsa_unreviewed·2022-05-13
CVE-2018-16743 [HIGH] CWE-787 GHSA-63wf-289m-vgw6: An issue was discovered in mgetty before 1
An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.
OSV
CVE-2018-16743: An issue was discovered in mgetty before 1
osv·2018-09-13·CVSS 7.8
CVE-2018-16743 [HIGH] CVE-2018-16743: An issue was discovered in mgetty before 1
An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16743 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c [fedora-all]
bugzilla·2018-09-17·CVSS 7.8
CVE-2018-16743 [HIGH] CVE-2018-16743 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c [fedora-all]
CVE-2018-16743 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.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
Bugzilla
CVE-2018-16743 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c
bugzilla·2018-09-17·CVSS 7.8
CVE-2018-16743 [HIGH] CVE-2018-16743 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c
CVE-2018-16743 mgetty: Stack-based buffer overflow with long username in contrib/next-login/login.c
An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.
References:
https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgetty
Discussion:
Created mgetty tracking bugs for this issue:
Affects: fedora-all [bug 1629974]
---
Statement:
This issue did not affect the versions of mgetty as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the patched login binary provided by mgetty.
2018-09-13
Published