{"document":{"aggregate_severity":{"namespace":"https://www.suse.com/support/security/rating/","text":"critical"},"category":"csaf_vex","csaf_version":"2.0","distribution":{"text":"Copyright 2024 SUSE LLC. All rights reserved.","tlp":{"label":"WHITE","url":"https://www.first.org/tlp/"}},"lang":"en","notes":[{"category":"summary","text":"SUSE CVE-2024-52308","title":"Title"},{"category":"description","text":"The GitHub CLI version 2.6.1 and earlier are vulnerable to remote code execution through a malicious codespace SSH server when using `gh codespace ssh` or `gh codespace logs` commands. This has been patched in the cli v2.62.0.\n\nDevelopers connect to remote codespaces through an SSH server running within the devcontainer, which is generally provided through the [default devcontainer image]( https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-... https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#using-the-default-dev-container-configuration) . GitHub CLI [retrieves SSH connection details]( https://github.com/cli/cli/blob/30066b0042d0c5928d959e288144300cb28196c9/internal/codespaces/rpc/inv... https://github.com/cli/cli/blob/30066b0042d0c5928d959e288144300cb28196c9/internal/codespaces/rpc/invoker.go#L230-L244 ), such as remote username, which is used in [executing `ssh` commands]( https://github.com/cli/cli/blob/e356c69a6f0125cfaac782c35acf77314f18908d/pkg/cmd/codespace/ssh.go#L2... https://github.com/cli/cli/blob/e356c69a6f0125cfaac782c35acf77314f18908d/pkg/cmd/codespace/ssh.go#L263 ) for `gh codespace ssh` or `gh codespace logs` commands.\n\nThis exploit occurs when a malicious third-party devcontainer contains a modified SSH server that injects `ssh` arguments within the SSH connection details. `gh codespace ssh` and `gh codespace logs` commands could execute arbitrary code on the user's workstation if the remote username contains something like `-oProxyCommand=\"echo hacked\" #`.  The `-oProxyCommand` flag causes `ssh` to execute the provided command while `#` shell comment causes any other `ssh` arguments to be ignored.\n\nIn `2.62.0`, the remote username information is being validated before being used.","title":"Description of the CVE"},{"category":"legal_disclaimer","text":"CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).","title":"Terms of use"}],"publisher":{"category":"vendor","contact_details":"https://www.suse.com/support/security/contact/","name":"SUSE Product Security Team","namespace":"https://www.suse.com/"},"references":[{"category":"external","summary":"CVE-2024-52308","url":"https://www.suse.com/security/cve/CVE-2024-52308"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"external","summary":"SUSE Bug 1233387 for CVE-2024-52308","url":"https://bugzilla.suse.com/1233387"},{"category":"external","summary":"Advisory link for openSUSE-SU-2024:14509-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/YTCSKJMBC73WSFKWY7SLMRJFMRX4UHQF/"},{"category":"external","summary":"Advisory link for openSUSE-SU-2024:14513-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CJ6SUNDNOZSHM4PZYYGMBH7233D63JOI/"},{"category":"external","summary":"Advisory link for openSUSE-SU-2025:0021-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/HUMKXZZVR2XTEF5OINR7OTNWNR5IVCYQ/"}],"title":"SUSE CVE CVE-2024-52308","tracking":{"current_release_date":"2026-03-13T14:28:04Z","generator":{"date":"2024-11-16T00:19:03Z","engine":{"name":"cve-database.git:bin/generate-csaf-vex.pl","version":"1"}},"id":"CVE-2024-52308","initial_release_date":"2024-11-16T00:19:03Z","revision_history":[{"date":"2024-11-16T00:19:03Z","number":"2","summary":"Current version"},{"date":"2024-11-19T03:48:43Z","number":"3","summary":"Current version"},{"date":"2024-11-20T03:49:26Z","number":"4","summary":"Current version"},{"date":"2024-11-21T03:48:37Z","number":"5","summary":"Current version"},{"date":"2024-11-22T03:49:25Z","number":"6","summary":"Current version"},{"date":"2025-01-01T00:26:35Z","number":"7","summary":"Current version"},{"date":"2025-01-23T03:51:57Z","number":"8","summary":"Current version"},{"date":"2025-02-14T04:09:15Z","number":"9","summary":"Current version"},{"date":"2025-02-16T04:01:51Z","number":"10","summary":"Current version"},{"date":"2025-03-15T04:19:42Z","number":"11","summary":"Current version"},{"date":"2025-04-24T11:46:45Z","number":"12","summary":"Current version"},{"date":"2025-11-03T01:11:59Z","number":"13","summary":"Current version"},{"date":"2026-01-16T00:43:46Z","number":"14","summary":"unknown changes"},{"date":"2026-03-11T17:59:41Z","number":"15","summary":"unknown changes"},{"date":"2026-03-13T14:28:04Z","number":"16","summary":"unknown changes"}],"status":"interim","version":"16"}},"product_tree":{"branches":[{"branches":[{"branches":[{"category":"product_name","name":"SUSE Linux Enterprise Server 16.0","product":{"name":"SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0","product_identification_helper":{"cpe":"cpe:/o:suse:sles:16:16.0:server"}}},{"category":"product_name","name":"SUSE Package Hub 15 SP6","product":{"name":"SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6"}},{"category":"product_name","name":"openSUSE Leap 15.6","product":{"name":"openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6","product_identification_helper":{"cpe":"cpe:/o:opensuse:leap:15.6"}}},{"category":"product_name","name":"openSUSE Tumbleweed","product":{"name":"openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed","product_identification_helper":{"cpe":"cpe:/o:opensuse:tumbleweed"}}},{"category":"product_version","name":"gh-2.62.0-1.1","product":{"name":"gh-2.62.0-1.1","product_id":"gh-2.62.0-1.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh@2.62.0-1.1"}}},{"category":"product_version","name":"gh-2.65.0-bp156.2.17.1","product":{"name":"gh-2.65.0-bp156.2.17.1","product_id":"gh-2.65.0-bp156.2.17.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh@2.65.0-bp156.2.17.1"}}},{"category":"product_version","name":"gh-bash-completion-2.62.0-1.1","product":{"name":"gh-bash-completion-2.62.0-1.1","product_id":"gh-bash-completion-2.62.0-1.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh-bash-completion@2.62.0-1.1"}}},{"category":"product_version","name":"gh-bash-completion-2.65.0-bp156.2.17.1","product":{"name":"gh-bash-completion-2.65.0-bp156.2.17.1","product_id":"gh-bash-completion-2.65.0-bp156.2.17.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh-bash-completion@2.65.0-bp156.2.17.1"}}},{"category":"product_version","name":"gh-fish-completion-2.62.0-1.1","product":{"name":"gh-fish-completion-2.62.0-1.1","product_id":"gh-fish-completion-2.62.0-1.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh-fish-completion@2.62.0-1.1"}}},{"category":"product_version","name":"gh-fish-completion-2.65.0-bp156.2.17.1","product":{"name":"gh-fish-completion-2.65.0-bp156.2.17.1","product_id":"gh-fish-completion-2.65.0-bp156.2.17.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh-fish-completion@2.65.0-bp156.2.17.1"}}},{"category":"product_version","name":"gh-zsh-completion-2.62.0-1.1","product":{"name":"gh-zsh-completion-2.62.0-1.1","product_id":"gh-zsh-completion-2.62.0-1.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh-zsh-completion@2.62.0-1.1"}}},{"category":"product_version","name":"gh-zsh-completion-2.65.0-bp156.2.17.1","product":{"name":"gh-zsh-completion-2.65.0-bp156.2.17.1","product_id":"gh-zsh-completion-2.65.0-bp156.2.17.1","product_identification_helper":{"purl":"pkg:rpm/suse/gh-zsh-completion@2.65.0-bp156.2.17.1"}}},{"category":"product_version","name":"govulncheck-vulndb-0.0.20241119T173509-1.1","product":{"name":"govulncheck-vulndb-0.0.20241119T173509-1.1","product_id":"govulncheck-vulndb-0.0.20241119T173509-1.1","product_identification_helper":{"purl":"pkg:rpm/suse/govulncheck-vulndb@0.0.20241119T173509-1.1?upstream=govulncheck-vulndb-0.0.20241119T173509-1.1.src.rpm"}}},{"category":"product_version","name":"govulncheck-vulndb-0.0.20250814T182633-160000.1.2","product":{"name":"govulncheck-vulndb-0.0.20250814T182633-160000.1.2","product_id":"govulncheck-vulndb-0.0.20250814T182633-160000.1.2","product_identification_helper":{"purl":"pkg:rpm/suse/govulncheck-vulndb@0.0.20250814T182633-160000.1.2?upstream=govulncheck-vulndb-0.0.20250814T182633-160000.1.2.src.rpm"}}}],"category":"product_family","name":"SUSE Linux Enterprise"}],"category":"vendor","name":"SUSE"}],"relationships":[{"category":"default_component_of","full_product_name":{"name":"govulncheck-vulndb-0.0.20250814T182633-160000.1.2 as component of SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0:govulncheck-vulndb-0.0.20250814T182633-160000.1.2"},"product_reference":"govulncheck-vulndb-0.0.20250814T182633-160000.1.2","relates_to_product_reference":"SUSE Linux Enterprise Server 16.0"},{"category":"default_component_of","full_product_name":{"name":"gh-2.65.0-bp156.2.17.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:gh-2.65.0-bp156.2.17.1"},"product_reference":"gh-2.65.0-bp156.2.17.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"gh-bash-completion-2.65.0-bp156.2.17.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:gh-bash-completion-2.65.0-bp156.2.17.1"},"product_reference":"gh-bash-completion-2.65.0-bp156.2.17.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"gh-fish-completion-2.65.0-bp156.2.17.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:gh-fish-completion-2.65.0-bp156.2.17.1"},"product_reference":"gh-fish-completion-2.65.0-bp156.2.17.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"gh-zsh-completion-2.65.0-bp156.2.17.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:gh-zsh-completion-2.65.0-bp156.2.17.1"},"product_reference":"gh-zsh-completion-2.65.0-bp156.2.17.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"gh-2.65.0-bp156.2.17.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:gh-2.65.0-bp156.2.17.1"},"product_reference":"gh-2.65.0-bp156.2.17.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"gh-bash-completion-2.65.0-bp156.2.17.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:gh-bash-completion-2.65.0-bp156.2.17.1"},"product_reference":"gh-bash-completion-2.65.0-bp156.2.17.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"gh-fish-completion-2.65.0-bp156.2.17.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:gh-fish-completion-2.65.0-bp156.2.17.1"},"product_reference":"gh-fish-completion-2.65.0-bp156.2.17.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"gh-zsh-completion-2.65.0-bp156.2.17.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:gh-zsh-completion-2.65.0-bp156.2.17.1"},"product_reference":"gh-zsh-completion-2.65.0-bp156.2.17.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"gh-2.62.0-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:gh-2.62.0-1.1"},"product_reference":"gh-2.62.0-1.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"gh-bash-completion-2.62.0-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:gh-bash-completion-2.62.0-1.1"},"product_reference":"gh-bash-completion-2.62.0-1.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"gh-fish-completion-2.62.0-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:gh-fish-completion-2.62.0-1.1"},"product_reference":"gh-fish-completion-2.62.0-1.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"gh-zsh-completion-2.62.0-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:gh-zsh-completion-2.62.0-1.1"},"product_reference":"gh-zsh-completion-2.62.0-1.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"govulncheck-vulndb-0.0.20241119T173509-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:govulncheck-vulndb-0.0.20241119T173509-1.1"},"product_reference":"govulncheck-vulndb-0.0.20241119T173509-1.1","relates_to_product_reference":"openSUSE Tumbleweed"}]},"vulnerabilities":[{"cve":"CVE-2024-52308","ids":[{"system_name":"SUSE CVE Page","text":"https://www.suse.com/security/cve/CVE-2024-52308"}],"notes":[{"category":"general","text":"The GitHub CLI version 2.6.1 and earlier are vulnerable to remote code execution through a malicious codespace SSH server when using `gh codespace ssh` or `gh codespace logs` commands. This has been patched in the cli v2.62.0.\n\nDevelopers connect to remote codespaces through an SSH server running within the devcontainer, which is generally provided through the [default devcontainer image]( https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-... https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#using-the-default-dev-container-configuration) . GitHub CLI [retrieves SSH connection details]( https://github.com/cli/cli/blob/30066b0042d0c5928d959e288144300cb28196c9/internal/codespaces/rpc/inv... https://github.com/cli/cli/blob/30066b0042d0c5928d959e288144300cb28196c9/internal/codespaces/rpc/invoker.go#L230-L244 ), such as remote username, which is used in [executing `ssh` commands]( https://github.com/cli/cli/blob/e356c69a6f0125cfaac782c35acf77314f18908d/pkg/cmd/codespace/ssh.go#L2... https://github.com/cli/cli/blob/e356c69a6f0125cfaac782c35acf77314f18908d/pkg/cmd/codespace/ssh.go#L263 ) for `gh codespace ssh` or `gh codespace logs` commands.\n\nThis exploit occurs when a malicious third-party devcontainer contains a modified SSH server that injects `ssh` arguments within the SSH connection details. `gh codespace ssh` and `gh codespace logs` commands could execute arbitrary code on the user's workstation if the remote username contains something like `-oProxyCommand=\"echo hacked\" #`.  The `-oProxyCommand` flag causes `ssh` to execute the provided command while `#` shell comment causes any other `ssh` arguments to be ignored.\n\nIn `2.62.0`, the remote username information is being validated before being used.","title":"CVE description"}],"product_status":{"recommended":["SUSE Linux Enterprise Server 16.0:govulncheck-vulndb-0.0.20250814T182633-160000.1.2","SUSE Package Hub 15 SP6:gh-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-bash-completion-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-fish-completion-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-zsh-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-bash-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-fish-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-zsh-completion-2.65.0-bp156.2.17.1","openSUSE Tumbleweed:gh-2.62.0-1.1","openSUSE Tumbleweed:gh-bash-completion-2.62.0-1.1","openSUSE Tumbleweed:gh-fish-completion-2.62.0-1.1","openSUSE Tumbleweed:gh-zsh-completion-2.62.0-1.1","openSUSE Tumbleweed:govulncheck-vulndb-0.0.20241119T173509-1.1"]},"references":[{"category":"external","summary":"CVE-2024-52308","url":"https://www.suse.com/security/cve/CVE-2024-52308"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"external","summary":"SUSE Bug 1233387 for CVE-2024-52308","url":"https://bugzilla.suse.com/1233387"},{"category":"external","summary":"Advisory link for openSUSE-SU-2024:14509-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/YTCSKJMBC73WSFKWY7SLMRJFMRX4UHQF/"},{"category":"external","summary":"Advisory link for openSUSE-SU-2024:14513-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CJ6SUNDNOZSHM4PZYYGMBH7233D63JOI/"},{"category":"external","summary":"Advisory link for openSUSE-SU-2025:0021-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/HUMKXZZVR2XTEF5OINR7OTNWNR5IVCYQ/"}],"remediations":[{"category":"vendor_fix","details":"To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n","product_ids":["SUSE Linux Enterprise Server 16.0:govulncheck-vulndb-0.0.20250814T182633-160000.1.2","SUSE Package Hub 15 SP6:gh-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-bash-completion-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-fish-completion-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-zsh-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-bash-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-fish-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-zsh-completion-2.65.0-bp156.2.17.1","openSUSE Tumbleweed:gh-2.62.0-1.1","openSUSE Tumbleweed:gh-bash-completion-2.62.0-1.1","openSUSE Tumbleweed:gh-fish-completion-2.62.0-1.1","openSUSE Tumbleweed:gh-zsh-completion-2.62.0-1.1","openSUSE Tumbleweed:govulncheck-vulndb-0.0.20241119T173509-1.1"]}],"scores":[{"cvss_v3":{"baseScore":9.6,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"products":["SUSE Linux Enterprise Server 16.0:govulncheck-vulndb-0.0.20250814T182633-160000.1.2","SUSE Package Hub 15 SP6:gh-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-bash-completion-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-fish-completion-2.65.0-bp156.2.17.1","SUSE Package Hub 15 SP6:gh-zsh-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-bash-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-fish-completion-2.65.0-bp156.2.17.1","openSUSE Leap 15.6:gh-zsh-completion-2.65.0-bp156.2.17.1","openSUSE Tumbleweed:gh-2.62.0-1.1","openSUSE Tumbleweed:gh-bash-completion-2.62.0-1.1","openSUSE Tumbleweed:gh-fish-completion-2.62.0-1.1","openSUSE Tumbleweed:gh-zsh-completion-2.62.0-1.1","openSUSE Tumbleweed:govulncheck-vulndb-0.0.20241119T173509-1.1"]}],"threats":[{"category":"impact","date":"2024-11-15T01:00:32Z","details":"critical"}],"title":"CVE-2024-52308"}]}