{"id":"CVE-2015-3146","aliases":["DEBIAN-CVE-2015-3146","EUVD-2015-3227","GHSA-46jx-xcg7-prj7","MGASA-2015-0209","SUSE-SU-2015:1707-1","SUSE-SU-2015:1707-2","UBUNTU-CVE-2015-3146","USN-2912-1","openSUSE-SU-2024:10036-1"],"status":"published","title":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh...","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03959,"percentile":0.90519,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2015-05-05T00:00:00Z","modified":"2026-09-09T07:00:43Z","fixes":[{"ecosystem":"Debian:12","package":"libssh","fixed_in":["0.6.3-4.2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libssh","fixed_in":["0.6.3-4.2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libssh","fixed_in":["0.6.3-4.2"],"sources":["osv"]},{"ecosystem":"Mageia:4","package":"libssh","fixed_in":["0.5.5-2.3.mga4"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12","package":"libssh","fixed_in":["0.6.3-8.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Desktop 12","package":"libssh","fixed_in":["0.6.3-8.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12","package":"libssh","fixed_in":["0.6.3-8.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"libssh","fixed_in":["0.6.1-0ubuntu3.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-4.2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-4.2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-4.2"}]}]},{"source":"osv","ecosystem":"Mageia:4","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.5-2.3.mga4"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-8.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-8.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-8.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1-0ubuntu3.3"}]}],"versions":["0.5.4-1","0.6.1-0ubuntu2","0.6.1-0ubuntu3","0.6.1-0ubuntu3.1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1-0ubuntu3.3"}]}],"versions":["0.5.4-1","0.6.1-0ubuntu2","0.6.1-0ubuntu3","0.6.1-0ubuntu3.1"],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"libssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.2-2.1"}]}],"bundled":7}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"libssh","product":"libssh"}],"references":[{"url":"http://www.ubuntu.com/usn/USN-2912-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-July/161802.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.libssh.org/security/advisories/CVE-2015-3146.txt","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158013.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.libssh.org/2015/04/30/libssh-0-6-5-security-and-bugfix-release/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"http://www.debian.org/security/2016/dsa-3488","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://git.libssh.org/projects/libssh.git/commit/?h=libssh-0.6.5\u0026id=94f6955fbaee6fda9385a23e505497efe21f5b4f","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-3146"},{"url":"https://www.libssh.org/2015/04/30/libssh-0-6-5-security-and-bugfix-release"},{"url":"https://github.com/advisories/GHSA-46jx-xcg7-prj7"},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-3146","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2015-0209.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=15861","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20151707-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/928323","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-3146","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20151707-2/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2015-3146","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2912-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-3146","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-0739","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2012-4559","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2012-4560","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2012-4561","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2013-0176","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2014-0017","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2014-8132","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2015-3146","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2016-04-13T17:00:00Z","modified":"2024-08-06T05:39:32.028Z","updated_at":"2026-11-02T14:35:42.331636Z"}],"euvd":[{"id":"EUVD-2015-3227","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2016-04-13T17:00:00Z","modified":"2024-08-06T05:39:32Z","updated_at":"2026-11-03T02:22:09.179399Z"}],"ghsa":[{"id":"GHSA-46jx-xcg7-prj7","title":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh...","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2022-05-17T03:56:53Z","modified":"2025-04-12T12:59:40Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:01:26.909163Z"}],"nvd":[{"id":"CVE-2015-3146","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2016-04-13T17:59:03.1Z","modified":"2026-06-17T00:25:23.407Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:03:16.97467Z"}],"osv":[{"id":"CVE-2015-3146","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2016-04-13T17:59:03Z","modified":"2026-04-16T06:18:11.488876235Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:00.594921Z"},{"id":"DEBIAN-CVE-2015-3146","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2016-04-13T17:59:03.1Z","modified":"2026-09-09T07:00:43.072848029Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:26.752992Z"},{"id":"UBUNTU-CVE-2015-3146","description":"The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in libssh before 0.6.5 do not properly validate state, which allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted SSH packet.","status":"published","published":"2015-05-05T00:00:00Z","modified":"2026-04-22T10:07:00.658294Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:10.045446Z"},{"id":"MGASA-2015-0209","title":"Updated libssh packages fix CVE-2015-3146","description":"Updated libssh packages fix security vulnerability:\n\nlibssh versions 0.5.1 and above, but before 0.6.5, have a logical error in the\nhandling of a SSH_MSG_NEWKEYS and SSH_MSG_KEXDH_REPLY package. A detected\nerror did not set the session into the error state correctly and further\nprocessed the packet which leads to a null pointer dereference. This is the\npacket after the initial key exchange and doesn't require authentication.\nThis could be used for a Denial of Service (DoS) attack (CVE-2015-3146).\n","status":"published","published":"2015-05-11T20:10:38Z","modified":"2026-04-16T06:23:49.191804623Z","updated_at":"2026-11-02T15:49:39.792687Z"},{"id":"openSUSE-SU-2024:10036-1","title":"libssh-devel-0.7.2-2.1 on GA media","description":"These are all security issues fixed in the libssh-devel-0.7.2-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:40:55.349655Z","updated_at":"2026-11-02T16:58:33.135986Z"},{"id":"SUSE-SU-2015:1707-1","title":"Security update for libssh","description":"The encryption library libssh was updated to fix one security issue.\n\nThe following vulnerability was fixed:\n\n* CVE-2015-3146: Unauthenticated remote attackers could crash the server or client with specially crafted packages.\n","status":"published","published":"2015-10-01T08:51:47Z","modified":"2026-02-04T02:23:25.429388Z","updated_at":"2026-11-02T15:53:43.030986Z"},{"id":"SUSE-SU-2015:1707-2","title":"Security update for libssh","description":"The encryption library libssh was updated to fix one security issue.\n\nThe following vulnerability was fixed:\n\n* CVE-2015-3146: Unauthenticated remote attackers could crash the server or client with specially crafted packages.\n","status":"published","published":"2015-10-01T08:51:46Z","modified":"2026-02-04T02:32:17.515838Z","updated_at":"2026-11-02T15:53:43.030986Z"},{"id":"USN-2912-1","title":"libssh vulnerabilities","description":"Mariusz Ziulek discovered that libssh incorrectly handled certain packets.\nA remote attacker could possibly use this issue to cause libssh to crash,\nresulting in a denial of service.\n(CVE-2015-3146)\n\nAris Adamantiadis discovered that libssh incorrectly generated ephemeral\nsecret keys of 128 bits instead of the recommended 1024 or 2048 bits when\nusing the diffie-hellman-group1 and diffie-hellman-group14 methods. If a\nremote attacker were able to perform a machine-in-the-middle attack, this flaw\ncould be exploited to view sensitive information. (CVE-2016-0739)\n","status":"published","published":"2016-02-23T14:14:59Z","modified":"2026-04-22T09:21:53.96988Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
