CVE-2026-123036: A flaw was found in ansible-core.
CVE-2026-123036 affects 38 listed versions of Red Hat ansible-core in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Red Hat ansible-core
38 of 250 listed versions are affected. Fixed in 2.23.0. The newest release, 2.22.1, is affected too.
2.22.1 2.22.0 2.21.7 2.21.6 2.21.5 2.21.4 2.21.3 2.21.2 2.21.1 2.21.0 2.20.12 2.20.11 2.20.10 2.20.9 2.20.8 2.20.7 2.20.6 2.20.5 2.20.4 2.20.3 2.20.2 2.20.1 2.20.0 2.19.15 2.19.14 2.19.13 2.19.12 2.19.11 2.19.10 2.19.9 2.19.8 2.19.7 2.19.6 2.19.5 2.19.4 2.19.3 2.19.2 2.19.1
What it is
A flaw was found in ansible-core. When a task marked `no_log: true` fails, the task result is censored before being emitted, but the `exception` field is retained because it is present in the PRESERVE allow-list in lib/ansible/_internal/_task.py, and the default stdout callback prints it through CallbackBase._handle_exception. As a result, sensitive values the operator explicitly asked to hide can be disclosed: module argument-validation errors echo the argument value, templating errors print an Origin source snippet (the failing line plus the two preceding lines of the variables file, exposing neighbouring secrets from an -e @secrets.yml file), and fail/assert messages are printed in full. Secret material supplied as extra variables or variables files can therefore leak to terminal output, CI logs, and the stdout logs of any automation wrapping ansible-playbook, even though every task touching the secrets is marked no_log: true. This is a regression introduced with the ansible-core 2.19 data-tagging/templating rework; the behaviour does not occur on 2.16, where the error text is correctly censored.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (Red Hat)
Published by Red Hat on 5 November 2026. Last changed 5 November 2026.
Sources
Check one version you run: look CVE-2026-123036 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.