CVE-2023-25136
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms...
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
CVE-2023-25136- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
CVE List No score
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
CVE-2023-25136- Weakness
- CWE-415
- Updated
- 2026-11-02
EUVDEUVD-2023-29115 No score
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
EUVD-2023-29115- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-w62j-g234-3f6f
9.8
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms...
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be triggered by an unauthenticated attacker in the default configuration; however, the vulnerability discoverer reports that "exploiting this vulnerability will not be easy."
- Record
GHSA-w62j-g234-3f6f- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVBELL-CVE-2023-25136
6.5
- Record
BELL-CVE-2023-25136- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-25136
6.5
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
DEBIAN-CVE-2023-25136- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVJLSEC-2026-66
6.5
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
JLSEC-2026-66- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
OSVOESA-2023-1063
5.5
openssh security update
OpenSSH is the premier connectivity tool for remote login with the SSH protocol. \ It encrypts all traffic to eliminate eavesdropping, connection hijacking, and \ other attacks. In addition, OpenSSH provides a large suite of secure tunneling \ capabilities, several authentication methods, and sophisticated configuration options.
Security Fix(es):
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be triggered by an unauthenticated attacker in the default configuration. One third-party report states "remote code execution is theoretically possible."(CVE-2023-25136)
- Record
OESA-2023-1063- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
OSVOESA-2023-1064
5.5
openssh security update
OpenSSH is the premier connectivity tool for remote login with the SSH protocol. \ It encrypts all traffic to eliminate eavesdropping, connection hijacking, and \ other attacks. In addition, OpenSSH provides a large suite of secure tunneling \ capabilities, several authentication methods, and sophisticated configuration options.
Security Fix(es):
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be triggered by an unauthenticated attacker in the default configuration. One third-party report states "remote code execution is theoretically possible."(CVE-2023-25136)
- Record
OESA-2023-1064- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
OSVRHSA-2023:2645
6.5
Red Hat Security Advisory: openssh security update
- Record
RHSA-2023:2645- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-25136
6.5
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
UBUNTU-CVE-2023-25136- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
OSVALSA-2023:2645 No score
Moderate: openssh security update
OpenSSH is an SSH protocol implementation supported by a number of Linux, UNIX, and similar operating systems. It includes the core files necessary for both the OpenSSH client and server.
Security Fix(es):
- openssh: the functions order_hostkeyalgs() and list_hostkey_types() leads to double-free vulnerability (CVE-2023-25136)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2023:2645- Updated
- 2026-11-02
OSV No score
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
- Record
CVE-2023-25136- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
opensshAlmaLinux:9 |
before 8.7p1-29.el9_2 | 8.7p1-29.el9_2 |
openssh-askpassAlmaLinux:9 |
before 8.7p1-29.el9_2 | 8.7p1-29.el9_2 |
openssh-clientsAlmaLinux:9 |
before 8.7p1-29.el9_2 | 8.7p1-29.el9_2 |
openssh-keycatAlmaLinux:9 |
before 8.7p1-29.el9_2 | 8.7p1-29.el9_2 |
openssh-serverAlmaLinux:9 |
before 8.7p1-29.el9_2 | 8.7p1-29.el9_2 |
pam_ssh_agent_authAlmaLinux:9 |
before 0.10.4-5.29.el9_2 | 0.10.4-5.29.el9_2 |
opensshAlpaquita:23 |
9.1_p1-r3 up to 9.1_p1-r7 | 9.1_p1-r7 |
opensshBellSoft Hardened Containers:23 |
9.1_p1-r3 up to 9.1_p1-r7 | 9.1_p1-r7 |
opensshDebian:12 |
before 1:9.2p1-1 | 1:9.2p1-1 |
opensshDebian:13 |
before 1:9.2p1-1 | 1:9.2p1-1 |
Show 26 moreShow less
| Package | Affected | Fixed |
|---|---|---|
opensshDebian:14 |
before 1:9.2p1-1 | 1:9.2p1-1 |
OpenSSH_jllJulia |
8.9.0+0 up to 9.1.0+0 | 9.1.0+0 |
opensshopenEuler:22.03-LTS |
before 8.8p1-16.oe2203 | 8.8p1-16.oe2203 |
opensshopenEuler:22.03-LTS-SP1 |
before 8.8p1-18.oe2203sp1 | 8.8p1-18.oe2203sp1 |
openssh-askpassRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-askpass-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-clients-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-debugsourceRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-keycat-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-server-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-sk-dummy-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
pam_ssh_agent_authRed Hat:enterprise_linux:9::appstream |
before 0:0.10.4-5.29.el9_2 | 0:0.10.4-5.29.el9_2 |
pam_ssh_agent_auth-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:0.10.4-5.29.el9_2 | 0:0.10.4-5.29.el9_2 |
opensshRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-askpass-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-clientsRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-clients-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-debugsourceRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-keycatRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-keycat-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-serverRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-server-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
openssh-sk-dummy-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:8.7p1-29.el9_2 | 0:8.7p1-29.el9_2 |
pam_ssh_agent_auth-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:0.10.4-5.29.el9_2 | 0:0.10.4-5.29.el9_2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Business1sg00d/CVE-2023-25136 | 2023-09-04 |
| PoC in GitHub | Christbowel/CVE-2023-25136 | 2023-02-22 |
| PoC in GitHub | H4K6/CVE-2023-25136 | 2023-06-30 |
| PoC in GitHub | Lane0218/CVE-2023-25136-PoC | 2025-11-18 |
| PoC in GitHub | adhikara13/CVE-2023-25136 | 2023-04-18 |
| PoC in GitHub | axylisdead/CVE-2023-25136_POC | 2023-06-03 |
| PoC in GitHub | jfrog/jfrog-CVE-2023-25136-OpenSSH_Double-Free | 2023-02-07 |
| PoC in GitHub | malvika-thakur/CVE-2023-25136 | 2023-09-21 |
| PoC in GitHub | mrmtwoj/CVE-2023-25136 | 2025-01-16 |
| PoC in GitHub | nhakobyan685/CVE-2023-25136 | 2023-04-28 |
| PoC in GitHub | ticofookfook/CVE-2023-25136 | 2023-02-14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-25136 is a medium vulnerability (CVSS 6.5) in Openbsd Openssh, published February 3, 2023. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 89.8%, the 99th percentile. Fixed in openssh 8.7p1-29.el9_2.
References
ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/017_sshd.patch.sig
openwall.com/lists/oss-security/2023/02/02/2
bugzilla.mindrot.org/show_bug.cgi?id=3522
github.com/openssh/openssh-portable/commit/486c4dc3b83b4b67d663fb0fa62bc24138ec3946
jfrog.com/blog/openssh-pre-auth-double-free-cve-2023-25136-writeup-and-proof-of-concept
news.ycombinator.com/item?id=34711565
Show 29 moreShow less
openwall.com/lists/oss-security/2023/02/13/1
openwall.com/lists/oss-security/2023/02/22/1
openwall.com/lists/oss-security/2023/02/22/2
openwall.com/lists/oss-security/2023/02/23/3
openwall.com/lists/oss-security/2023/03/06/1
openwall.com/lists/oss-security/2023/03/09/2
security.netapp.com/advisory/ntap-20230309-0003
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R7LKQDFZWKYHQ65TBSH2X2HJQ4V2THS3
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JGAUIXJ3TEKCRKVWFQ6GDAGQFTIIGQQP
security.gentoo.org/glsa/202307-01
cert-portal.siemens.com/productcert/html/ssa-398330.html
nvd.nist.gov/vuln/detail/CVE-2023-25136
lists.fedoraproject.org/archives/list/[email protected]/message/JGAUIXJ3TEKCRKVWFQ6GDAGQFTIIGQQP
lists.fedoraproject.org/archives/list/[email protected]/message/R7LKQDFZWKYHQ65TBSH2X2HJQ4V2THS3
github.com/advisories/GHSA-w62j-g234-3f6f
access.redhat.com/errata/RHSA-2023:2645
access.redhat.com/security/cve/CVE-2023-25136
bugzilla.redhat.com/2167636
errata.almalinux.org/9/ALSA-2023-2645.html
docs.bell-sw.com/security/cves/CVE-2023-25136
github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25136.json
security-tracker.debian.org/tracker/CVE-2023-25136
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1063
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1064
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2167636
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_2645.json
cve.org/CVERecord?id=CVE-2023-25136
ubuntu.com/security/CVE-2023-25136