CVE-2023-38408
OpenSSH SSH-Agent Remote Code Execution via Insufficient Trust in Search Path
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.
INFO
Published Date :
July 20, 2023, 3:15 a.m.
Last Modified :
Nov. 21, 2024, 8:13 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2023-38408 has a 33 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-38408
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Python
None
OpenSSH Vulnerabilities list
cve openssh vulnerabilities
Vulnerability assessment, penetration testing, and remediation plan
Need help finding what room to do next if grinding points?
Python
Hello, aspiring hackers! 🕵️♂️ Here’s a list of 500+ Free TryHackMe rooms to kickstart your cybersecurity journey. These rooms are absolutely free, and I’ve organized them by topic to help you dive in right away. 🛠️
active-directory android ctf-challenges ctf-events cyber-forensics cyber-security free hacking linux malware-analysis networking privilege-escalation reverse-engineering rooms steganography tryhackme web-penetration-testing wifi-hacking windows good-first-issue
Vulnerability Overview CVE-2023-38408 affects OpenSSH versions < 9.3p2 and stems from improper validation of data when SSH agent forwarding is enabled. When users connect to a remote server with ssh -A, they allow the agent on their local machine to be used for authentication to further systems
Python
None
Shell
DockerLab - Machine
DockerLab - Machine
Máquina DockerLab
None
Makefile C
None
Script para eliminar vulnerabilidad de openssh de ubuntu 22.04 LTS
Shell
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-38408
vulnerability anywhere in the article.
- The Register
QNAP and Veritas dump 30-plus vulns over the weekend
Taiwanese NAS maker QNAP addressed 24 vulnerabilities across various products over the weekend. The flaws include two critical and nine "high" severity vulnerabilities, potentially resulting in code e ... Read more
The following table lists the changes that have been made to the
CVE-2023-38408
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html Added Reference http://www.openwall.com/lists/oss-security/2023/07/20/1 Added Reference http://www.openwall.com/lists/oss-security/2023/07/20/2 Added Reference http://www.openwall.com/lists/oss-security/2023/09/22/11 Added Reference http://www.openwall.com/lists/oss-security/2023/09/22/9 Added Reference https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent Added Reference https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 Added Reference https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d Added Reference https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca Added Reference https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ Added Reference https://news.ycombinator.com/item?id=36790196 Added Reference https://security.gentoo.org/glsa/202307-01 Added Reference https://security.netapp.com/advisory/ntap-20230803-0010/ Added Reference https://support.apple.com/kb/HT213940 Added Reference https://www.openssh.com/security.html Added Reference https://www.openssh.com/txt/release-9.3p2 Added Reference https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt Added Reference https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 15, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-428 Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Apr. 04, 2024
Action Type Old Value New Value Added Reference MITRE https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408 [No types assigned] -
CVE Modified by [email protected]
Dec. 22, 2023
Action Type Old Value New Value Added Reference MITRE https://support.apple.com/kb/HT213940 [No types assigned] -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ [No types assigned] Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ -
CVE Modified by [email protected]
Sep. 23, 2023
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2023/09/22/11 [No Types Assigned] -
CVE Modified by [email protected]
Sep. 22, 2023
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2023/09/22/9 [No Types Assigned] -
CVE Modified by [email protected]
Aug. 17, 2023
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html [No Types Assigned] -
CVE Modified by [email protected]
Aug. 03, 2023
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20230803-0010/ [No Types Assigned] -
Initial Analysis by [email protected]
Jul. 31, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry Changed Reference Type http://www.openwall.com/lists/oss-security/2023/07/20/1 No Types Assigned http://www.openwall.com/lists/oss-security/2023/07/20/1 Exploit, Mailing List, Third Party Advisory Changed Reference Type http://www.openwall.com/lists/oss-security/2023/07/20/2 No Types Assigned http://www.openwall.com/lists/oss-security/2023/07/20/2 Mailing List, Third Party Advisory Changed Reference Type https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent No Types Assigned https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent Third Party Advisory Changed Reference Type https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 No Types Assigned https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 Patch Changed Reference Type https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d No Types Assigned https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d Patch Changed Reference Type https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca No Types Assigned https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca Patch Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ Mailing List Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ Mailing List Changed Reference Type https://news.ycombinator.com/item?id=36790196 No Types Assigned https://news.ycombinator.com/item?id=36790196 Issue Tracking, Patch Changed Reference Type https://security.gentoo.org/glsa/202307-01 No Types Assigned https://security.gentoo.org/glsa/202307-01 Third Party Advisory Changed Reference Type https://www.openssh.com/security.html No Types Assigned https://www.openssh.com/security.html Vendor Advisory Changed Reference Type https://www.openssh.com/txt/release-9.3p2 No Types Assigned https://www.openssh.com/txt/release-9.3p2 Release Notes Changed Reference Type https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt No Types Assigned https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt Exploit, Third Party Advisory Added CWE NIST CWE-428 Added CPE Configuration OR *cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* versions up to (excluding) 9.3 *cpe:2.3:a:openbsd:openssh:9.3:-:*:*:*:*:*:* *cpe:2.3:a:openbsd:openssh:9.3:p1:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Jul. 28, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ [No Types Assigned] -
CVE Modified by [email protected]
Jul. 23, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ [No Types Assigned] -
CVE Modified by [email protected]
Jul. 20, 2023
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html [No Types Assigned] -
CVE Modified by [email protected]
Jul. 20, 2023
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2023/07/20/2 [No Types Assigned] -
CVE Modified by [email protected]
Jul. 20, 2023
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2023/07/20/1 [No Types Assigned] -
CVE Modified by [email protected]
Jul. 20, 2023
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202307-01 [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-38408
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-38408
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
4.87 }} -2.74%
score
0.92655
percentile