Vulnerabilities in pkg:pypi/ansible-jailexec
PACKAGECVE-2026-55074 is a HIGH jail escape vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Ansible jailexec libraries in the PyPI ecosystem. The issue involves jail escape via symlink following in put_file (host-side root mv). Remediation is available by upgrading affected packages to version 2.0.0.
pkg:pypi/ansible-jailexec
Vulnerability advisories affecting package pkg:pypi/ansible-jailexec. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cxgv-hp74-jj7r | CVE-2026-55074 | HIGH | Ansible FreeBSD Jail Connection Plugin: Jail escape via symlink following in put_file (host-side root mv) |
CVE-2026-55074 at a Glance
How to Fix CVE-2026-55074
To remediate this vulnerability, upgrade all affected Ansible jailexec dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ansible-jailexec>=2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ansible-jailexec
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-55074, inspect your installed packages using pip:
pip show ansible-jailexec
Analyze the terminal output to locate any version of Ansible jailexec in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: The pip show ansible-jailexec command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Ansible jailexec, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-55074 Affected Ansible jailexec Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ansible-jailexec
|
PyPI |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2026-55074?
Which Ansible jailexec versions are affected?
What version fixes CVE-2026-55074?
Is ansible-jailexec affected?
What CWE is associated with CVE-2026-55074?
How can I check PyPI dependencies for CVE-2026-55074?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cxgv-hp74-jj7r",
"modified" : "2026-08-13T15:58:53Z",
"published" : "2026-08-12T23:21:06Z",
"aliases" : [ "CVE-2026-55074" ],
"summary" : "Ansible FreeBSD Jail Connection Plugin: Jail escape via symlink following in put_file (host-side root mv)",
"details" : "Through version 1.3.0, the jailexec connection plugin's put_file resolved a transfer's destination to a path on the jail host (<jail filesystem root> + <destination>) and ran mkdir -p and mv there as root on the host. Those commands follow symbolic links, and the path was operated on outside the jail, so a symlink existing inside the jail was followed by the host-side, root-privileged mv.\n\nA party controlling content inside a managed jail (the jail's root, or any process able to create a symlink in a directory an Ansible task later writes to) can therefore cause an arbitrary root-owned write on the host, outside the jail — a full jail escape. Arbitrary root-owned host writes are readily escalated to host compromise (e.g. cron, rc.d, authorized_keys).\n\nPreconditions: the operator runs a copy/template/fetch-style task (anything using put_file) against the jail, and the attacker can place a symlink inside the jail at or above the task's destination before the transfer runs.\n\nPatches: Fixed in 2.0.0. File transfers now run inside the jail via jexec (mkdir -p <dir> && cat > <dest> for put_file; cat < <src> for fetch_file), so every path resolves within the jail's chroot. An in-jail symlink can at most redirect within the same jail and can no longer reach the host.\n\nWorkarounds: None in affected versions; upgrade to 2.0.0.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-jailexec"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/chofstede/ansible_jailexec/security/advisories/GHSA-cxgv-hp74-jj7r"
}, {
"type" : "WEB",
"url" : "https://github.com/chofstede/ansible_jailexec/commit/6e80eecb2db7aebd1258fded6ae5c3aba1dd4123"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chofstede/ansible_jailexec"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-12T23:21:06Z",
"nvd_published_at" : null
}
}