CVE-1999-1142: Sun Microsystems SunOS privilege escalation via LD_* environment variables

CVE-1999-1142 · Severity: high · CVSS 7.2 · Published 1992-05-27

A vulnerability in older versions of the SunOS operating system allows local users to gain administrative control of the system. By manipulating specific system settings used by common programs like login and mail services, an attacker can bypass security restrictions to execute commands with elevated privileges. This could lead to a complete compromise of the affected machine and unauthorized access to all stored data.

Technologies: Sunos. Vendors: Sun.

Quick answers

Is CVE-1999-1142 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-1999-1142 being exploited in the wild.
How severe is CVE-1999-1142?
High severity, with a CVSS score of 7.2, published 27 May 1992.
Which products and versions are affected?
Sun Microsystems SunOS 4.1.2 and earlier.
Is there a fix for CVE-1999-1142?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-1999-1142 attacked?
It is attacked with local access, in an operating system.
Am I affected by CVE-1999-1142?
Check whether you run Sunos. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

This vulnerability is a privilege escalation flaw involving the dynamic linker and environment variable handling in SunOS 4.1.2 and earlier. Local attackers can exploit this by setting 'LD_*' environment variables (such as LD_LIBRARY_PATH or LD_PRELOAD) when executing certain dynamically linked setuid or setgid binaries, including 'login', 'su', and 'sendmail'. The issue occurs specifically in programs that change their real and effective user IDs to the same user, failing to properly sanitize the environment before execution. Successful exploitation allows a non-privileged local user to execute arbitrary code with the privileges of the setuid/setgid program, typically resulting in root access. Patch information was originally released in Sun Security Bulletin #116 and CERT Advisory CA-1992-11.

Affected products

  • Sun Microsystems SunOS 4.1.2 and earlier

Timeline

  • 1992-05-27: advisory: NVD published date
  • 1992-12-31: advisory: CERT advisory CA-1992-11 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.