Bug 2247629 (CVE-2023-5764)

Summary: CVE-2023-5764 ansible: Template Injection
Product: [Other] Security Response Reporter: Vipul Nair <vinair>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adudiak, bfinger, carnil, davidn, epacific, jcammara, jhardy, jneedle, jobarker, kshier, mabashia, osapryki, simaishi, smcdonal, stcannon, teagle, tfister, yguenane, zsadeh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2247630, 2247631    
Bug Blocks: 2249094    

Description Vipul Nair 2023-11-02 12:57:56 UTC
A flaw was found in Ansible, where a user's controller is vulnerable to template injection when internal templating operations may errantly remove the unsafe designation from template data.

Comment 1 Vipul Nair 2023-11-02 12:59:41 UTC
Created ansible tracking bugs for this issue:

Affects: epel-all [bug 2247631]
Affects: fedora-all [bug 2247630]

Comment 3 Salvatore Bonaccorso 2023-11-23 21:05:54 UTC
Is this an issue which has an upstream fix in the Ansible project? Are there details on the issue to determine downstream affected versions?

Comment 5 Salvatore Bonaccorso 2023-12-05 06:15:37 UTC
(In reply to Vipul Nair from comment #4)
> yes,look here
> https://github.com/ansible/ansible/pull/82293
> https://github.com/ansible/ansible/pull/82294
> https://github.com/ansible/ansible/pull/82295

Thanks (I think they were not there yet when I asked, so thanks for the followup).

Comment 6 errata-xmlrpc 2023-12-13 08:32:21 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 8
  Red Hat Ansible Automation Platform 2.4 for RHEL 9

Via RHSA-2023:7773 https://access.redhat.com/errata/RHSA-2023:7773