CVE-2015-7851: Path Traversal

Published Jan 28, 2020
·
Updated

Directory traversal vulnerability in the saveconfig function in ntpd in ntpcontrol.c in NTP before 4.2.8p4, when used on systems that do not use '\' or '/' characters for directory separation such as OpenVMS, allows remote authenticated users to overwrite arbitrary files.

Affected Software

20 affected componentsFixes available
NTP ntp>=4.2.0<4.2.8
NTP ntp>=4.3.0<4.3.77
NTP ntp=4.2.8-p1
NTP ntp=4.2.8-p1-beta1
NTP ntp=4.2.8-p1-beta2
NTP ntp=4.2.8-p1-beta3
NTP ntp=4.2.8-p1-beta4
NTP ntp=4.2.8-p1-beta5
NTP ntp=4.2.8-p1-rc1
NTP ntp=4.2.8-p1-rc2
NTP ntp=4.2.8-p2
NTP ntp=4.2.8-p2-rc1
NTP ntp=4.2.8-p2-rc2
NTP ntp=4.2.8-p2-rc3
NTP ntp=4.2.8-p3
NTP ntp=4.2.8-p3-rc1
NTP ntp=4.2.8-p3-rc2
NTP ntp=4.2.8-p3-rc3
debian/ntp<1:4.2.8p4+dfsg-1
1:4.2.8p4+dfsg-1
debian/ntp
1:4.2.6.p2+dfsg-1+deb6u41:4.2.6.p5+dfsg-2+deb7u61:4.2.6.p5+dfsg-7+deb8u11:4.2.8p4+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/ntp to a version that resolves this vulnerability.

    Fixed in 1:4.2.8p4+dfsg-1
  2. Upgrade

    Upgrade debian/ntp to a version that resolves this vulnerability.

    Fixed in 1:4.2.6.p2+dfsg-1+deb6u4Fixed in 1:4.2.6.p5+dfsg-2+deb7u6Fixed in 1:4.2.6.p5+dfsg-7+deb8u1Fixed in 1:4.2.8p4+dfsg-1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.8p4

Event History

Jan 28, 2020
CVE Published
via MITRE·04:35 PM
Data Sourced
via MITRE·04:35 PM
Description
Data Sourced
05:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Nov 24, 2026
Withdrawn
via OSV·04:29 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2015-7851?

CVE-2015-7851 is a directory traversal vulnerability in the save_config function in ntpd in NTP before 4.2.8p4.

2

How does CVE-2015-7851 affect NTP?

CVE-2015-7851 allows remote authenticated users to overwrite arbitrary files on systems that do not use '\' or '/' characters for directory separation such as OpenVMS.

3

Which versions of NTP are affected by CVE-2015-7851?

NTP versions before 4.2.8p4 are affected by CVE-2015-7851.

4

What is the severity of CVE-2015-7851?

CVE-2015-7851 has a severity rating of 6.5 (medium).

5

How can I fix CVE-2015-7851?

To fix CVE-2015-7851, you should upgrade to NTP version 4.2.8p4 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203