Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2023-5764: A template injection flaw was found in Ansible where a user's controller internal templating operations may re

41
This month
HIGH 7.1WATCHLISTUPGRADEDOWNGRADEMITIGATE

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 score7.1 (High)
Attack vectorLocal
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance0.5% (top 54%)
CISA exploited listNo
WeaknessCWE-1336
Published2023-12-12
Last modified2026-06-17
Publisher (CNA): Red Hat, Inc. · Vendor: fedoraproject · redhat

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

redhat 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
apt-cache policy ansible || rpm -q ansible || ansible --version
2. UPGRADE to 2.14.12 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade ansible
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade ansible
Note
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)
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)
dnf --showduplicates list ansible sudo dnf downgrade ansible-<VERSION_BEFORE_2.15.0> sudo dnf versionlock add ansible
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
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)
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)
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
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
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
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)
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)
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
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
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)
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)
dnf --showduplicates list ansible-developer sudo dnf downgrade ansible-developer-<VERSION_BEFORE_1.1> sudo dnf versionlock add ansible-developer
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
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)
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)
dnf --showduplicates list ansible-inside sudo dnf downgrade ansible-inside-<VERSION_BEFORE_1.2> sudo dnf versionlock add ansible-inside
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.