do_setup_env in sshd allows local users to gain privileges
Multiple products
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.1
- Published:
- Updated:
- EPSS:
- 0.602%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Local
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:openbsd | openssh | Affected versions: ≤ 7.2 |
| Vendor:Canonical | ubuntu core | Affected versions: 15.04 |
| Vendor:Canonical | ubuntu linux | Affected versions:12.04Show full version range for ubuntu linux14.0415.10 |
| Vendor:Canonical | ubuntu touch | Affected versions: 15.04 |
| Vendor:Debian | debian linux | Affected versions:7.0Show full version range for debian linux8.0 |
| Vendor:Debian | openssh-clientEnvironments (4)
| Affected versions: < 1:7.2p2-3 |
| Vendor:Debian | openssh-client-dbgsymEnvironments (4)
| Affected versions: < 1:7.2p2-3 |
| Vendor:Debian | openssh-client-ssh1Environments (4)
| Affected versions: < 1:7.2p2-3 |
| Vendor:Debian | openssh-client-ssh1-dbgsymEnvironments (4)
| Affected versions: < 1:7.2p2-3 |
| Vendor:Debian | openssh-client-udebEnvironments (4)
| Affected versions: < 1:7.2p2-3 |
1–10 of 203 · Page 1 of 21
CVSS scores and metrics16
CISA-ADP · CVE List / CNA (adp)Primary7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hnvd · Wazuh CTI (cna)7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H[email protected] · NVD (Primary)7.8 / 10HighCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hnvd · Wazuh CTI (cna)7.8 / 10HighCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat · Wazuh CTI (adp)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hcanonical · Wazuh CTI (adp)7.8 / 10HighCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Halas · Wazuh CTI (adp)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HRed Hat · Red Hat VEX (adp)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HSUSE · SUSE VEX (adp)7.8 / 10HighCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H[email protected] · NVD (Primary)7.2 / 10HighCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:C/I:C/A:Calas · Wazuh CTI (adp)6.2 / 10MediumCVSS 2.0Details
- Attack complexity
- High
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:H/Au:N/C:C/I:C/A:Credhat · Wazuh CTI (adp)6.2 / 10MediumCVSS 2.0Details
- Attack complexity
- High
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:H/Au:N/C:C/I:C/A:Coraclelinux · Wazuh CTI (adp)6.2 / 10MediumCVSS 2.0Details
- Attack complexity
- High
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:H/Au:N/C:C/I:C/A:Cnvd · Wazuh CTI (cna)7.2 / 10HighCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:C/I:C/A:CRed Hat · Red Hat VEX (adp)6.2 / 10MediumCVSS 2.0Details
- Attack complexity
- High
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:H/Au:N/C:C/I:C/A:CCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories37
- cve.org
- NVD
- Wazuh CTI
- Red Hat VEX
- SUSE VEX
- FIRST EPSS
- securityfocus.com
- debian.org
- people.canonical.com
- securitytracker.com
- security-tracker.debian.org
- security.gentoo.org
- security.netapp.com
- anongit.mindrot.org
- bugzilla.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- cert-portal.siemens.com
- access.redhat.com
- SUSE CVE-2015-8325
- SUSE-SU-2016:1386-1
- SUSE-SU-2016:1528-1
- SUSE-SU-2016:2388-1
- SUSE-SU-2016:2555-1
- ubuntu.com
- ubuntu.com
- bodhi.fedoraproject.org
- linux.oracle.com
- access.redhat.com
- access.redhat.com
- Mitre CVE-2015-8325
- cve.mitre.org
- TID7022102
- openSUSE-SU-2016:1455-1
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences