gdb before 6.3 searches the current working directory to load the .gdbinit configuration file, which allows local users to execute arbitrary commands as the user running gdb. More information can be found in the gentoo BTS: http://bugs.gentoo.org/show_bug.cgi?id=88398
This issue should also affect RHEL2.1 and RHEL3
Has this fix made it into the RHEL3 U6 update? jakub has these fixes in the binutils update for RHEL3U6 and RHEL4U2, so I believe even if we're not ready for U6, we can move forward with a patch.
This has been fixed in gdb errata gdb-6.3.0.0-0.31.4 and is in the current releases RHEL3U6 and RHEL4U2.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2005-709.html