Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

NTP Daemon readvar Buffer Overflow

Disclosed
Apr 4, 2001
Created
May 30, 2018

Description

This module exploits a stack based buffer overflow in the
ntpd and xntpd service. By sending an overly long 'readvar'
request it is possible to execute code remotely. As the stack
is corrupted, this module uses the Egghunter technique.

Author

Platform

Linux

Architectures

x86

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/ntp/ntp_overflow
msf exploit(ntp_overflow) > show targets
...targets...
msf exploit(ntp_overflow) > set TARGET < target-id >
msf exploit(ntp_overflow) > show options
...show and set options...
msf exploit(ntp_overflow) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.