Max Vozeler found that the cdrecord program, which can be installed as suid root, fails to drop euid=0 when it exec()s a program specified by the user through the $RSH environment variable. This can be abused by a local attacker to obtain root privileges.
Credit:
The information has been provided by I)ruid.
This shell script writes out and compiles a C application which sets it's UID to it's EUID and copies a SUID shell to the current directory, compiles it, then uses cdrecord's use of the $RSH environment variable to execute it. It then cleans up it's mess and executes the shell for convenience.
*Note: This exploit is written assuming your target shell is bash