Medium
Libssh: null pointer dereference in libssh kex session id calculation
Type: advisorySources: OSV
A flaw was found in libssh, a library that implements the SSH protocol. When calculating the session ID during the key exchange (KEX) process, an allocation failure in cryptographic functions may lead to a NULL pointer dereference. This issue can cause the client or server to crash.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-8114
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:20 UTC · Revision 1
Source evidence
Libssh: null pointer dereference in libssh kex session id calculation
core-osv · Original sourcePublished 24 Jul 2025, 14:14 UTC
A flaw was found in libssh, a library that implements the SSH protocol. When calculating the session ID during the key exchange (KEX) process, an allocation failure in cryptographic functions may lead to a NULL pointer dereference. This issue can cause the client or server to crash.
osv:CVE-2025-8114
Complete source record
{
"id": "42934e36815a82328be9f5f392136f63f250449a22d106bb1097f9b5d5b3f831",
"url": "https://osv.dev/vulnerability/CVE-2025-8114",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Libssh: null pointer dereference in libssh kex session id calculation",
"summary": "A flaw was found in libssh, a library that implements the SSH protocol. When calculating the session ID during the key exchange (KEX) process, an allocation failure in cryptographic functions may lead to a NULL pointer dereference. This issue can cause the client or server to crash.",
"evidence": "osv:CVE-2025-8114",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-8114",
"aliases": [
"CVE-2025-8114"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.libssh.org/projects/libssh.git",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "301d0e16dfa8a5cac1cff956b6880ca90eb82864"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.11.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
},
{
"repo": "https://gitlab.com/libssh/libssh-mirror",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "dff6c0821ed54f6fbf5b755af43f54cbb723b1b1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.11.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"libssh-0.11.2",
"libssh-0.11.1",
"libssh-0.11.0",
"libssh-0.8.0",
"release-0-3-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-8114.json"
}
}
],
"modified": "2026-10-28T02:30:32.318370683Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://git.libssh.org/projects/libssh.git/",
"https://git.libssh.org/projects/libssh.git/commit/?id=53ac23ded4cb2c5463f6c4cd1525331bd578812d",
"https://git.libssh.org/projects/libssh.git/commit/?id=65f363c9",
"https://access.redhat.com/errata/RHSA-2026:18683",
"https://access.redhat.com/security/cve/CVE-2025-8114",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/8xxx/CVE-2025-8114.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-8114",
"https://www.libssh.org/security/advisories/CVE-2025-8114.txt",
"https://bugzilla.redhat.com/show_bug.cgi?id=2383220"
],
"provider_metadata": {
"cwe_ids": [
"CWE-476"
],
"cna_assigner": "redhat",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:0.10.4-18.el9"
},
{
"fixed": "0:0.10.4-18.el9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/8xxx/CVE-2025-8114.json"
}
},
"related_cves": [
{
"value": "CVE-2025-8114",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499604,
"published_at": "2025-07-24T14:14:47.745+00:00"
}