CVE-2023-51385

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-51385
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-51385.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-51385
Related
Published
2023-12-18T19:15:08Z
Modified
2024-10-12T11:12:48.290369Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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

Affected packages

Alpine:v3.16 / openssh

Package

Name
openssh
Purl
pkg:apk/alpine/openssh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
9.0_p1-r5

Affected versions

5.*

5.1p1-r0
5.1_p1-r1
5.1_p1-r2
5.2_p1-r0
5.2_p1-r1
5.2_p1-r2
5.2_p1-r3
5.3_p1-r3
5.4_p1-r0
5.4_p1-r1
5.4_p1-r2
5.4_p1-r3
5.5_p1-r0
5.6_p1-r0
5.6_p1-r1
5.8_p1-r0
5.8_p1-r1
5.8_p1-r2
5.8_p2-r0
5.8_p2-r1
5.8_p2-r2
5.9_p1-r0
5.9_p1-r1
5.9_p1-r2

6.*

6.0_p1-r0
6.1_p1-r0
6.1_p1-r1
6.1_p1-r2
6.2_p1-r0
6.2_p2-r0
6.2_p2-r1
6.2_p2-r2
6.3_p1-r0
6.3_p1-r1
6.3_p1-r2
6.4_p1-r0
6.4_p1-r1
6.6_p1-r0
6.6_p1-r1
6.6_p1-r2
6.6_p1-r3
6.6_p1-r4
6.6_p1-r5
6.6_p1-r6
6.7_p1-r0
6.8_p1-r0
6.8_p1-r1
6.8_p1-r2
6.9_p1-r0
6.9_p1-r1
6.9_p1-r2
6.9_p1-r3
6.9_p1-r4
6.9_p1-r5

7.*

7.1_p1-r0
7.1_p1-r1
7.1_p2-r0
7.2_p1-r0
7.2_p2-r0
7.2_p2-r1
7.3_p1-r0
7.3_p1-r1
7.3_p1-r2
7.4_p1-r0
7.4_p1-r1
7.4_p1-r2
7.5_p1-r0
7.5_p1-r1
7.5_p1-r2
7.5_p1-r3
7.5_p1-r4
7.5_p1-r5
7.5_p1-r6
7.5_p1-r7
7.5_p1-r8
7.6_p1-r0
7.6_p1-r1
7.7_p1-r0
7.7_p1-r1
7.7_p1-r2
7.7_p1-r3
7.7_p1-r4
7.8_p1-r0
7.9_p1-r0
7.9_p1-r1
7.9_p1-r2
7.9_p1-r3
7.9_p1-r4
7.9_p1-r5

8.*

8.0_p1-r0
8.0_p1-r1
8.0_p1-r2
8.1_p1-r0
8.2_p1-r0
8.3_p1-r0
8.4_p1-r0
8.4_p1-r1
8.4_p1-r2
8.4_p1-r3
8.5_p1-r0
8.5_p1-r1
8.5_p1-r2
8.6_p1-r0
8.6_p1-r1
8.6_p1-r2
8.6_p1-r3
8.6_p1-r4
8.8_p1-r0
8.8_p1-r1
8.8_p1-r2
8.8_p1-r3
8.8_p1-r4
8.9_p1-r0

9.*

9.0_p1-r0
9.0_p1-r1
9.0_p1-r2
9.0_p1-r3
9.0_p1-r4

Alpine:v3.17 / openssh

Package

Name
openssh
Purl
pkg:apk/alpine/openssh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
9.1_p1-r5

Affected versions

5.*

5.1p1-r0
5.1_p1-r1
5.1_p1-r2
5.2_p1-r0
5.2_p1-r1
5.2_p1-r2
5.2_p1-r3
5.3_p1-r3
5.4_p1-r0
5.4_p1-r1
5.4_p1-r2
5.4_p1-r3
5.5_p1-r0
5.6_p1-r0
5.6_p1-r1
5.8_p1-r0
5.8_p1-r1
5.8_p1-r2
5.8_p2-r0
5.8_p2-r1
5.8_p2-r2
5.9_p1-r0
5.9_p1-r1
5.9_p1-r2

6.*

6.0_p1-r0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/debian/openssh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1:8.4p1-5+deb11u3

Affected versions

1:8.*

1:8.4p1-5
1:8.4p1-5+deb11u1
1:8.4p1-5+deb11u2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / openssh

Package

Name
openssh
Purl
pkg:deb/debian/openssh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1:9.2p1-2+deb12u2

Affected versions

1:9.*

1:9.2p1-2
1:9.2p1-2+deb12u1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / openssh

Package

Name
openssh
Purl
pkg:deb/debian/openssh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1:9.6p1-1

Affected versions

1:9.*

1:9.2p1-2
1:9.3p1-1
1:9.3p1-1+loong64
1:9.3p2-1
1:9.4p1-1
1:9.5p1-1
1:9.5p1-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/openssh/openssh-portable

Affected ranges

Type
GIT
Repo
https://github.com/openssh/openssh-portable
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

ABOUT_TO_ADD_INET_ATON
AFTER_FREEBSD_PAM_MERGE
AFTER_KRB5_GSSAPI_MERGE
BEFORE_FREEBSD_PAM_MERGE
BEFORE_KRB5_GSSAPI_MERGE
POST_KRB4_REMOVAL
PRE-REORDER
PRE_CYGWIN_MERGE
PRE_DAN_PATCH_MERGE
PRE_FIXPATHS_INTEGRATION
PRE_HPUX_INTEGRATION
PRE_IPV6
PRE_KRB4_REMOVAL
PRE_NEW_LOGIN_CODE
PRE_SW_KRBV
V_1_2PRE17
V_1_2_1_PRE18
V_1_2_1_PRE19
V_1_2_1_PRE20
V_1_2_1_PRE21
V_1_2_1_PRE22
V_1_2_1_PRE23
V_1_2_1_PRE24
V_1_2_1_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