Introduction
Ansible-core 2.22.1 has been published, a patch release following 2.22.0. This release is primarily a security and bugfix update: it does not introduce new features beyond a minor ansible-test container bump, but it does ship a fix for a CVE affecting ansible-galaxy collection install, so upgrading is recommended for anyone installing collections from untrusted sources.
Whats New
Security Fixes
- CVE-2026-130644 -
ansible-galaxy collection installnow validates the collection name before using it to build the installation path. Previously, an improperly validated collection name could be used to influence the path used during installation, which is a classic path-traversal style issue. Anyone installing collections from third-party or less-trusted Galaxy namespaces should upgrade.
Bugfixes
- password hashing - Corrected the size of the
crypt_datastructure passed tocrypt_r. The buffer was too small for the glibc definition of the structure, which could allow the library to write past the end of the buffer. This is a memory-safety fix in the password hashing code path used by modules and filters that hash passwords. - ansible-test - Fixed the
--includeoption for integration tests. The option previously accepted an argument but could be silently overridden by positional argument processing, leading to the wrong set of tests being included (issue #87839).
Minor Changes
- ansible-test - Updated the base and default test containers to their latest images.
Release Artifacts
| Artifact | Size | SHA256 |
|---|---|---|
| ansible_core-2.22.1-py3-none-any.whl | 2,478,965 bytes | 12faa3d9d61e4334bc8b38be6bb896196feafd240778c119f31e901329a79b59 |
| ansible_core-2.22.1.tar.gz | 3,484,760 bytes | 6e6d1a811f23e811b3279ffc18d856a885647402f60d342276885ba9d5e70475 |
For the complete list of changes, consult the versioned changelog and the porting guide for ansible-core 2.22.
How to Install and Verify
# Upgrade ansible-core via pip
pip install --upgrade ansible-core==2.22.1
# Verify the installed version
ansible --version
# Download and verify the sdist checksum manually, if needed
curl -LO https://files.pythonhosted.org/packages/a0/ab/738458619153c2bd32a8d1c6da68530c1092151a3016f0879ea34998644a/ansible_core-2.22.1.tar.gz
sha256sum ansible_core-2.22.1.tar.gz
# Expect: 6e6d1a811f23e811b3279ffc18d856a885647402f60d342276885ba9d5e70475
# Reinstall a collection to confirm the galaxy fix is in place
ansible-galaxy collection install community.general --force
Conclusion
Ansible-core 2.22.1 is a security and bugfix release. The ansible-galaxy path-validation fix (CVE-2026-130644) and the crypt_r buffer-size correction are the two items worth prioritizing in an upgrade, particularly on control nodes that install collections from external sources or that rely on password hashing modules.

Go deeper · Ebook by Luca Berton
Ansible for Security By Examples: get the ebook on Leanpub (opens in a new tab)
Automate security and compliance tasks with Ansible.
- Ebook
- Leanpub
- PDF & EPUB