SecurityContext

CVE-2019-6443: NTPsec > 1.1.3 - 'ctl_getitem' Out-of-Bounds Read

  • Template: CVE-2019-6443
  • Name: NTPsec > 1.1.3 - 'ctl_getitem' Out-of-Bounds Read
  • Description: NTPsec before 1.1.3 contains a stack-based buffer over-read caused by a bug in ctl_getitem in read_sysvars in ntp_control.c in ntpd, letting local or remote attackers read sensitive memory, exploit requires sending crafted control requests.
  • Impact: Attackers can read sensitive memory contents, potentially leading to information disclosure or further exploitation.
  • Remediation: Update to version 1.1.3 or later.
  • Severity: critical
  • Authors: pussycat0x, 0x_Akoko
  • Tags: cve, cve2019, ntp, ntpsec, udp, passive, vkev, vuln
  • References: https://nvd.nist.gov/vuln/detail/CVE-2019-6443, https://www.exploit-db.com/exploits/46175
  • Cves: CVE-2019-6443
  • Verified: yes
  • Directory: javascript/cves
  • Path: javascript/cves/2019/CVE-2019-6443.yaml
  • Digest: 4b0a00483046022100dac69c109c71221c289c9e1ee7391bb3ed53b15cd17d1aa5839e38432fcea7f6022100b58dd50648de6a3fa080ac30a4440980ea9223fa49347e132467406043c25041
  • Created at: 2025-11-03T08:36:54Z
  • Updated at: 2026-11-21T02:03:58Z
  • Age in days: 386
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2019/CVE-2019-6443.yaml
  • Not known: max requests

Classification

  • Cwe: CWE-125
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Epss score: 0.66881
  • Epss percentile: 0.9931
  • Cpe: cpe:2.3:a:ntpsec:ntpsec:*:*:*:*:*:*:*:*

Metadata

  • Product: ntpsec
  • Shodan-query: ntpsec
  • Vendor: ntpsec
  • Verified: yes

Products

ProductIndexedUrl
ntpsec:ntpsecyes/v1/products/ntpsec/ntpsec

Labels

  • Name: NTPsec - Information Disclosure
  • Impact: Attackers can read sensitive memory contents, potentially leading to information disclosure or further exploitation.
  • Remediation: Update to version 1.1.3 or later.
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2019-6443
  • Not known: vulnerability type, requirements

```yaml

id: CVE-2019-6443

info:

name: NTPsec > 1.1.3 - 'ctl_getitem' Out-of-Bounds Read

author: pussycat0x,0x_Akoko

severity: critical

description: |

NTPsec before 1.1.3 contains a stack-based buffer over-read caused by a bug in ctl_getitem in read_sysvars in ntp_control.c in ntpd, letting local or remote attackers read sensitive memory, exploit requires sending crafted control requests.

impact: |

Attackers can read sensitive memory contents, potentially leading to information disclosure or further exploitation.

remediation: |

Update to version 1.1.3 or later.

reference:

- https://nvd.nist.gov/vuln/detail/CVE-2019-6443

- https://www.exploit-db.com/exploits/46175

classification:

cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

cvss-score: 9.1

cve-id: CVE-2019-6443

cwe-id: CWE-125

epss-score: 0.66881

epss-percentile: 0.9931

cpe: cpe:2.3:a:ntpsec:ntpsec:*:*:*:*:*:*:*:*

metadata:

verified: true

vendor: ntpsec

product: ntpsec

shodan-query: "ntpsec"

tags: cve,cve2019,ntp,ntpsec,udp,passive,vkev,vuln

javascript:

- pre-condition: |

isUDPPortOpen(Host, Port);

code: |

const c = require("nuclei/net");

const payload = "160203e80000000000000000";

const conn = c.Open('udp', `${Host}:${Port}`);

conn.SendHex(payload);

let resp = conn.RecvFullString(1024);

const versionMatch = resp.match(/version="([^"]+)"/);

let version = resp;

if (versionMatch && versionMatch[1]) {

let versionStr = versionMatch[1];

if (versionStr.indexOf('+') !== -1) {

version = versionStr.split('+')[0].trim();

} else {

version = versionStr.replace(/\s+\d{4}-\d{2}-\d{2}.*$/, '').trim();

}

}

Export(version);

args:

Host: "{{Host}}"

Port: 123

matchers:

- type: dsl

dsl:

- contains(response, "ntpsec")

- compare_versions(version, '< 1.1.3')

condition: and

extractors:

- type: regex

name: version

group: 1

regex:

- 'ntpd ntpsec-([0-9.]+)'

digest: 4b0a00483046022100dac69c109c71221c289c9e1ee7391bb3ed53b15cd17d1aa5839e38432fcea7f6022100b58dd50648de6a3fa080ac30a4440980ea9223fa49347e132467406043c25041:922c64590222798bb761d5b6d8e72950

```