{"schemaVersion":3,"id":"CVE-2025-4878","aliases":["UBUNTU-CVE-2025-4878","DEBIAN-CVE-2025-4878"],"status":"published","duplicateOf":null,"title":null,"description":"A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.","dates":{"published":"2025-07-22T14:17:03.122Z","modified":"2026-09-01T12:08:08.753Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.6,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":2.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":2.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00212,"percentile":0.10854,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.02599999999999998,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00186},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00212,"percentile":0.10854}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00186,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00196,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00212,"percentile":0.10854}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libssh","purlType":"deb","versions":[{"text":"< 0.10.6-0+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 0.11.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.6-0+deb12u2 | < 0.11.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libssh","purlType":"deb","versions":[{"text":"< 0.6.3-4.3ubuntu0.6+esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 0.9.3-2ubuntu2.5+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.9.6-2ubuntu0.22.04.4","noFixRecorded":false,"fixedIn":null},{"text":"< 0.10.6-2ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.3-4.3ubuntu0.6+esm2 | < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 | < 0.9.3-2ubuntu2.5+esm1 | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:18683","label":"access.redhat.com/errata/RHSA-2026:18683","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-4878","label":"access.redhat.com/security/cve/CVE-2025-4878","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2376184","label":"bugzilla.redhat.com/show_bug.cgi?id=2376184","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://git.libssh.org/projects/libssh.git/commit/?id=697650caa97eaf7623924c75f9fcfec6dd423cd1","label":"git.libssh.org/projects/libssh.git/commit/?id=697650caa97eaf7623924c75f9fcfec6dd423cd1","hostname":"git.libssh.org","tags":[]},{"url":"https://git.libssh.org/projects/libssh.git/commit/?id=b35ee876adc92a208d47194772e99f9c71e0bedb","label":"git.libssh.org/projects/libssh.git/commit/?id=b35ee876adc92a208d47194772e99f9c71e0bedb","hostname":"git.libssh.org","tags":[]},{"url":"https://www.libssh.org/security/advisories/CVE-2025-4878.txt","label":"www.libssh.org/security/advisories/CVE-2025-4878.txt","hostname":"www.libssh.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2025-4878","label":"ubuntu.com/security/CVE-2025-4878","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-4878","label":"www.cve.org/CVERecord?id=CVE-2025-4878","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7619-1","label":"ubuntu.com/security/notices/USN-7619-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7696-1","label":"ubuntu.com/security/notices/USN-7696-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-4878","label":"security-tracker.debian.org/tracker/CVE-2025-4878","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4878","label":"nvd.nist.gov/vuln/detail/CVE-2025-4878","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4385-1","MGASA-2026-0189","OPENSUSE-SU-2025:15243-1","RHSA-2026:18683","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:02755-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","USN-7619-1","USN-7696-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15243-1","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:02755-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","USN-7619-1","USN-7696-1"]},"timeline":[{"kind":"published","date":"2025-07-22T14:17:03.122Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-01T12:08:08.753Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":14,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:58:51.355Z","stale":false,"partial":false}}