CVE-2026-123036Red Hat Ansible-core sensitive information in error messages
CVSS score
5.5
Medium
CVSS 3.1 from redhat.com
Exploit probability (EPSS)
0.15%
0.15% chance of exploitation in the next 30 days, higher than 4.42% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: secalert@redhat.com
How to fix it, step by step
Check whether you're affected
Find every system running Red Hat Ansible-core and compare its version with the affected versions.
Update to a fixed version
- Update Ansible-core to 2.23.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected products
| Affected products | Versions |
|---|---|
| Red Hat Ansible-core | ≥ 2.19.0, < 2.23.0 |
Weakness
- CWE-209 sensitive information in error messages
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-123036 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-123036?
CVE-2026-123036 has a CVSS 3.1 base score of 5.5 (medium).
Which versions are affected?
Red Hat Ansible-core (≥ 2.19.0, < 2.23.0)
Is there a patch for CVE-2026-123036?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.