CVE-2026-123036
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ansible | Fix pending | UBUNTU-CVE-2026-123036 | |
| Ubuntu 26.10 | ansible-core | Fix pending | UBUNTU-CVE-2026-123036 | |
| Ubuntu 26.04 | ansible | Under investigation | UBUNTU-CVE-2026-123036 | |
| Ubuntu 26.04 | ansible-core | Under investigation | UBUNTU-CVE-2026-123036 | |
| Ubuntu 24.04 | ansible | Under investigation | UBUNTU-CVE-2026-123036 | |
| Ubuntu 24.04 | ansible-core | Under investigation | UBUNTU-CVE-2026-123036 | |
| Ubuntu 22.04 | ansible | Fix pending | UBUNTU-CVE-2026-123036 | |
| Ubuntu 22.04 | ansible-core | Under investigation | UBUNTU-CVE-2026-123036 | |
| Ubuntu 20.04 | ansible | Fix pending | UBUNTU-CVE-2026-123036 | |
| Ubuntu 18.04 | ansible | Fix pending | UBUNTU-CVE-2026-123036 | |
| Ubuntu 16.04 | ansible | Fix pending | UBUNTU-CVE-2026-123036 | |
| Ubuntu 14.04 | ansible | Fix pending | UBUNTU-CVE-2026-123036 | |
| Debian 14 | ansible-core | Fix pending | DEBIAN-CVE-2026-123036 | |
| Debian 13 | ansible-core | Fix pending | DEBIAN-CVE-2026-123036 | |
| Debian 12 | ansible-core | Fix pending | DEBIAN-CVE-2026-123036 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat ansible-core: affected: 2.19.0 to before 2.23.0; fixed in
2.23.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.