Ansible jailexec: Ansible FreeBSD Jail Connection Plugin: Jail escape via symlink following in put_file (host-side root mv) (CVE-2026-55074)
Ansible jailexec connection plugin versions prior to 2.0.0 contain a vulnerability in the put_file operation that allows a jail escape via symlink following. The plugin runs mkdir and mv commands as root on the host, following symbolic links that can redirect writes outside the jail. An attacker with the ability to create symlinks inside the jail can cause arbitrary root-owned writes on the host, potentially leading to full host compromise. This issue is fixed in version 2.0.0 by performing file operations inside the jail environment, preventing symlink traversal to the host.
AI Analysis
Technical Summary
The Ansible jailexec FreeBSD Jail connection plugin's put_file method, in versions before 2.0.0, resolves destination paths by concatenating the jail filesystem root with the destination path and executes mkdir -p and mv commands as root on the host. These commands follow symbolic links, allowing a symlink placed inside the jail to redirect the host-side root mv operation outside the jail. This enables an attacker controlling content inside the jail to write arbitrary files as root on the host, effectively escaping the jail confinement. The vulnerability requires the operator to run a copy/template/fetch task using put_file against the jail and the attacker to pre-place a symlink at or above the destination path inside the jail. The issue is fixed in version 2.0.0 by running file transfers inside the jail via jexec, ensuring all path resolutions remain within the jail's chroot, thus preventing host escape via symlinks.
Potential Impact
An attacker with the ability to create symlinks inside a managed FreeBSD jail can leverage this vulnerability to cause arbitrary root-owned file writes on the host system outside the jail. This can lead to full host compromise by modifying critical files such as cron jobs, startup scripts, or authorized SSH keys. The vulnerability effectively allows a jail escape, breaking the isolation guarantees of the jail environment.
Mitigation Recommendations
A patch is available in Ansible jailexec version 2.0.0, which fixes the vulnerability by performing file transfers inside the jail environment, preventing symlink traversal to the host. Users should upgrade to version 2.0.0 or later. There are no workarounds for affected versions prior to 2.0.0.
Ansible jailexec: Ansible FreeBSD Jail Connection Plugin: Jail escape via symlink following in put_file (host-side root mv) (CVE-2026-55074)
Description
Ansible jailexec connection plugin versions prior to 2.0.0 contain a vulnerability in the put_file operation that allows a jail escape via symlink following. The plugin runs mkdir and mv commands as root on the host, following symbolic links that can redirect writes outside the jail. An attacker with the ability to create symlinks inside the jail can cause arbitrary root-owned writes on the host, potentially leading to full host compromise. This issue is fixed in version 2.0.0 by performing file operations inside the jail environment, preventing symlink traversal to the host.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Ansible jailexec FreeBSD Jail connection plugin's put_file method, in versions before 2.0.0, resolves destination paths by concatenating the jail filesystem root with the destination path and executes mkdir -p and mv commands as root on the host. These commands follow symbolic links, allowing a symlink placed inside the jail to redirect the host-side root mv operation outside the jail. This enables an attacker controlling content inside the jail to write arbitrary files as root on the host, effectively escaping the jail confinement. The vulnerability requires the operator to run a copy/template/fetch task using put_file against the jail and the attacker to pre-place a symlink at or above the destination path inside the jail. The issue is fixed in version 2.0.0 by running file transfers inside the jail via jexec, ensuring all path resolutions remain within the jail's chroot, thus preventing host escape via symlinks.
Potential Impact
An attacker with the ability to create symlinks inside a managed FreeBSD jail can leverage this vulnerability to cause arbitrary root-owned file writes on the host system outside the jail. This can lead to full host compromise by modifying critical files such as cron jobs, startup scripts, or authorized SSH keys. The vulnerability effectively allows a jail escape, breaking the isolation guarantees of the jail environment.
Mitigation Recommendations
A patch is available in Ansible jailexec version 2.0.0, which fixes the vulnerability by performing file transfers inside the jail environment, preventing symlink traversal to the host. Users should upgrade to version 2.0.0 or later. There are no workarounds for affected versions prior to 2.0.0.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cxgv-hp74-jj7r
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55074"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a7e034ebf8831d5398f6be5
Added to database: 08/13/2026, 17:47:58 UTC
Last enriched: 08/13/2026, 17:52:13 UTC
Last updated: 08/13/2026, 22:35:33 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.