{"id":"UBUNTU-CVE-2018-25222","details":"SC v7.16 contains a stack-based buffer overflow vulnerability that allows local attackers to execute arbitrary code by supplying oversized input that exceeds buffer boundaries. Attackers can craft malicious input strings exceeding 1052 bytes to overwrite the instruction pointer and execute shellcode in the application context.","modified":"2026-05-20T16:03:39.072470421Z","published":"2026-03-28T12:16:00Z","upstream":["CVE-2018-25222"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-25222"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-25222"},{"type":"REPORT","url":"https://www.exploit-db.com/exploits/44279"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/sc-stack-based-buffer-overflow-remote-code-execution"}],"affected":[{"package":{"name":"sc","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sc?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-4","7.16-4build1","7.16-4ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"sc","binary_version":"7.16-4ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}},{"package":{"name":"sc","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sc?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-4ubuntu1","7.16-4ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"7.16-4ubuntu2","binary_name":"sc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}},{"package":{"name":"sc","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sc?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-4ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"sc","binary_version":"7.16-4ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}},{"package":{"name":"sc","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sc?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-4ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"sc","binary_version":"7.16-4ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}},{"package":{"name":"sc","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sc?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-4ubuntu3","7.16-4.1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.16-4.1","binary_name":"sc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}},{"package":{"name":"sc","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/sc?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-1.1.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"sc","binary_version":"7.16-1.1.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}},{"package":{"name":"sc","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sc?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.16-1.1.2-1","7.16-1.1.3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.16-1.1.3-1","binary_name":"sc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25222.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}