{"id":"CVE-2012-2652","aliases":["DEBIAN-CVE-2012-2652","DSA-2542-1","DSA-2545-1","EUVD-2012-2638","GHSA-47rg-xchh-xj5g","SUSE-SU-2015:0929-1","SUSE-SU-2015:0943-1"],"status":"published","title":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function,...","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","severity":{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00344,"percentile":0.2811,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2012-08-07T20:00:00Z","modified":"2026-10-23T17:47:41Z","fixes":[{"ecosystem":"Debian:12","package":"qemu","fixed_in":["1.1.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"qemu","fixed_in":["1.1.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"qemu","fixed_in":["1.1.0+dfsg-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"qemu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"qemu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"qemu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"qemu-kvm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.5+dfsg-5+squeeze9"}]}],"versions":["0.12.5+dfsg-5","0.12.5+dfsg-5+squeeze1","0.12.5+dfsg-5+squeeze2","0.12.5+dfsg-5+squeeze3","0.12.5+dfsg-5+squeeze4","0.12.5+dfsg-5+squeeze4~bpo50+1","0.12.5+dfsg-5+squeeze5","0.12.5+dfsg-5+squeeze6","0.12.5+dfsg-5+squeeze7","0.12.5+dfsg-5+squeeze8"],"bundled":2},{"source":"osv","ecosystem":"Debian:6.0","package":"qemu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.5+dfsg-3squeeze2"}]}],"versions":["0.12.5+dfsg-3","0.12.5+dfsg-3squeeze1"],"bundled":2}],"products":[{"vendor":"qemu","product":"qemu"}],"references":[{"url":"http://secunia.com/advisories/50132","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://git.qemu.org/?p=qemu-stable-0.15.git%3Ba=log","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/50689","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.securityfocus.com/bid/53725","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-09/msg00024.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://www.ubuntu.com/usn/USN-1522-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"http://git.kernel.org/?p=virt/kvm/qemu-kvm.git%3Ba=commit%3Bh=eba25057b9a5e19d10ace2bc7716667a31297169","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.debian.org/security/2012/dsa-2545","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2652"},{"url":"http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=eba25057b9a5e19d10ace2bc7716667a31297169"},{"url":"http://git.qemu.org/?p=qemu-stable-0.15.git;a=log"},{"url":"https://github.com/advisories/GHSA-47rg-xchh-xj5g"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-2652","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20150929-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/598271","tags":["report"]},{"url":"https://bugzilla.suse.com/598298","tags":["report"]},{"url":"https://bugzilla.suse.com/599095","tags":["report"]},{"url":"https://bugzilla.suse.com/603161","tags":["report"]},{"url":"https://bugzilla.suse.com/603179","tags":["report"]},{"url":"https://bugzilla.suse.com/610682","tags":["report"]},{"url":"https://bugzilla.suse.com/619991","tags":["report"]},{"url":"https://bugzilla.suse.com/621793","tags":["report"]},{"url":"https://bugzilla.suse.com/626654","tags":["report"]},{"url":"https://bugzilla.suse.com/637297","tags":["report"]},{"url":"https://bugzilla.suse.com/689895","tags":["report"]},{"url":"https://bugzilla.suse.com/690781","tags":["report"]},{"url":"https://bugzilla.suse.com/695510","tags":["report"]},{"url":"https://bugzilla.suse.com/695766","tags":["report"]},{"url":"https://bugzilla.suse.com/698237","tags":["report"]},{"url":"https://bugzilla.suse.com/701161","tags":["report"]},{"url":"https://bugzilla.suse.com/702823","tags":["report"]},{"url":"https://bugzilla.suse.com/704933","tags":["report"]},{"url":"https://bugzilla.suse.com/705095","tags":["report"]},{"url":"https://bugzilla.suse.com/705304","tags":["report"]},{"url":"https://bugzilla.suse.com/740165","tags":["report"]},{"url":"https://bugzilla.suse.com/764526","tags":["report"]},{"url":"https://bugzilla.suse.com/777084","tags":["report"]},{"url":"https://bugzilla.suse.com/877642","tags":["report"]},{"url":"https://bugzilla.suse.com/877645","tags":["report"]},{"url":"https://bugzilla.suse.com/929339","tags":["report"]},{"url":"https://bugzilla.suse.com/932770","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2011-1750","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2011-1751","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2011-2212","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2011-2512","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2011-2527","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2012-0029","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2012-2652","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2012-3515","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2014-0222","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2014-0223","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-3209","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-3456","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20150943-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/709405","tags":["report"]},{"url":"https://bugzilla.suse.com/712137","tags":["report"]},{"url":"https://bugzilla.suse.com/722643","tags":["report"]},{"url":"https://bugzilla.suse.com/722958","tags":["report"]},{"url":"https://bugzilla.suse.com/724813","tags":["report"]},{"url":"https://bugzilla.suse.com/725008","tags":["report"]},{"url":"https://bugzilla.suse.com/747339","tags":["report"]},{"url":"https://bugzilla.suse.com/753313","tags":["report"]},{"url":"https://bugzilla.suse.com/757031","tags":["report"]},{"url":"https://bugzilla.suse.com/770153","tags":["report"]},{"url":"https://bugzilla.suse.com/772586","tags":["report"]},{"url":"https://bugzilla.suse.com/786813","tags":["report"]},{"url":"https://bugzilla.suse.com/818182","tags":["report"]},{"url":"https://bugzilla.suse.com/824340","tags":["report"]},{"url":"https://bugzilla.suse.com/834196","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2013-2007","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2012-2652","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","status":"published","published":"2012-08-07T20:00:00Z","modified":"2024-08-06T19:42:31.932Z","updated_at":"2026-11-02T14:34:50.263482Z"}],"euvd":[{"id":"EUVD-2012-2638","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","status":"published","published":"2012-08-07T20:00:00Z","modified":"2024-08-06T19:42:31Z","updated_at":"2026-11-03T01:56:13.895728Z"}],"ghsa":[{"id":"GHSA-47rg-xchh-xj5g","title":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function,...","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","status":"published","published":"2022-05-17T04:51:08Z","modified":"2023-02-13T00:30:43Z","updated_at":"2026-11-02T14:54:04.926808Z"}],"nvd":[{"id":"CVE-2012-2652","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","status":"published","published":"2012-08-07T20:55:03.36Z","modified":"2026-06-16T23:41:48.78Z","cvss":[{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:02:15.188652Z"}],"osv":[{"id":"CVE-2012-2652","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","status":"published","published":"2012-08-07T20:55:03Z","modified":"2026-04-10T03:44:15.772874Z","updated_at":"2026-11-02T15:43:58.537032Z"},{"id":"DEBIAN-CVE-2012-2652","description":"The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.","status":"published","published":"2012-08-07T20:55:03.36Z","modified":"2026-10-23T17:47:41.608755615Z","updated_at":"2026-11-02T15:45:24.92418Z"},{"id":"DSA-2542-1","title":"qemu-kvm - multiple","status":"published","published":"2012-09-08T00:00:00Z","modified":"2026-03-09T01:23:14.367072Z","updated_at":"2026-11-02T15:46:15.489951Z"},{"id":"DSA-2545-1","title":"qemu - multiple","status":"published","published":"2012-09-08T00:00:00Z","modified":"2026-03-09T01:19:52.147723Z","updated_at":"2026-11-02T15:46:15.489951Z"},{"id":"SUSE-SU-2015:0929-1","title":"Security update for kvm","description":"\nThe kvm qemu vt100 emulation was affected by a problem where specific vt100 \nsequences could have been used by guest users to affect the host. \n(CVE-2012-3515 aka XSA-17).\n\nAlso a temp file race was fixed. (CVE-2012-2652)\n\nSecurity Issue reference:\n\n    * CVE-2012-3515\n      \u003chttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-3515\u003e\n    * CVE-2012-2652\n      \u003chttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2652\u003e\n\n","status":"published","published":"2012-08-31T14:36:20Z","modified":"2026-02-04T03:38:26.839919Z","updated_at":"2026-11-02T15:53:41.276824Z"},{"id":"SUSE-SU-2015:0943-1","title":"Security update for KVM","description":"\nThis update fixes a file permission issue with qga (the QEMU Guest Agent) \nfrom the qemu/kvm package and includes several bug-fixes.\n\n(bnc#818182) (CVE-2013-2007) (bnc#786813) (bnc#725008) (bnc#712137) \n(bnc#824340)\n\nSecurity Issues:\n\n    * CVE-2013-2007\n      \u003chttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-2007\u003e\n\n","status":"published","published":"2013-06-24T20:56:39Z","modified":"2026-02-04T03:18:53.801838Z","updated_at":"2026-11-02T15:53:41.276824Z"}]}}
