CVE-2023-25136
A public proof of concept exists; no exploitation attested.
- Published2023-02-03
- WeaknessCWE-415
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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."
Timeline
dates in UTC- 2023-02-0306:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.1 | = 9.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 37.x | = 37 | no fix published | NVD |
| 38.x | = 38 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
3 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- opensshWolfiall versions · fixed in 9.2_p1-r0
- opensshRed Hat:enterprise_linux:9::baseosall versions · fixed in 0:8.7p1-29.el9_2and 10 other packages
- opensshopenEuler:22.03-LTS-SP1all versions · fixed in 8.8p1-18.oe2203sp1
- opensshopenEuler:22.03-LTSall versions · fixed in 8.8p1-16.oe2203
- opensshDebian:14all versions · fixed in 1:9.2p1-1
- opensshDebian:13all versions · fixed in 1:9.2p1-1
- opensshDebian:12all versions · fixed in 1:9.2p1-1
- opensshChainguardall versions · fixed in 9.2_p1-r0
7 more package ranges on OSV.dev
Vendor advisories
openssh: the functions order_hostkeyalgs() and list_hostkey_types() leads to double-free vulnerability
Siemens SIMATIC S7-1500
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more
SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more
Red Hat Security Advisory: openssh security update
Fix
- Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
- Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
- Vendor fix Red Hat Product Security RHSA-2023:2645 · 89 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the OpenSSH server daemon (sshd) will be restarted automatically.
- Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.
Advisories and patches
- ftp.openbsd.orgPatch · Vendor Advisory
- github.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-02-27
- PoC-in-GitHub11 repositories, unverifiedknown since 2026-11-01jfrog/jfrog-CVE-2023-25136-OpenSSH_Double-Freeticofookfook/CVE-2023-25136Christbowel/CVE-2023-25136adhikara13/CVE-2023-25136nhakobyan685/CVE-2023-25136
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-02-27
- NVDCVSS 3.16.5read 2026-10-23
- CISA-ADPweakness (CWE)CWE-4152026-05-28
- NVDweakness (CWE)CWE-415read 2026-10-23
- FIRST EPSSEPSS score89.8 %read 2026-12-04
- PoC-in-GitHubproof of concept11known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- CGA-9xrr-99j7-vw56same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qmvm-7j84-982fsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2023-29115same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-w62j-g234-3f6fsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-66same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2023:2645advisory covering several CVEsAlmaLinux · MIT
- OESA-2023-1063advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1064advisory covering several CVEsopenEuler · LicenseRef-unstated
- RHSA-2023:2645advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
- Published
- 2023-02-03
- Last modified
- 2026-10-14
- NVD status
- Modified
- GitHub advisory
- GHSA-w62j-g234-3f6f
Frequently asked questions
What is CVE-2023-25136?
Is CVE-2023-25136 actively exploited?
What is the CVSS score for CVE-2023-25136?
Running OpenSSH? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-w62j-g234-3f6f
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0