CVE-2015-8325
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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | openssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | openssh | Fixed | 1:6.6p1-2ubuntu2.7 | UBUNTU-CVE-2015-8325 |
| Debian 14 | openssh | Fixed | 1:7.2p2-3 | DEBIAN-CVE-2015-8325 |
| Debian 13 | openssh | Fixed | 1:7.2p2-3 | DEBIAN-CVE-2015-8325 |
| Debian 12 | openssh | Fixed | 1:7.2p2-3 | DEBIAN-CVE-2015-8325 |
| Red Hat Enterprise Linux 7 | openssh | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | openssh-askpass | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | openssh-clients | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | openssh-keycat | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | openssh-ldap | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | openssh-server | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | openssh-server-sysvinit | Fixed | 0:6.6.1p1-31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 7 | pam_ssh_agent_auth | Fixed | 0:0.9.3-9.31.el7 | RHSA-2016:2588 |
| Red Hat Enterprise Linux 6 | openssh | Fixed | 0:5.3p1-122.el6 | RHSA-2017:0641 |
| Red Hat Enterprise Linux 6 | openssh-askpass | Fixed | 0:5.3p1-122.el6 | RHSA-2017:0641 |
| Red Hat Enterprise Linux 6 | openssh-clients | Fixed | 0:5.3p1-122.el6 | RHSA-2017:0641 |
| Red Hat Enterprise Linux 6 | openssh-ldap | Fixed | 0:5.3p1-122.el6 | RHSA-2017:0641 |
| Red Hat Enterprise Linux 6 | openssh-server | Fixed | 0:5.3p1-122.el6 | RHSA-2017:0641 |
| Red Hat Enterprise Linux 6 | pam_ssh_agent_auth | Fixed | 0:0.9.3-122.el6 | RHSA-2017:0641 |
| Red Hat Enterprise Linux 5 | openssh | Will not fix Will not fix | ||
| Alpine Linux 3.2 | openssh | Fixed | 6.8_p1-r10 | ALPINE-CVE-2015-8325 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2016/dsa-3550 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2017-0641.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-2588.html (vendor-advisory)
- https://security.gentoo.org/glsa/201612-18 (vendor-advisory)
References
- http://www.securityfocus.com/bid/86187
- http://www.debian.org/security/2016/dsa-3550
- https://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-8325.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1328012
- http://rhn.redhat.com/errata/RHSA-2017-0641.html
- http://rhn.redhat.com/errata/RHSA-2016-2588.html
- http://www.securitytracker.com/id/1036487
- https://anongit.mindrot.org/openssh.git/commit/?id=85bdcd7c92fe7ff133bbc4e10a65c91810f88755
- https://security-tracker.debian.org/tracker/CVE-2015-8325
- https://security.gentoo.org/glsa/201612-18
- https://security.netapp.com/advisory/ntap-20180628-0001/
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.