{"id":"UBUNTU-CVE-2018-1000001","details":"In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before the destination buffer leading to a buffer underflow and potential code execution.","modified":"2026-04-22T12:41:45.723573Z","published":"2018-01-11T00:00:00Z","related":["USN-3534-1","USN-3536-1","USN-4768-1"],"upstream":["CVE-2018-1000001"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-1000001"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2018/01/11/5"},{"type":"REPORT","url":"https://sourceware.org/bugzilla/show_bug.cgi?id=18203"},{"type":"REPORT","url":"https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3534-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3536-1"},{"type":"REPORT","url":"https://lists.samba.org/archive/rsync/2018-February/031478.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000001"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4768-1"}],"affected":[{"package":{"name":"eglibc","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/eglibc@2.19-0ubuntu6.14?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.19-0ubuntu6.14"}]}],"versions":["2.17-93ubuntu4","2.18-0ubuntu1","2.18-0ubuntu2","2.18-0ubuntu4","2.18-0ubuntu5","2.18-0ubuntu6","2.18-0ubuntu7","2.19-0ubuntu2","2.19-0ubuntu3","2.19-0ubuntu4","2.19-0ubuntu5","2.19-0ubuntu6","2.19-0ubuntu6.1","2.19-0ubuntu6.3","2.19-0ubuntu6.4","2.19-0ubuntu6.5","2.19-0ubuntu6.6","2.19-0ubuntu6.7","2.19-0ubuntu6.8","2.19-0ubuntu6.9","2.19-0ubuntu6.10","2.19-0ubuntu6.11","2.19-0ubuntu6.13"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"eglibc-source","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc-bin","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc-dev-bin","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-amd64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-armel","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-amd64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-armel","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-i386","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-ppc64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-x32","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-i386","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-pic","binary_version":"2.19-0ubuntu6.14"},{"binary_version":"2.19-0ubuntu6.14","binary_name":"libc6-ppc64"},{"binary_name":"libc6-prof","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-x32","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"multiarch-support","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"nscd","binary_version":"2.19-0ubuntu6.14"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000001.json"}},{"package":{"name":"musl","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/musl@0.9.15-1ubuntu0.1~esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.15-1ubuntu0.1~esm1"}]}],"versions":["0.9.14-2","0.9.14-2ubuntu1","0.9.15-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"musl","binary_version":"0.9.15-1ubuntu0.1~esm1"},{"binary_name":"musl-tools","binary_version":"0.9.15-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000001.json"}},{"package":{"name":"glibc","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/glibc@2.23-0ubuntu10?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.23-0ubuntu10"}]}],"versions":["2.21-0ubuntu4","2.21-0ubuntu5","2.21-0ubuntu6","2.23-0ubuntu1","2.23-0ubuntu2","2.23-0ubuntu3","2.23-0ubuntu4","2.23-0ubuntu5","2.23-0ubuntu6","2.23-0ubuntu7","2.23-0ubuntu9"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"glibc-source","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc-bin","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc-dev-bin","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-amd64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-armel","binary_version":"2.23-0ubuntu10"},{"binary_version":"2.23-0ubuntu10","binary_name":"libc6-dev-amd64"},{"binary_name":"libc6-dev-armel","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-i386","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-ppc64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-s390","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-x32","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-i386","binary_version":"2.23-0ubuntu10"},{"binary_version":"2.23-0ubuntu10","binary_name":"libc6-pic"},{"binary_name":"libc6-ppc64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-s390","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-x32","binary_version":"2.23-0ubuntu10"},{"binary_name":"locales","binary_version":"2.23-0ubuntu10"},{"binary_name":"locales-all","binary_version":"2.23-0ubuntu10"},{"binary_version":"2.23-0ubuntu10","binary_name":"multiarch-support"},{"binary_name":"nscd","binary_version":"2.23-0ubuntu10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000001.json"}},{"package":{"name":"musl","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/musl@1.1.9-1ubuntu0.1~esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.9-1ubuntu0.1~esm2"}]}],"versions":["1.1.9-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"musl","binary_version":"1.1.9-1ubuntu0.1~esm2"},{"binary_name":"musl-tools","binary_version":"1.1.9-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000001.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"high"}]}