{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-12327 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2018-12327 is a critical memory corruption vulnerability in Ntp Ntp, published on 20 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-12327 and fix it if it is affected.\n\nWhat it is: CVE-2018-12327 is a critical memory corruption vulnerability in Ntp Ntp, published on 20 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-12327 in the wild and no public exploit code.\n\nAffected product: Ntp Ntp. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-12327/ (Markdown: https://insights.sbomify.com/CVE-2018-12327/index.md)","id":"CVE-2018-12327","markdown":"https://insights.sbomify.com/CVE-2018-12327/index.md","name":"CVE-2018-12327","record":{"aliases":["CLSA-2023-1699468766","DEBIAN-CVE-2018-12327","GHSA-gmx7-j3pp-2gxp","MGASA-2018-0371","RHSA-2018:3853","RHSA-2018:3854","RHSA-2019:2077","RHSA-2020:1470","UBUNTU-CVE-2018-12327","USN-4229-1","USN-4229-2"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"NTP time synchronization","requires_auth":"none","summary":"Stack-based buffer overflow in NTP utilities allows attackers to execute code or escalate privileges via crafted command-line arguments.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ntp","vendor":"ntp"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"Stack-based buffer overflow in ntpq and ntpdc of NTP version 4.2.8p11 allows an attacker to achieve code execution or escalate to higher privileges via a long string as the argument for an IPv4 or IPv6 command-line parameter. NOTE: It is unclear whether there are any common situations in which ntpq or ntpdc is used with a command line from an untrusted source.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:rhel_eus:6.7::computenode","Red Hat:rhel_eus:6.7::server","Red Hat:rhel_eus:7.6::computenode","Red Hat:rhel_eus:7.6::server"],"exploits":{"exploitdb":1,"first_seen":"2018-06-20","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-06-20","kind":"exploitdb","ref":"44909","stars":null,"title":"ntp 4.2.8p11 - Local Buffer Overflow (PoC)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Memory corruption in n/a","id":"CVE-2018-12327","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"ntp:ntp","products":["ntp:ntp"],"type":"memory_corruption","year":"2018"},"n_packages":66,"n_references":9,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2018-12329"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:4.2.6p5-15.el6_10"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2018:3854"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"sntp","purl":"pkg:rpm/redhat/sntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"sntp","purl":"pkg:rpm/redhat/sntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-doc","purl":"pkg:rpm/redhat/ntp-doc","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-perl","purl":"pkg:rpm/redhat/ntp-perl","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntpdate","purl":"pkg:rpm/redhat/ntpdate","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"sntp","purl":"pkg:rpm/redhat/sntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp","purl":"pkg:rpm/redhat/ntp","source":"RHSA-2019:2077"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:4.2.6p5-29.el7"],"introduced":["0"],"last_affected":[],"package":"ntp-debuginfo","purl":"pkg:rpm/redhat/ntp-debuginfo","source":"RHSA-2019:2077"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2018-12326"},"products":["n/a"],"published":"2018-06-20","related":[{"cvss_score":8.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6460","kev_date_added":null,"published":"2017-03-27"},{"cvss_score":8.1,"headline":"Other in n/a","id":"CVE-2019-11331","kev_date_added":null,"published":"2019-04-18"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6451","kev_date_added":null,"published":"2017-03-27"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6452","kev_date_added":null,"published":"2017-03-27"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6462","kev_date_added":null,"published":"2017-03-27"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2015-7978","kev_date_added":null,"published":"2017-01-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Stack-based buffer overflow in NTP utilities allows attackers to execute code or escalate privileges via crafted command-line arguments.","url":"https://insights.sbomify.com/CVE-2018-12327/"}