{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2017-16997 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2017-16997 is a high-severity vulnerability in Gnu Glibc, published on 18 Dec 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-16997 and fix it if it is affected.\n\nWhat it is: CVE-2017-16997 is a high-severity vulnerability in Gnu Glibc, published on 18 Dec 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2017-16997 in the wild and no public exploit code.\n\nAffected product: Gnu Glibc. 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-2017-16997/ (Markdown: https://insights.sbomify.com/CVE-2017-16997/index.md)","id":"CVE-2017-16997","markdown":"https://insights.sbomify.com/CVE-2017-16997/index.md","name":"CVE-2017-16997","record":{"aliases":["DEBIAN-CVE-2017-16997","GHSA-q5m3-4jcg-c4rf","UBUNTU-CVE-2017-16997"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"GNU C Library","requires_auth":"none","summary":"Local attackers can gain privileges via Trojan horse libraries in privileged programs with specific RPATH configurations in glibc.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"debian","cpe":[{"product":"glibc","vendor":"gnu"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"description":"elf/dl-load.c in the GNU C Library (aka glibc or libc6) 2.19 through 2.26 mishandles RPATH and RUNPATH containing $ORIGIN for a privileged (setuid or AT_SECURE) program, which allows local users to gain privileges via a Trojan horse library in the current working directory, related to the fillin_rpath and decompose_rpath functions. This is associated with misinterpretion of an empty RPATH/RUNPATH token as the \"./\" directory. NOTE: this configuration of RPATH/RUNPATH for a privileged program is apparently very uncommon; most likely, no such program is shipped with any common Linux distribution.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2018-01-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-01-03T09:31:55Z","kind":"github_poc","ref":"https://github.com/Xiami2012/CVE-2017-16997-poc","stars":0,"title":"A proof-of-concept for CVE-2017-16997"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Privilege escalation in glibc 2.19 through 2.26","id":"CVE-2017-16997","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"gnu:glibc","products":["gnu:glibc","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_workstation"],"type":"privilege_escalation","year":"2017"},"n_packages":0,"n_references":6,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2017-16998"},"packages":[],"prev":{"headline":"Memory corruption in Linux kernel through 4.14.8","id":"CVE-2017-16996"},"products":["glibc 2.19 through 2.26"],"published":"2017-12-18","related":[{"cvss_score":9.8,"headline":"scanf %mc off-by-one heap buffer overflow","id":"CVE-2026-5450","kev_date_added":null,"published":"2026-04-20"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2023-25139","kev_date_added":null,"published":"2023-02-03"},{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-1999-0199","kev_date_added":null,"published":"2020-10-06"},{"cvss_score":9.8,"headline":"Security feature bypass in glibc","id":"CVE-2019-1010022","kev_date_added":null,"published":"2019-07-15"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2005-3590","kev_date_added":null,"published":"2019-04-10"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-18269","kev_date_added":null,"published":"2018-05-18"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2018-11236","kev_date_added":null,"published":"2018-05-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Local attackers can gain privileges via Trojan horse libraries in privileged programs with specific RPATH configurations in glibc.","url":"https://insights.sbomify.com/CVE-2017-16997/"}