Lucene search

K
nessusThis script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.ARISTA_EOS_SA0084.NASL
HistoryJul 31, 2023 - 12:00 a.m.

Arista Networks EOS Memory Exhaustion (SA0084)

2023-07-3100:00:00
This script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
3
arista networks
eos
snmp
memory leak

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

6.3 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

39.9%

On affected platforms running Arista EOS with SNMP configured and the snmpd process is running, a specially crafted SNMP packet can cause a memory leak in the snmpd process. This may result in the snmpd processing being terminated (causing SNMP requests to time out until snmpd is automatically restarted) and potential memory resource exhaustion for other processes on the switch. The vulnerability does not have any confidentiality or integrity impacts to the system.

Note that Nessus has not tested for this issue but has instead relied only on the application’s self-reported version number.

#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(179045);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/18");

  script_cve_id("CVE-2023-24511");

  script_name(english:"Arista Networks EOS Memory Exhaustion (SA0084)");

  script_set_attribute(attribute:"synopsis", value:
"The version of Arista Networks EOS running on the remote device is affected by a memory exhaustion vulnerability.");
  script_set_attribute(attribute:"description", value:
"On affected platforms running Arista EOS with SNMP configured and the snmpd process is running, a specially 
crafted SNMP packet can cause a memory leak in the snmpd process. This may result in the snmpd processing 
being terminated (causing SNMP requests to time out until snmpd is automatically restarted) and potential 
memory resource exhaustion for other processes on the switch. The vulnerability does not have any 
confidentiality or integrity impacts to the system.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported 
version number.");
  # https://www.arista.com/en/support/advisories-notices/security-advisory/17239-security-advisory-0084
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?bec03fda");
  script_set_attribute(attribute:"solution", value:
"Apply the patch or upgrade to a fixed version as referenced in the vendor advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2023-24511");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2023/04/11");
  script_set_attribute(attribute:"patch_publication_date", value:"2023/04/11");
  script_set_attribute(attribute:"plugin_publication_date", value:"2023/07/31");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:arista:eos");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("arista_eos_detect.nbin");
  script_require_keys("Host/Arista-EOS/Version", "Host/Arista-EOS/model", "Settings/ParanoidReport");

  exit(0);
}

include('arista_eos_func.inc');
include('audit.inc');

if (report_paranoia < 2)
  audit(AUDIT_PARANOID);

var version = get_kb_item_or_exit('Host/Arista-EOS/Version');
var model = toupper(get_kb_item_or_exit('Host/Arista-EOS/model'));

if (model !~ ".*70(1|2|5|6)0.*" &&
    model !~ ".*71(3|5|6|7)0.*" &&
    model !~ ".*72(0|2|50|60|80).*" &&
    model !~ ".*73(00|20|58|68|88).*" &&
    model !~ ".*7(5|80)0.*")
    audit(AUDIT_HOST_NOT, 'an affected model');

var ext='SecurityAdvisoryKabruHotfix.rpm';
var sha='da2bc1fd2c7fc718e3c72c7ce83dc1caa05150cbe2f081c8cc3ed40ce787f7e24dff5202e621ef5f2af89f72afd25f7476d02f722ffe8e8c7d24c101cbbfe0e5';

if(eos_extension_installed(ext:ext, sha:sha))
  audit(AUDIT_HOST_NOT, 'affected as a relevant hotfix has been installed');

var vmatrix = make_array();
vmatrix['F']   =  make_list('4.29.0<=4.29.1');
vmatrix['M']   =  make_list('4.28.0<=4.28.5.1',
                            '4.27.0<=4.27.8.1',
                            '4.26.0<=4.26.9',
                            '4.25.0<=4.25.10',
                            '4.24.0<=4.24.11');
vmatrix['fix'] = '4.26.10M / 4.27.9M / 4.28.6M / 4.29.2F';

# Check if SNMP Service is enabled
var snmp_service_chk = eos_snmp_service();
var kb_snmp_service = get_kb_item('Host/Arista-EOS/show snmp enabled');

if (!kb_snmp_service)
  audit(AUDIT_HOST_NOT, 'affected as the SNMP Service is not enabled');

if (eos_is_affected(vmatrix:vmatrix, version:version))
  security_report_v4(severity:SECURITY_HOLE, port:0, extra:eos_report_get());
else
  audit(AUDIT_INST_VER_NOT_VULN, 'Arista Networks EOS', version);
VendorProductVersionCPE
aristaeoscpe:/o:arista:eos

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

6.3 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

39.9%

Related for ARISTA_EOS_SA0084.NASL