CVE-2021-4112
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA flaw was found in ansible-tower where the default installation is vulnerable to job isolation escape. This flaw allows an attacker to elevate the privilege from a low privileged user to an AWX user from outside the isolated environment.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceA job isolation escape vulnerability in Ansible Tower/AWX default installations allows a low-privileged user to escape the isolated job execution environment and escalate privileges to the AWX system user, enabling unauthorized access to host resources outside the intended isolation boundary.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 2.0all versions= 3.0= 2.0= 2.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify AWX or Ansible Tower installationCheck if the AWX or Ansible Tower web service is running. Look for the presence of the awx or ansible-tower package, or check the installed RPM packages using 'rpm -qa | grep -i awx' or 'rpm -qa | grep -i ansible-tower'.Affected if The product is installed and the version matches one of the affected versions: Ansible Tower 3.0, Ansible Automation Platform 2.0, or Ansible Automation Platform 2.1.
-
Determine the installed versionRetrieve the exact version number of the installed AWX or Ansible Tower. For RPM-based systems, run 'rpm -qa | grep -i awx' or check the tower-cli version with 'awx --version' or 'ansible-tower --version' if available.Affected if The installed version is 3.0 (Tower), 2.0 (Automation Platform), or 2.1 (Automation Platform).
-
Inspect job isolation configurationExamine the Tower or AWX configuration files and settings for job isolation. Look for the 'job_isolation_mount_path' setting in the Tower settings UI under 'Jobs' section, or check the 'settings.py' configuration file. Also verify if 'container_attachable_mounts' and 'ansible_service_type' are explicitly configured.Affected if The job isolation settings are at their default values, undefined, or not explicitly configured, meaning the default isolation boundary is in effect.
-
Check if custom isolation mount path is definedAccess the Ansible Tower or AWX web UI, navigate to Settings > Jobs > Job Execution, and verify the 'Job Isolation Mount Path' setting. Alternatively, query the API endpoint '/api/v2/settings/jobs/' and look for the 'JOB_ISOLATION_MOUNT_PATH' parameter.Affected if The 'job_isolation_mount_path' is not set, set to an insecure path, or left at default, allowing potential escape from the isolated environment.
-
Verify container mount configurationCheck the '/etc/tower/conf.d/' directory for custom settings files, or query the API '/api/v2/settings/all/' to review 'CONTAINER_ATTACHABLE_MOUNTS' configuration. Ensure no sensitive host paths are exposed to isolated job containers.Affected if The 'container_attachable_mounts' setting either allows access to sensitive host directories or is not explicitly restricted, enabling a low-privileged job user to access host resources outside the isolation boundary.
A user is affected if they have Ansible Tower 3.0 or Ansible Automation Platform 2.0/2.1 installed with default or improperly configured job isolation settings, allowing a low-privileged job to escape the isolated environment and access host resources.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataConfigure and enforce proper job isolation settings including container_attachable_mounts, ansible_service_type, and job_isolation_mount_path to prevent escape from the isolated environment.
- Consultation4.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,544.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-4112 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-4112 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data