Description
pygrub (tools/pygrub/src/GrubConf.py) in Xen 3.0.3, when booting a guest domain, allows local users with elevated privileges in the guest domain to execute arbitrary commands in domain 0 via a crafted grub.conf file whose contents are used in exec statements.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | xen-3.0 | 3.0.3-0-3 | DSA-1384-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | xen +1 | 3.0.3-25.0.4.el5 | RHSA-2007:0323 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhel Virtualization 5 | xen +1 | 3.0.3-25.0.4.el5 | RHSA-2007:0323 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Xen 3.0.3 - pygrub TOOLS/PYGRUB/SRC/GRUBCONF.PY Local Command Injection EDB-30620 · local · Sep 22, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2007:0323 Red Hat Security Advisory: xen security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1384-1 xen-3.0 Debian Security (DSA / DLA) · Mar 9, 2026
References
- MDKSA-2007:203 vendor-advisory
- https://issues.rpath.com/browse/RPL-1752
- FEDORA-2007-2270 vendor-advisory
- 27047 third-party-advisory
- 26986 third-party-advisory
- 27486 third-party-advisory
- 27085 third-party-advisory
- http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1068
- 27141 third-party-advisory
- FEDORA-2007-2708 vendor-advisory
- 27103 third-party-advisory
- 20071008 rPSA-2007-0210-1 xen mailing-list
- RHSA-2007:0323 vendor-advisory
- 27161 third-party-advisory
- 25825 vdb-entry
- 27072 third-party-advisory
- oval:org.mitre.oval:def:11240 vdb-entry signature
- FEDORA-2007-713 vendor-advisory
- USN-527-1 vendor-advisory
- DSA-1384 vendor-advisory
- ADV-2007-3348 vdb-entry