Skip to main content
Public proof of conceptFix available

CVE-2023-25136

A public proof of concept exists; no exploitation attested.

  • Published2023-02-03
  • WeaknessCWE-415

Am I 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
  1. 2023-02-0306:15CVE publishedNVD

Versions per branch

NVD
OpenSSH
BranchAffectedFixed in
9.1= 9.1no fix published
Fedoraproject fedora
BranchAffectedFixed in
37.x= 37no fix published
38.x= 38no fix published
Netapp 500f firmwareversion to verify
BranchAffectedFixed in
—all versionsno fix published

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

  • CVE-2023-25136 Red Hat Product Security89 products fixed

    openssh: the functions order_hostkeyalgs() and list_hostkey_types() leads to double-free vulnerability

  • ICSA-23-348-10 CISA5 known affected

    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 Siemens ProductCERT5 known affected

    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

  • RHSA-2023:2645 Red Hat Product Security89 products fixed

    Red Hat Security Advisory: openssh security update

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  2. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  3. 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.
  4. Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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."

Is CVE-2023-25136 actively exploited?

A proof-of-concept exploit exists for CVE-2023-25136, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-25136?

CVE-2023-25136 has a CVSS v3 base score of 6.5 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H.

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

Sources for this record