Bug 1218215 (CVE-2023-51385)

Summary: VUL-0: CVE-2023-51385: openssh: command injection via user name or host name metacharacters
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Scott Reeves <sreeves>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: abergmann, alarrosa, davide.puggioni, gianluca.gabrielli, hpj, jie.sheng, madhusudan.kumar, marco.crivellari, meissner, sreeves, stoyan.manolov
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/388573/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-51385:6.5:(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2023-12-19 13:52:54 UTC
In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host name has shell metacharacters, and this name is referenced by an expansion token in certain situations. For example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-51385
Comment 4 Alexander Bergmann 2024-01-08 15:19:32 UTC
All code stream are affected, including SLE-11.

Upstream fix:
https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a
Comment 19 Scott Reeves 2024-02-22 17:56:14 UTC
I think we have now submitted to all codes treams so assigning back to security team.
Comment 20 Maintenance Automation 2024-02-22 20:30:07 UTC
SUSE-SU-2024:0596-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1218215
CVE References: CVE-2023-51385
Sources used:
openSUSE Leap 15.3 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
openSUSE Leap Micro 5.3 (src): openssh-8.4p1-150300.3.30.1
openSUSE Leap Micro 5.4 (src): openssh-8.4p1-150300.3.30.1
openSUSE Leap 15.5 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro 5.3 (src): openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro 5.4 (src): openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro 5.5 (src): openssh-8.4p1-150300.3.30.1
Basesystem Module 15-SP5 (src): openssh-8.4p1-150300.3.30.1
Desktop Applications Module 15-SP5 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Manager Proxy 4.3 (src): openssh-8.4p1-150300.3.30.1
SUSE Manager Retail Branch Server 4.3 (src): openssh-8.4p1-150300.3.30.1
SUSE Manager Server 4.3 (src): openssh-8.4p1-150300.3.30.1
SUSE Enterprise Storage 7.1 (src): openssh-askpass-gnome-8.4p1-150300.3.30.1, openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro 5.1 (src): openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro 5.2 (src): openssh-8.4p1-150300.3.30.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): openssh-8.4p1-150300.3.30.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 21 Maintenance Automation 2024-02-23 12:30:01 UTC
SUSE-SU-2024:0604-1: An update that solves one vulnerability and has one security fix can now be installed.

Category: security (important)
Bug References: 1218215, 1220110
CVE References: CVE-2023-51385
Sources used:
SUSE Linux Enterprise Software Development Kit 12 SP5 (src): openssh-testuser-0-81.12.1
SUSE Linux Enterprise High Performance Computing 12 SP5 (src): openssh-7.2p2-81.12.1, openssh-askpass-gnome-7.2p2-81.12.1
SUSE Linux Enterprise Server 12 SP5 (src): openssh-7.2p2-81.12.1, openssh-askpass-gnome-7.2p2-81.12.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): openssh-7.2p2-81.12.1, openssh-askpass-gnome-7.2p2-81.12.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 22 Maintenance Automation 2024-02-23 12:30:03 UTC
SUSE-SU-2024:0603-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1218215
CVE References: CVE-2023-51385
Sources used:
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): openssh-askpass-gnome-8.1p1-150200.5.46.1, openssh-8.1p1-150200.5.46.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): openssh-askpass-gnome-8.1p1-150200.5.46.1, openssh-8.1p1-150200.5.46.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): openssh-askpass-gnome-8.1p1-150200.5.46.1, openssh-8.1p1-150200.5.46.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 28 Maintenance Automation 2024-07-10 16:30:03 UTC
SUSE-SU-2024:2393-1: An update that solves two vulnerabilities and has three security fixes can now be installed.

Category: security (moderate)
Bug References: 1218215, 1224392, 1225904, 1227318, 1227350
CVE References: CVE-2023-51385, CVE-2024-39894
Maintenance Incident: [SUSE:Maintenance:34681](https://smelt.suse.de/incident/34681/)
Sources used:
openSUSE Leap 15.6 (src):
 openssh-askpass-gnome-9.6p1-150600.6.6.1, openssh-9.6p1-150600.6.6.1
Basesystem Module 15-SP6 (src):
 openssh-9.6p1-150600.6.6.1
Desktop Applications Module 15-SP6 (src):
 openssh-askpass-gnome-9.6p1-150600.6.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.