cve.bz

CVE-2026-123036 red hat ansible-core

5.5 mediumEPSS 0.2%

Medium (5.5) in red hat ansible-core. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-11-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-209 Generation of Error Message Containing Sensitive Information
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-123036 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-123036?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-123036?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-123036 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Red Hat ansible-corefrom 2.19.0 before 2.23.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansible-coreno fix listedDEBIAN-CVE-2026-123036
Ubuntu22.04:LTSansible-coreno fix listedUBUNTU-CVE-2026-123036
Ubuntu24.04:LTS, 26.04:LTS, 26.10ansible, ansible-coreno fix listedUBUNTU-CVE-2026-123036
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 moreansibleno fix listedUBUNTU-CVE-2026-123036

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw affects ansible-core 2.19 and later (the data-tagging/templating rework). Ansible Automation Platform 2.6 and 2.7 ship an affected ansible-core and are affected; AAP 2.4 and 2.5 ship ansible-core 2.18 or earlier, which does not contain the vulnerable code path, and are not affected. The fix will be delivered through ansible-core; products that bundle ansible-core receive it via rebuild.

Red Hat's mitigation

Until a fixed ansible-core is installed, do not rely solely on `no_log: true` to protect secrets in tasks that may fail; restrict read access to playbook output, CI job logs, and any stdout captured by wrapper automation. As provided by the reporter, deploy a custom stdout callback derived from `default` that overrides _handle_exception to suppress or replace the exception text for results containing the `censored` marker.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-123036.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-54 Query System for Information Likelihood: High · Severity: Low
  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON