{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-38408 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2023-38408 is a critical code injection vulnerability in Fedoraproject Fedora, published on 20 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-38408 and fix it if it is affected.\n\nWhat it is: CVE-2023-38408 is a critical code injection vulnerability in Fedoraproject Fedora, published on 20 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-38408 in the wild and no public exploit code.\n\nAffected product: Fedoraproject Fedora. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-38408/ (Markdown: https://insights.sbomify.com/CVE-2023-38408/index.md)","id":"CVE-2023-38408","markdown":"https://insights.sbomify.com/CVE-2023-38408/index.md","name":"CVE-2023-38408","record":{"aliases":["ALPINE-CVE-2023-38408","ALSA-2023:4412","ALSA-2023:4419","AZL-27651","CLSA-2023-1691576279","CLSA-2023-1691576392","CLSA-2023-1691576488","CLSA-2023-1691576690","CLSA-2023-1691576785","CLSA-2023-1691576939","CLSA-2023-1691606104","CLSA-2023-1691606742","DEBIAN-CVE-2023-38408","DLA-3532-1","GHSA-px36-p9hv-7h2v","JLSEC-2026-68","OESA-2023-1480","RHSA-2023:4329","RHSA-2023:4381","RHSA-2023:4382","RHSA-2023:4383","RHSA-2023:4384","RHSA-2023:4412","RHSA-2023:4413","RHSA-2023:4419","RHSA-2023:4428","RLSA-2023:4419","SUSE-SU-2023:2940-1","SUSE-SU-2023:2945-1","SUSE-SU-2023:2946-1","SUSE-SU-2023:2947-1","SUSE-SU-2023:2950-1","UBUNTU-CVE-2023-38408","USN-6242-1","USN-6242-2","openSUSE-SU-2024:13063-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"OpenSSH ssh-agent","requires_auth":"none","summary":"Attackers can execute arbitrary code by exploiting an untrusted search path in OpenSSH ssh-agent when agent forwarding is enabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"openssh","vendor":"openbsd"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-428","name":"Unquoted Search Path or Element"}],"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.2::baseos","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.4::baseos","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_e4s:8.1::baseos","Red Hat:rhel_e4s:8.2::appstream","Red Hat:rhel_e4s:8.2::baseos","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.4::baseos","Red Hat:rhel_els:6","Red Hat:rhel_eus:8.6::appstream","Red Hat:rhel_eus:8.6::baseos","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_eus:9.0::baseos","Red Hat:rhel_tus:8.2::appstream","Red Hat:rhel_tus:8.2::baseos","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.4::baseos","Rocky Linux:8","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Desktop Applications 15 SP4","SUSE:Linux Enterprise Module for Desktop Applications 15 SP5","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2023-08-09","github_poc":10,"max_poc_stars":53,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-08-09T19:56:07Z","kind":"github_poc","ref":"https://github.com/kali-mx/CVE-2023-38408","stars":53,"title":"PoC for the recent critical vuln affecting OpenSSH versions \u003c 9.3p2"},{"date":"2023-11-09T04:34:39Z","kind":"github_poc","ref":"https://github.com/LucasPDiniz/CVE-2023-38408","stars":45,"title":"Takeover Account OpenSSH"},{"date":"2025-04-19T20:09:15Z","kind":"github_poc","ref":"https://github.com/TX-One/CVE-2023-38408","stars":7,"title":"CVE-2023-38408 SSH Vulnerability Scanner \u0026 PoC"},{"date":"2025-07-16T18:19:24Z","kind":"github_poc","ref":"https://github.com/Adel2411/cve-2023-38408","stars":5,"title":"An in-depth analysis of CVE 2023 38408, a critical OpenSSH vulnerability, including technical background, exploitation in controlled environments, and mitigation strategies."},{"date":"2024-01-07T03:03:06Z","kind":"github_poc","ref":"https://github.com/classic130/CVE-2023-38408","stars":3,"title":"CVE-2023-38408 Remote Code Execution in OpenSSH's forwarded ssh-agent"},{"date":"2024-07-17T02:00:31Z","kind":"github_poc","ref":"https://github.com/mrtacojr/CVE-2023-38408","stars":1,"title":"Script para eliminar vulnerabilidad de openssh de ubuntu 22.04 LTS "},{"date":"2024-02-16T18:20:12Z","kind":"github_poc","ref":"https://github.com/wxrdnx/CVE-2023-38408","stars":0,"title":"Slide and source code for CS-782 attack presentation"},{"date":"2024-10-17T13:03:42Z","kind":"github_poc","ref":"https://github.com/fazilbaig1/cve_2023_38408_scanner","stars":0,"title":"Vulnerability Overview CVE-2023-38408 affects OpenSSH versions \u003c 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"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2023-38408","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"fedoraproject:fedora","products":["fedoraproject:fedora","openbsd:openssh"],"type":"code_injection","year":"2023"},"n_packages":382,"n_references":20,"next":{"headline":"Race condition in n/a","id":"CVE-2023-38409"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh","purl":"pkg:rpm/almalinux/openssh","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh-askpass","purl":"pkg:rpm/almalinux/openssh-askpass","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh-cavs","purl":"pkg:rpm/almalinux/openssh-cavs","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh-clients","purl":"pkg:rpm/almalinux/openssh-clients","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh-keycat","purl":"pkg:rpm/almalinux/openssh-keycat","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh-ldap","purl":"pkg:rpm/almalinux/openssh-ldap","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["8.0p1-19.el8_8"],"introduced":["0"],"last_affected":[],"package":"openssh-server","purl":"pkg:rpm/almalinux/openssh-server","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.3-7.19.el8_8"],"introduced":["0"],"last_affected":[],"package":"pam_ssh_agent_auth","purl":"pkg:rpm/almalinux/pam_ssh_agent_auth","source":"ALSA-2023:4419"},{"ecosystem":"AlmaLinux:9","fixed":["8.7p1-30.el9_2"],"introduced":["0"],"last_affected":[],"package":"openssh","purl":"pkg:rpm/almalinux/openssh","source":"ALSA-2023:4412"},{"ecosystem":"AlmaLinux:9","fixed":["8.7p1-30.el9_2"],"introduced":["0"],"last_affected":[],"package":"openssh-askpass","purl":"pkg:rpm/almalinux/openssh-askpass","source":"ALSA-2023:4412"},{"ecosystem":"AlmaLinux:9","fixed":["8.7p1-30.el9_2"],"introduced":["0"],"last_affected":[],"package":"openssh-clients","purl":"pkg:rpm/almalinux/openssh-clients","source":"ALSA-2023:4412"},{"ecosystem":"AlmaLinux:9","fixed":["8.7p1-30.el9_2"],"introduced":["0"],"last_affected":[],"package":"openssh-keycat","purl":"pkg:rpm/almalinux/openssh-keycat","source":"ALSA-2023:4412"},{"ecosystem":"AlmaLinux:9","fixed":["8.7p1-30.el9_2"],"introduced":["0"],"last_affected":[],"package":"openssh-server","purl":"pkg:rpm/almalinux/openssh-server","source":"ALSA-2023:4412"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-5.30.el9_2"],"introduced":["0"],"last_affected":[],"package":"pam_ssh_agent_auth","purl":"pkg:rpm/almalinux/pam_ssh_agent_auth","source":"ALSA-2023:4412"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh","purl":"pkg:rpm/redhat/openssh","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-askpass","purl":"pkg:rpm/redhat/openssh-askpass","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-cavs","purl":"pkg:rpm/redhat/openssh-cavs","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-clients","purl":"pkg:rpm/redhat/openssh-clients","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-debuginfo","purl":"pkg:rpm/redhat/openssh-debuginfo","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-keycat","purl":"pkg:rpm/redhat/openssh-keycat","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-ldap","purl":"pkg:rpm/redhat/openssh-ldap","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-server","purl":"pkg:rpm/redhat/openssh-server","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-server-sysvinit","purl":"pkg:rpm/redhat/openssh-server-sysvinit","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:0.10.3-2.23.el7_9"],"introduced":["0"],"last_affected":[],"package":"pam_ssh_agent_auth","purl":"pkg:rpm/redhat/pam_ssh_agent_auth","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-askpass","purl":"pkg:rpm/redhat/openssh-askpass","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-cavs","purl":"pkg:rpm/redhat/openssh-cavs","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-debuginfo","purl":"pkg:rpm/redhat/openssh-debuginfo","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-ldap","purl":"pkg:rpm/redhat/openssh-ldap","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-server-sysvinit","purl":"pkg:rpm/redhat/openssh-server-sysvinit","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:0.10.3-2.23.el7_9"],"introduced":["0"],"last_affected":[],"package":"pam_ssh_agent_auth","purl":"pkg:rpm/redhat/pam_ssh_agent_auth","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh","purl":"pkg:rpm/redhat/openssh","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-askpass","purl":"pkg:rpm/redhat/openssh-askpass","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-cavs","purl":"pkg:rpm/redhat/openssh-cavs","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-clients","purl":"pkg:rpm/redhat/openssh-clients","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-debuginfo","purl":"pkg:rpm/redhat/openssh-debuginfo","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-keycat","purl":"pkg:rpm/redhat/openssh-keycat","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-ldap","purl":"pkg:rpm/redhat/openssh-ldap","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-server","purl":"pkg:rpm/redhat/openssh-server","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:7.4p1-23.el7_9"],"introduced":["0"],"last_affected":[],"package":"openssh-server-sysvinit","purl":"pkg:rpm/redhat/openssh-server-sysvinit","source":"RHSA-2023:4382"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:0.10.3-2.23.el7_9"],"introduced":["0"],"last_affected":[],"package":"pam_ssh_agent_auth","purl":"pkg:rpm/redhat/pam_ssh_agent_auth","source":"RHSA-2023:4382"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2023-38407"},"products":["n/a"],"published":"2023-07-20","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by exploiting an untrusted search path in OpenSSH ssh-agent when agent forwarding is enabled.","url":"https://insights.sbomify.com/CVE-2023-38408/"}