title: Ansible: template injection
description: 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 code injection when supplying templating data.
problem types: Improper Neutralization of Special Elements Used in a Template Engine
affected:
{
product: ansible
vendor: n/a
defaultStatus: affected
}
{
vendor: Red Hat
product: Red Hat Ansible Automation Platform 2.4 for RHEL 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: ansible-core
defaultStatus: affected
versions:
version: 1:2.15.8-1.el8ap, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9, cpe:/a:redhat:ansible_automation_platform:2.4::el9, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9, cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8, cpe:/a:redhat:ansible_automation_platform:2.4::el8, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8]
}
{
vendor: Red Hat
product: Red Hat Ansible Automation Platform 2.4 for RHEL 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: ansible-core
defaultStatus: affected
versions:
version: 1:2.15.8-1.el8ap, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9, cpe:/a:redhat:ansible_automation_platform:2.4::el9, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9, cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8, cpe:/a:redhat:ansible_automation_platform:2.4::el8, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8]
}
{
vendor: Red Hat
product: Red Hat Ansible Automation Platform 2.4 for RHEL 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: ansible-core
defaultStatus: affected
versions:
version: 1:2.15.8-1.el9ap, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9, cpe:/a:redhat:ansible_automation_platform:2.4::el9, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9, cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8, cpe:/a:redhat:ansible_automation_platform:2.4::el8, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8]
}
{
vendor: Red Hat
product: Red Hat Ansible Automation Platform 2.4 for RHEL 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: ansible-core
defaultStatus: affected
versions:
version: 1:2.15.8-1.el9ap, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9, cpe:/a:redhat:ansible_automation_platform:2.4::el9, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9, cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8, cpe:/a:redhat:ansible_automation_platform:2.4::el8, cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8]
}
{
product: Fedora
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: ansible
defaultStatus: affected
}
{
product: Extra Packages for Enterprise Linux
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: ansible
defaultStatus: affected
}
metrics:
other: [
content: {'value': 'Moderate', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]