You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mitogen.utils.cast() can silently fail to cast string subtypes (e.g. AnsibleUnsafeText) #1046
mitogen.utils.cast(v) is intended to recursively replace subtypes of builtins in v. In versions of Ansible that have addressed CVE-2023-5764 it silently fails to do so for ansible.utils.unsafe_proxy.AnsibleUnsafeText() et al. The cause is that cast() calls str() on the value, and in these versions of Ansible AnsibleUnsafeText() overrides __str__() to return itself.
This was one of the root causes of #221, but this was obscured by the lack of an immediate warning or error.
Activity
mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures
ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures
mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures
ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures
ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
ansible_mitogen: cast ansible_python_interpreter value
ansible_mitogen: cast ansible_python_interpreter value