{"id":"CVE-2018-25220","aliases":["DEBIAN-CVE-2018-25220","EUVD-2018-21698","GHSA-fx87-p9wh-85gp","UBUNTU-CVE-2018-25220"],"status":"published","title":"Bochs 2.6-5 Buffer Overflow Remote Code Execution","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","severity":{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00648,"percentile":0.51339,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-787"],"published":"2026-03-28T11:58:13Z","modified":"2026-10-17T12:55:26Z","affected":[{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6-2build1","2.6-5","2.6-5build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6-5build1","2.6-5build2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.9+dfsg-3build1","2.6.9+dfsg-4","2.6.9+dfsg-5","2.6.10+dfsg-2","2.6.11+dfsg-1","2.6.11+dfsg-1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.11+dfsg-4","2.7+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7+dfsg-4build1","2.7+dfsg-4build4","2.7+dfsg-4build5"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"bochs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8+dfsg-1"]}],"products":[{"vendor":"bochs","product":"bochs"},{"vendor":"bochs_project","product":"bochs"}],"references":[{"url":"https://www.exploit-db.com/exploits/43979","tags":["exploit","Exploit","VDB Entry","report"]},{"url":"http://bochs.sourceforge.net/","tags":["product","Product","report"]},{"url":"https://www.vulncheck.com/advisories/bochs-5-buffer-overflow-remote-code-execution","tags":["third-party-advisory","Third Party Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-25220"},{"url":"http://bochs.sourceforge.net"},{"url":"https://github.com/advisories/GHSA-fx87-p9wh-85gp"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-25220","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-25220","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-25220","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-25220","title":"Bochs 2.6-5 Buffer Overflow Remote Code Execution","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","status":"published","published":"2026-03-28T11:58:13.268Z","modified":"2026-03-30T14:53:23.576Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical","assessor":"cna"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:35:02.289647Z"}],"euvd":[{"id":"EUVD-2018-21698","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","status":"published","published":"2026-03-28T11:58:13Z","modified":"2026-03-30T14:53:23Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"updated_at":"2026-11-02T19:25:25.878486Z"}],"ghsa":[{"id":"GHSA-fx87-p9wh-85gp","title":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute...","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","status":"published","published":"2026-03-28T12:30:30Z","modified":"2026-03-28T12:30:36Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:06:55.220248Z"}],"nvd":[{"id":"CVE-2018-25220","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","status":"published","published":"2026-03-28T12:16:02.6Z","modified":"2026-06-17T01:55:00.65Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:05:01.494136Z"}],"osv":[{"id":"DEBIAN-CVE-2018-25220","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","status":"withdrawn","published":"2026-03-28T12:16:02.6Z","modified":"2026-03-30T01:02:25.587755Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"UBUNTU-CVE-2018-25220","description":"Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.","status":"published","published":"2026-03-28T12:16:00Z","modified":"2026-10-17T12:55:26.18732076Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"updated_at":"2026-11-02T15:54:17.91743Z"}]}}
