Lucene search
+L

Dropbear Prefix Truncation Attacks in SSH Specification (Terrapin Attack)

🗓️ 16 Feb 2024 00:00:00Reported by Copyright (C) 2024 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 41 Views

Dropbear SSH vulnerability to Terrapin attac

Related
Refs
Code
ReporterTitlePublishedViews
Family
osv
OSV
CGA-W76R-RH89-J85H
6 Jun 202412:29
osv
osv
OSV
CGA-WCV7-7WFC-JGMH
6 Jun 202412:29
osv
osv
OSV
CGA-WGVG-XM3F-H925
6 Jun 202412:26
osv
osv
OSV
CGA-WH9F-Q7MF-HCHH
6 Jun 202412:26
osv
osv
OSV
CGA-WJ7J-89X6-C6WC
6 Jun 202412:29
osv
osv
OSV
CGA-WJGR-C88F-CH75
6 Jun 202412:26
osv
osv
OSV
CGA-WJMV-P4VM-QVM9
6 Jun 202412:29
osv
osv
OSV
CGA-WMJP-F7Q5-W65W
6 Jun 202412:29
osv
osv
OSV
CGA-WR3C-5F8X-XPQF
6 Jun 202412:29
osv
osv
OSV
CGA-WVH7-H2XX-5852
6 Jun 202412:29
osv
Rows per page
# SPDX-FileCopyrightText: 2024 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:dropbear_ssh_project:dropbear_ssh";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.114339");
  script_version("2025-09-02T05:39:48+0000");
  script_tag(name:"last_modification", value:"2025-09-02 05:39:48 +0000 (Tue, 02 Sep 2025)");
  script_tag(name:"creation_date", value:"2024-02-16 08:37:48 +0000 (Fri, 16 Feb 2024)");
  script_tag(name:"cvss_base", value:"5.4");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:N/I:C/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2023-12-29 03:15:00 +0000 (Fri, 29 Dec 2023)");

  script_cve_id("CVE-2023-48795");

  script_tag(name:"solution_type", value:"VendorFix");

  # At least Mageia has backported fixes available (via MGASA-2024-0004).
  script_tag(name:"qod_type", value:"remote_banner_unreliable");

  script_name("Dropbear Prefix Truncation Attacks in SSH Specification (Terrapin Attack)");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2024 Greenbone AG");
  script_family("General");
  script_dependencies("gb_dropbear_consolidation.nasl");
  script_mandatory_keys("dropbear_ssh/detected");

  script_tag(name:"summary", value:"Dropbear is vulnerable to a novel prefix truncation attack
  (a.k.a. Terrapin attack).");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"Parts of the SSH specification are vulnerable to a novel prefix
  truncation attack (a.k.a. Terrapin attack), which allows a man-in-the-middle attacker to strip an
  arbitrary number of messages right after the initial key exchange, breaking SSH extension
  negotiation (RFC8308) in the process and thus downgrading connection security.");

  script_tag(name:"affected", value:"Dropbear version 2022.83 and prior.");

  script_tag(name:"solution", value:"Update to version 2024.84 or later.

  Notes:

  - Client and Server implementations need to run a fixed version to mitigate this flaw

  - Please create an override for this result if an adequate mitigation (e.g. in form of disabling
  the affected ciphers) has been applied and the risk is accepted that the mitigation won't be
  reverted again in the future");

  script_xref(name:"URL", value:"https://github.com/mkj/dropbear/commit/6e43be5c7b99dbee49dc72b6f989f29fdd7e9356");
  script_xref(name:"URL", value:"https://github.com/mkj/dropbear/issues/270");
  script_xref(name:"URL", value:"https://terrapin-attack.com");
  script_xref(name:"URL", value:"https://matt.ucc.asn.au/dropbear/CHANGES");

  exit(0);
}

include("version_func.inc");
include("host_details.inc");

if (isnull(port = get_app_port(cpe: CPE)))
  exit(0);

if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
  exit(0);

version = infos["version"];
location = infos["location"];

if (version_is_less_equal(version: version, test_version: "2022.83")) {
  report = report_fixed_ver(installed_version: version, fixed_version: "2024.84", install_path: location);
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Sep 2025 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 3.15.9
EPSS0.93305
SSVC
41