# 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 emi…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-209
- **Published:** 2026-11-05T09:38:31.304Z
- **Modified:** 2026-11-05T19:17:17.220Z

## Who should check

- Anyone running Red Hat ansible-core \>= 2.19.0, \< 2.23.0

## 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.

## Affected and fixed versions

- Red Hat ansible-core: \>= 2.19.0, \< 2.23.0 (cvelist)

## Mitigation

- Upgrade ansible-core to 2.23.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-123036. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-123036.md
Affected: Red Hat ansible-core >= 2.19.0, < 2.23.0
Fixed in: Red Hat ansible-core 2.23.0

Steps:
1. Search this machine and project for Red Hat ansible-core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-123036 being exploited?

There is no confirmed exploitation: CVE-2026-123036 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-123036?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-123036?

Red Hat ansible-core \>= 2.19.0, \< 2.23.0.

### Is there a fix for CVE-2026-123036?

Yes. Fixed in Red Hat ansible-core 2.23.0. Upgrade ansible-core to 2.23.0 or later.

### How do I check if I'm affected by CVE-2026-123036?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://access.redhat.com/security/cve/CVE-2026-123036>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-123036>

HTML: <https://flawdb.com/CVE-2026-123036> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-123036>
