CVE-2023-5764: A template injection flaw was found in Ansible where a user's controller internal templating operations may re HIGH 7.1 WATCHLIST UPGRADE DOWNGRADE MITIGATE
CVE-2023-5764 is a high-severity flaw (CVSS 7.1) affecting ansible, extra packages for enterprise linux, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A template injection flaw was found in Ansible where a user's controller internal templating operations may remove the unsafe designation from template data. This issue could allow an attacker to use a specially crafted file to introduce templating injection when supplying templating data.
Why this priority High severity On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 7.1 (High) Attack vector Local Attack complexity Low Privileges needed Low User interaction None EPSS exploit chance 0.5% (top 54%) CISA exploited list No Weakness CWE-1336 Published 2023-12-12 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2023-12-12 22:15 UTC Published CVE record published2026-06-17 06:49 UTC Updated Record last modifiedredhat ansible UPGRADE
Affected: < 2.14.12 · >= 2.15.0 and < 2.15.7 · 2.16.0 · 2.16.0 beta1 · 2.16.0 beta2 · 2.16.0 rc1
Fixed in: 2.14.12, 2.15.7
Safe to downgrade to: a release before 2.15.0
1. Check installed version
Copy apt-cache policy ansible || rpm -q ansible || ansible --version
2. UPGRADE to 2.14.12 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade ansible
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade ansible
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.15.0 (Debian / Ubuntu)
Copy apt-cache madison ansible
sudo apt install ansible=<VERSION_BEFORE_2.15.0>
sudo apt-mark hold ansible
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list ansible
sudo dnf downgrade ansible-<VERSION_BEFORE_2.15.0>
sudo dnf versionlock add ansible
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
fedoraproject extra packages for enterprise linux DOWNGRADE
Affected: 8.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 8.0
1. Check installed version
Copy apt-cache policy extra-packages-for-enterprise-linux || rpm -q extra-packages-for-enterprise-linux || extra-packages-for-enterprise-linux --version
2. No fixed release: DOWNGRADE to a release before 8.0 (Debian / Ubuntu)
Copy apt-cache madison extra-packages-for-enterprise-linux
sudo apt install extra-packages-for-enterprise-linux=<VERSION_BEFORE_8.0>
sudo apt-mark hold extra-packages-for-enterprise-linux
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list extra-packages-for-enterprise-linux
sudo dnf downgrade extra-packages-for-enterprise-linux-<VERSION_BEFORE_8.0>
sudo dnf versionlock add extra-packages-for-enterprise-linux
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
fedoraproject fedora MITIGATE
Affected: 38 · 39
Fixed in: no fixed release known
Safe to downgrade to: a release before 38
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat ansible automation platform DOWNGRADE
Affected: 2.4
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.4
1. Check installed version
Copy apt-cache policy ansible-automation-platform || rpm -q ansible-automation-platform || ansible-automation-platform --version
2. No fixed release: DOWNGRADE to a release before 2.4 (Debian / Ubuntu)
Copy apt-cache madison ansible-automation-platform
sudo apt install ansible-automation-platform=<VERSION_BEFORE_2.4>
sudo apt-mark hold ansible-automation-platform
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list ansible-automation-platform
sudo dnf downgrade ansible-automation-platform-<VERSION_BEFORE_2.4>
sudo dnf versionlock add ansible-automation-platform
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
redhat ansible developer DOWNGRADE
Affected: 1.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.1
1. Check installed version
Copy apt-cache policy ansible-developer || rpm -q ansible-developer || ansible-developer --version
2. No fixed release: DOWNGRADE to a release before 1.1 (Debian / Ubuntu)
Copy apt-cache madison ansible-developer
sudo apt install ansible-developer=<VERSION_BEFORE_1.1>
sudo apt-mark hold ansible-developer
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list ansible-developer
sudo dnf downgrade ansible-developer-<VERSION_BEFORE_1.1>
sudo dnf versionlock add ansible-developer
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
redhat ansible inside DOWNGRADE
Affected: 1.2
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.2
1. Check installed version
Copy apt-cache policy ansible-inside || rpm -q ansible-inside || ansible-inside --version
2. No fixed release: DOWNGRADE to a release before 1.2 (Debian / Ubuntu)
Copy apt-cache madison ansible-inside
sudo apt install ansible-inside=<VERSION_BEFORE_1.2>
sudo apt-mark hold ansible-inside
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list ansible-inside
sudo dnf downgrade ansible-inside-<VERSION_BEFORE_1.2>
sudo dnf versionlock add ansible-inside
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD ·
CVE Program ·
Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems. Quick answers How do I fix CVE-2023-5764? ansible: upgrade to 2.14.12, 2.15.7; extra packages for enterprise linux: downgrade or apply the listed mitigation; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2023-5764 being exploited? CVE-2023-5764 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-5764 affect? CVE-2023-5764 affects ansible, extra packages for enterprise linux, fedora. Severity is high (CVSS 7.1). A template injection flaw was found in Ansible where a user's controller internal templating operations may remove the unsafe designation from template data. This issue could allow an attacker to use a specially crafted file to introduce te
How urgent is CVE-2023-5764? Priority 41/100. High severity; On your watchlist
Software pages Ansible vulnerabilities
Related CVEs CVE-2024-0690 MEDIUM 5.0 UPGRADE MITIGATE An information disclosure flaw was found in ansible-core due to a failure to respect the ANSIBLE_NO_LOG configCVE-2023-32983 MEDIUM 5.3 UPGRADE Jenkins Ansible Plugin 204.v8191fd551eb_f and earlier does not mask extra variables displayed on the configuraCVE-2023-32982 MEDIUM 4.3 UPGRADE Jenkins Ansible Plugin 204.v8191fd551eb_f and earlier stores extra variables unencrypted in job config.xml filCVE-2022-3697 HIGH 7.5 UPGRADE UPGRADE A flaw was found in Ansible in the amazon.aws collection when using the tower_callback parameter from the amazCVE-2021-3447 MEDIUM 5.5 UPGRADE UPGRADE A flaw was found in several ansible modules, where parameters containing credentials, such as secrets, were beReferences ← Back to latest CVEs