The do_setup_env function in session.c in sshd in OpenSSH through 7.2p2, when the…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 16 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-264.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:a:openbsd:openssh:*:p2:*:*:*:*:*:* | up to 7.2 | Vulnerable | OpenBSD |
| cpe:2.3:o:canonical:ubuntu_core:15.04:*:*:*:*:*:*:* | 15.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* | 12.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:* | 15.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_touch:15.04:*:*:*:*:*:*:* | 15.04 | Vulnerable | Canonical |
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:a:openbsd:openssh:*:p2:*:*:*:*:*:* Versions up to 7.2 Vulnerable ·OpenBSD
- cpe:2.3:o:canonical:ubuntu_core:15.04:*:*:*:*:*:*:* Versions 15.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* Versions 12.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:* Versions 15.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_touch:15.04:*:*:*:*:*:*:* Versions 15.04 Vulnerable ·Canonical
Remediation
Red Hat 2 advisories
- RHSA-2017:0641 Released 2017-03-21 · Red Hat rating Moderateopenssh security and bug fix update
- Red Hat Enterprise Linux Desktop (v. 6) openssh-5.3p1-122.el6, openssh-askpass-5.3p1-122.el6, openssh-clients-5.3p1-122.el6 +1
- Red Hat Enterprise Linux Desktop Optional (v. 6) openssh-ldap-5.3p1-122.el6, pam_ssh_agent_auth-0.9.3-122.el6
- Red Hat Enterprise Linux HPC Node (v. 6) openssh-5.3p1-122.el6, openssh-clients-5.3p1-122.el6, openssh-server-5.3p1-122.el6
- Red Hat Enterprise Linux HPC Node Optional (v. 6) openssh-askpass-5.3p1-122.el6, openssh-ldap-5.3p1-122.el6, pam_ssh_agent_auth-0.9.3-122.el6
- Red Hat Enterprise Linux Server (v. 6) openssh-5.3p1-122.el6, openssh-askpass-5.3p1-122.el6, openssh-clients-5.3p1-122.el6 +1
- Red Hat Enterprise Linux Server Optional (v. 6) openssh-ldap-5.3p1-122.el6, pam_ssh_agent_auth-0.9.3-122.el6, pam_ssh_agent_auth-0.9.3-122.el6.ppc
- Red Hat Enterprise Linux Workstation (v. 6) openssh-5.3p1-122.el6, openssh-askpass-5.3p1-122.el6, openssh-clients-5.3p1-122.el6 +1
- Red Hat Enterprise Linux Workstation Optional (v. 6) openssh-ldap-5.3p1-122.el6, pam_ssh_agent_auth-0.9.3-122.el6
- RHSA-2016:2588 Released 2016-11-03 · Red Hat rating Moderateopenssh security, bug fix, and enhancement update
- Red Hat Enterprise Linux Client (v. 7) openssh-6.6.1p1-31.el7, openssh-askpass-6.6.1p1-31.el7, openssh-clients-6.6.1p1-31.el7 +2
- Red Hat Enterprise Linux Client Optional (v. 7) openssh-ldap-6.6.1p1-31.el7, openssh-server-sysvinit-6.6.1p1-31.el7, pam_ssh_agent_auth-0.9.3-9.31.el7
- Red Hat Enterprise Linux ComputeNode (v. 7) openssh-6.6.1p1-31.el7, openssh-clients-6.6.1p1-31.el7, openssh-keycat-6.6.1p1-31.el7 +1
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) openssh-askpass-6.6.1p1-31.el7, openssh-ldap-6.6.1p1-31.el7, openssh-server-sysvinit-6.6.1p1-31.el7 +1
- Red Hat Enterprise Linux Server (v. 7) openssh-6.6.1p1-31.el7, openssh-askpass-6.6.1p1-31.el7, openssh-clients-6.6.1p1-31.el7 +2
- Red Hat Enterprise Linux Server Optional (v. 7) openssh-ldap-6.6.1p1-31.el7, openssh-server-sysvinit-6.6.1p1-31.el7, pam_ssh_agent_auth-0.9.3-9.31.el7 +1
- Red Hat Enterprise Linux Workstation (v. 7) openssh-6.6.1p1-31.el7, openssh-askpass-6.6.1p1-31.el7, openssh-clients-6.6.1p1-31.el7 +2
- Red Hat Enterprise Linux Workstation Optional (v. 7) openssh-ldap-6.6.1p1-31.el7, openssh-server-sysvinit-6.6.1p1-31.el7, pam_ssh_agent_auth-0.9.3-9.31.el7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2016:2588 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2017:0641 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2016:2588 |
Timeline
- 2026-10-02 Threatist record created from CVE-2015-8325
- 2026-10-03 Alias added: GHSA-729x-x825-x8jf
References
Other 6
- https://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-8325.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1328012
- https://anongit.mindrot.org/openssh.git/commit/?id=85bdcd7c92fe7ff133bbc4e10a65c91810f88755
- https://security-tracker.debian.org/tracker/CVE-2015-8325
- https://security.netapp.com/advisory/ntap-20180628-0001/
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
Sources
- CVE-2015-8325 · CVE Program
- CVE-2015-8325 · NVD
- FIRST EPSS
- GHSA-729x-x825-x8jf · GitHub Advisory Database · CC BY 4.0
- CVE-2015-8325 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences