Description
The do_setup_env function in session.c in sshd in OpenSSH through 7.2p2, when the UseLogin feature is enabled and PAM is configured to read .pam_environment files in user home directories, allows local users to gain privileges by triggering a crafted environment for the /bin/login program, as demonstrated by an LD_PRELOAD environment variable.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | openssh | 1:7.2p2-3 | — |
| Debian 13 | openssh | 1:7.2p2-3 | — |
| Debian 12 | openssh | 1:7.2p2-3 | — |
| Debian 8 | openssh | 1:6.7p1-5+deb8u2 | DSA-3550-1 |
| Debian 7 | openssh | 1:6.0p1-4+deb7u4 | DSA-3550-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | openssh | 1:6.6p1-2ubuntu2.7 | USN-2966-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | openssh +6 | 6.6.1p1-31.el7 | RHSA-2016:2588 |
| RHEL 7 | pam_ssh_agent_auth | 0.9.3-9.31.el7 | RHSA-2016:2588 |
| RHEL 6 | openssh +4 | 5.3p1-122.el6 | RHSA-2017:0641 |
| RHEL 6 | pam_ssh_agent_auth | 0.9.3-122.el6 | RHSA-2017:0641 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | openssh +1 | 6.6p1-42.1 | SUSE-SU-2016:1386-1 |
| SLES 12 | openssh +1 | 6.6p1-42.1 | SUSE-SU-2016:1386-1 |
| SLES 11 SP4 | openssh | 6.6p1-21.1 | SUSE-SU-2016:1528-1 |
| SLES 11 SP4 | openssh-askpass-gnome | 6.6p1-21.3 | SUSE-SU-2016:1528-1 |
| SLES 11 SP3 | openssh | 6.2p2-0.33.2 | SUSE-SU-2016:2388-1 |
| SLES 11 SP3 | openssh-askpass-gnome | 6.2p2-0.33.5 | SUSE-SU-2016:2388-1 |
| SLES 11 | openssh-openssl1 | 6.6p1-15.1 | SUSE-SU-2016:2555-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | openssh +1 | 6.6p1-42.1 | SUSE-SU-2016:1386-1 |
| SLES for SAP 12 | openssh +1 | 6.6p1-42.1 | SUSE-SU-2016:1386-1 |
| SLES for SAP 11 SP4 | openssh | 6.6p1-21.1 | SUSE-SU-2016:1528-1 |
| SLES for SAP 11 SP4 | openssh-askpass-gnome | 6.6p1-21.3 | SUSE-SU-2016:1528-1 |
| SUSE OpenStack Cloud 5 | openssh | 6.2p2-0.33.2 | SUSE-SU-2016:2388-1 |
| SUSE OpenStack Cloud 5 | openssh-askpass-gnome | 6.2p2-0.33.5 | SUSE-SU-2016:2388-1 |
| SUSE Manager Proxy 2.1 | openssh | 6.2p2-0.33.2 | SUSE-SU-2016:2388-1 |
| SUSE Manager Proxy 2.1 | openssh-askpass-gnome | 6.2p2-0.33.5 | SUSE-SU-2016:2388-1 |
| SUSE Manager 2.1 | openssh | 6.2p2-0.33.2 | SUSE-SU-2016:2388-1 |
| SUSE Manager 2.1 | openssh-askpass-gnome | 6.2p2-0.33.5 | SUSE-SU-2016:2388-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | openssh | 6.2p2-0.33.2 | SUSE-SU-2016:2388-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | openssh-askpass-gnome | 6.2p2-0.33.5 | SUSE-SU-2016:2388-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | openssh | 7.2p2-3.1 | openSUSE-SU-2024:10174-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.2 | openssh | 6.8_p1-r10 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | openssh +6 | 6.6.1p1-31.el7 | ELSA-2016-2588 |
| Oracle Linux 7 | pam_ssh_agent_auth | 0.9.3-9.31.el7 | ELSA-2016-2588 |
Advisories 13
- RHSA-2017:0641 Red Hat Security Advisory: openssh security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2016:2588 Red Hat Security Advisory: openssh security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-2966-1 openssh vulnerabilities Ubuntu Security Notices (USN) · Jun 1, 2026
- DSA-3550-1 openssh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10174-1 openssh-7.2p2-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1528-1 Security update for openssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2555-1 Security update for openssh-openssl1 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2388-1 Security update for openssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1386-1 Security update for openssh SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1053 OpenSSH: Schwachstelle ermöglicht Privilegieneskalation BSI CERT-Bund (WID) · May 7, 2024
- ICSA-22-349-21 Siemens SCALANCE X-200RNA Switch Devices CISA ICS & IT advisories · Dec 13, 2022
- SSA-412672 SSA-412672: Multiple OpenSSL and OpenSSH Vulnerabilities in SCALANCE X-200RNA Switch Devices before V3.2.7 Siemens ProductCERT · Dec 13, 2022
- ELSA-2016-2588 Moderate: openssh security, bug fix, and enhancement update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 9, 2016
References
- 86187 vdb-entry
- DSA-3550 vendor-advisory
- https://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-8325.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1328012
- RHSA-2017:0641 vendor-advisory
- RHSA-2016:2588 vendor-advisory
- 1036487 vdb-entry
- https://anongit.mindrot.org/openssh.git/commit/?id=85bdcd7c92fe7ff133bbc4e10a65c91810f88755
- https://security-tracker.debian.org/tracker/CVE-2015-8325
- GLSA-201612-18 vendor-advisory
- https://security.netapp.com/advisory/ntap-20180628-0001/
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf