← Vulnerability feed

Vulnerability record · CVE-1999-0046 · published 6 February 1997

CVE-1999-0046: rlogin buffer overflow via TERM environment variable

BBsdi · Bsd Os

The rlogin program contains a classic buffer overflow (CWE-120) triggered through the TERM environment variable. Because rlogin is a network login service, a remote attacker can supply an oversized TERM value and corrupt memory. The record is old and thin: it names no specific affected versions and gives no patch reference.

10.0 CVSS 2.0 High EPSS 52% · top 1.1% CWE-120 · Classic buffer overflow
10.0CVSS 2.0 base score
52%EPSS exploitation probability, 30 days
NoNot in CISA KEV
10Affected product versions listed by NVD
2References
16 Jun 2026Last modified by NVD

Description

Buffer overflow of rlogin program using TERM environmental variable.

AV:N/AC:L/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

high priorityThe flaw is a remotely reachable, unauthenticated buffer overflow with a 10.0 CVSS 2.0 score and high EPSS, though it is not in KEV and the record lacks version and patch detail.

What it is

The rlogin program contains a classic buffer overflow (CWE-120) triggered through the TERM environment variable. Because rlogin is a network login service, a remote attacker can supply an oversized TERM value and corrupt memory. The record is old and thin: it names no specific affected versions and gives no patch reference.

Impact

Successful exploitation can crash the service or allow arbitrary code execution in the context of the rlogin process, which historically ran with elevated privileges. That gives an attacker a path to remote compromise of the host.

Attack surface

Reached over the network against the rlogin service, per the AV:N vector; the CVSS 2.0 vector shows no authentication (Au:N) and no user interaction. The attacker only needs to control the TERM value passed to the service.

Exploitation

Not listed in CISA KEV and no public exploit references are tagged in the record, but EPSS is high at roughly 0.52 (98.9th percentile), indicating elevated predicted exploitation activity.

What to do

  • Apply the vendor patch or upgrade for rlogin on the affected platform; this is a decades-old flaw, so confirm current support status with each vendor.
  • Disable rlogin/rsh services and replace them with SSH where still enabled.
  • Block TCP port 513 at network boundaries and restrict rlogin to trusted hosts if it cannot be removed.
  • Sanitize or length-limit the TERM environment variable before it reaches rlogin.
  • Monitor vendor advisories for the listed platforms (BSD variants, Solaris/SunOS, AIX, HP-UX, Ultrix, NEXTSTEP, Debian) since the record does not specify versions.

Detection

  • Search host and network logs for rlogin connections (TCP 513) from untrusted sources.
  • Alert on rlogin processes crashing or terminating abnormally, which may indicate overflow attempts.
  • Inspect process environments and login records for unusually long or malformed TERM values.
  • Audit hosts still running rlogin and confirm whether the service is exposed.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

10 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-1999-0046 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-1999-0046), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.