CVE-2026-79678
freeIPA: idm: freeipa: idp-add eval() reachable before authorization check allows environment disclosure and denial of service
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 7, 2026
Updated · November 2, 2026
Description
A flaw was found in FreeIPA's idp-add command, where insufficiently validated --organization/--base-url input reaches a constrained eval() call before the corresponding LDAP access control check is enforced. This allows any authenticated IPA principal, regardless of privilege level, to enumerate and read the environment variables of the affected server process and to cause denial of service via memory exhaustion.
Statement
This flaw does not allow arbitrary code execution. The eval() call reachable through this flaw is constrained by a regular expression that forbids parentheses in the evaluated expression, which prevents invoking any function.
The severity of the confidentiality impact from this flaw depends on the deployment method. On a standard RPM-based Identity Management (IdM) installation, the affected server process's environment contains only non-sensitive, publicly documented path constants and configuration flags. In container-based deployments using the official FreeIPA server container image, where the Directory Manager and administrator passwords are commonly supplied via an environment variable at first boot, this flaw could expose those credentials if they remain present in the process environment after installation completes.
This flaw is rated Important rather than Critical because no code execution is possible, and rather than Moderate because the confirmed environment-disclosure and denial-of-service primitives are systematic and reliable, and are not dependent on non-default configuration to be triggered.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
There is no configuration-based mitigation that prevents an authenticated but unprivileged principal from reaching the affected code path; upgrading to a fixed package is required once available. Administrators of container-based deployments should verify that credentials supplied via the PASSWORD environment variable during initial container setup do not persist in the running server process's environment.
CVSS / CWE
CVSS 3.1 · 8.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CWE-95 · Improper Neutralization of Directives in Dynamically Evaluated Code