REDHAT-BUG-672468: Low severity red hat directory server vulnerability
It was discovered that 398 / Red Hat Directory Server set LDLIBRARYPATH environment variable to insecure value containing empty path elements in various shell scripts used by DS (e.g. various backup/restore scripts instantiated for each DS instance, as well as the main initialization script). Such LDLIBRARYPATH setting causes ld.so dynamic linker to perform library search relative to the current working directory before searching system library directories. A local attacker able to trick a user running those scripts (usually the root user) to run them while working from an attacker writeable directory could use this flaw to escalate their privileges via specially crated dynamic library.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-672468?
The severity of REDHAT-BUG-672468 is considered moderate due to the presence of insecure environment variable settings.
How do I fix REDHAT-BUG-672468?
To fix REDHAT-BUG-672468, ensure that LD_LIBRARY_PATH does not contain any empty path elements in the relevant shell scripts.
What versions of Red Hat Directory Server are affected by REDHAT-BUG-672468?
REDHAT-BUG-672468 affects various versions of Red Hat Directory Server that utilize the insecure shell scripts.
What security risk does REDHAT-BUG-672468 pose?
The security risk posed by REDHAT-BUG-672468 includes potential code execution due to improper handling of the LD_LIBRARY_PATH environment variable.
Are there any workarounds for REDHAT-BUG-672468?
Temporary workarounds for REDHAT-BUG-672468 include modifying shell scripts to sanitize the LD_LIBRARY_PATH variable before execution.