Description
GNU Project Debugger (GDB) before 7.5, when .debug_gdb_scripts is defined, automatically loads certain files from the current working directory, which allows local users to gain privileges via crafted files such as Python scripts.
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 14 | gdb | 7.6-1 | — |
| Debian 13 | gdb | 7.6-1 | — |
| Debian 12 | gdb | 7.6-1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | gdb +1 | 7.2-60.el6 | RHSA-2013:0522 |
Advisories 1
- RHSA-2013:0522 Red Hat Security Advisory: gdb security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- RHSA-2013:0522 vendor-advisory
- [gdb-patches] 20110429 Re: [RFA] Add $pdir as entry for libthread-db-search-path. mailing-list
- [gdb-patches] 20110506 Re: [RFA] Add $pdir as entry for libthread-db-search-path. mailing-list
- http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/src/gdb/NEWS?content-type=text/x-cvsweb-markup&cvsroot=src
- 1028191 vdb-entry