Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919881 (CVE-2023-5764) - <app-admin/ansible-core-{2.14.12,2.15.8,2.16.2}: template injection
Summary: <app-admin/ansible-core-{2.14.12,2.15.8,2.16.2}: template injection
Status: IN_PROGRESS
Alias: CVE-2023-5764
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://access.redhat.com/errata/RHSA...
Whiteboard: B3 [stable?]
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-14 14:39 UTC by Christopher Fore
Modified: 2024-01-07 01:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Fore 2023-12-14 14:39:25 UTC
CVE-2023-5764 (https://access.redhat.com/errata/RHSA-2023:7773):

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.

It's hard to tell what versions as they aren't stated by the PR that fixes this on the GitHub is before the latest release on PyPi for 2.16.2 and the RHSA says 2.15.8 is bumped.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2024-01-07 01:16:52 UTC
Seems like 2.14.12, 2.15.7, and 2.16.1 have the fix:

~/git/ansible $ git log --oneline --all -S'CVE-2023-5764'
b8877d2d8b (tag: v2.14.12rc1) New release v2.14.12rc1 (#82303)
a1d85b9554 (tag: v2.15.7rc1) New release v2.15.7rc1 (#82302)
5007068bfe (tag: v2.16.1rc1) New release v2.16.1rc1 (#82301)
7239d2d371 Ensure that unsafe is more difficult to lose [stable-2.14] (#82295)
fea130480d Ensure that unsafe is more difficult to lose [stable-2.15] (#82294)
270b39f6ff Ensure that unsafe is more difficult to lose [stable-2.16] (#82293)
$ git log --oneline --all -S'CVE-2023-5764' | cut -d' ' -f1 | xargs -n1 git --no-pager tag --contains
v2.14.12
v2.14.12rc1
v2.14.13
v2.15.7
v2.15.7rc1
v2.15.8
v2.16.1
v2.16.1rc1
v2.16.2
v2.14.12
v2.14.12rc1
v2.14.13
v2.15.7
v2.15.7rc1
v2.15.8
v2.16.1
v2.16.1rc1
v2.16.2

Maintainers, please stabilize.