# JLSEC-2026-68: The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if…

- Severity: Critical 9.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T21:32:46.691Z
- Modified: 2026-07-25T18:23:59.494Z
- Related: CVE-2023-38408

## Description

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in `/usr/lib` is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.

(As written by Julia Security Advisories.)

## Affected

- OpenSSH_jll (Julia): before 9.3.2+0

## References

- <http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html> (exploit, web)
- <http://www.openwall.com/lists/oss-security/2023/07/20/1> (web)
- <http://www.openwall.com/lists/oss-security/2023/07/20/2> (web)
- <http://www.openwall.com/lists/oss-security/2023/09/22/11> (web)
- <http://www.openwall.com/lists/oss-security/2023/09/22/9> (web)
- <https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent> (web)
- <https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8> (web)
- <https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d> (web)
- <https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca> (web)
- <https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/> (web)
- <https://news.ycombinator.com/item?id=36790196> (web)
- <https://security.gentoo.org/glsa/202307-01> (web)
- <https://security.netapp.com/advisory/ntap-20230803-0010/> (web)
- <https://support.apple.com/kb/HT213940> (web)
- <https://www.openssh.com/security.html> (web)
- <https://www.openssh.com/txt/release-9.3p2> (web)
- <https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt> (web)
- <https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-68](https://osv.dev/vulnerability/JLSEC-2026-68), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-68 · Whole record: https://cve.day/JLSEC-2026-68.json · Rebuilt by cve.day 2026-11-25T22:56:26.200Z
