{"id":"UBUNTU-CVE-2025-5278","details":"A flaw was found in GNU Coreutils. The sort utility's begfield() function is vulnerable to a heap buffer under-read. The program may access memory outside the allocated buffer if a user runs a crafted command using the traditional key format. A malicious input could lead to a crash or leak sensitive data.","modified":"2026-08-31T17:15:35.942947492Z","published":"2025-05-27T21:15:00Z","related":["USN-8697-1"],"upstream":["CVE-2025-5278"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-5278"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-5278"},{"type":"REPORT","url":"https://lists.gnu.org/archive/html/bug-coreutils/2025-05/msg00036.html"},{"type":"REPORT","url":"https://lists.gnu.org/archive/html/bug-coreutils/2025-05/msg00040.html"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2025/05/27/2"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2025-5278"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8697-1"}],"affected":[{"package":{"name":"coreutils","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.20-3ubuntu5","8.21-1ubuntu3","8.21-1ubuntu4","8.21-1ubuntu5","8.21-1ubuntu5.1","8.21-1ubuntu5.3","8.21-1ubuntu5.4"],"ecosystem_specific":{"binaries":[{"binary_name":"coreutils","binary_version":"8.21-1ubuntu5.4"},{"binary_name":"mktemp","binary_version":"8.21-1ubuntu5.4"}],"priority_reason":"Only results in a crash in a command-line tool"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.23-4ubuntu2","8.25-2ubuntu2","8.25-2ubuntu3~16.04"],"ecosystem_specific":{"binaries":[{"binary_name":"coreutils","binary_version":"8.25-2ubuntu3~16.04"},{"binary_version":"8.25-2ubuntu3~16.04","binary_name":"mktemp"},{"binary_name":"realpath","binary_version":"8.25-2ubuntu3~16.04"}],"priority_reason":"Only results in a crash in a command-line tool"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.26-3ubuntu4","8.28-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"coreutils","binary_version":"8.28-1ubuntu1"}],"priority_reason":"Only results in a crash in a command-line tool"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.30-3ubuntu2"],"ecosystem_specific":{"priority_reason":"Only results in a crash in a command-line tool","binaries":[{"binary_name":"coreutils","binary_version":"8.30-3ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.32-4.1ubuntu1.4"}]}],"versions":["8.32-4ubuntu2","8.32-4ubuntu3","8.32-4.1ubuntu1","8.32-4.1ubuntu1.1","8.32-4.1ubuntu1.2","8.32-4.1ubuntu1.3"],"ecosystem_specific":{"priority_reason":"Only results in a crash in a command-line tool","binaries":[{"binary_version":"8.32-4.1ubuntu1.4","binary_name":"coreutils"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.4-3ubuntu6.3"}]}],"versions":["9.1-1ubuntu2","9.4-2ubuntu1","9.4-2ubuntu2","9.4-2ubuntu3","9.4-2ubuntu4","9.4-3ubuntu3","9.4-3ubuntu5","9.4-3ubuntu6","9.4-3ubuntu6.1","9.4-3ubuntu6.2"],"ecosystem_specific":{"binaries":[{"binary_version":"9.4-3ubuntu6.3","binary_name":"coreutils"}],"availability":"No subscription required","priority_reason":"Only results in a crash in a command-line tool"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.5-1ubuntu1","9.5-1ubuntu1.25.10.1","9.5-1ubuntu2","9.5-1ubuntu3","9.5-1ubuntu4","9.5-1ubuntu4.1"],"ecosystem_specific":{"priority_reason":"Only results in a crash in a command-line tool","binaries":[{"binary_name":"gnu-coreutils","binary_version":"9.5-1ubuntu4.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/coreutils?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.7-3ubuntu2.1"}]}],"versions":["9.5-1ubuntu4","9.7-3ubuntu1","9.7-3ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"gnu-coreutils","binary_version":"9.7-3ubuntu2.1"}],"availability":"No subscription required","priority_reason":"Only results in a crash in a command-line tool"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5278.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L"},{"type":"Ubuntu","score":"low"}]}