CVE-2021-3281
mediumpriority · track · 34EPSS 0.076 · 95 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-23
In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedansible-tower-38/ansible-runner-rhel7@sha256:6208e426e90515de013194566833baad60f41df1052f25f45e55e8c0341ec62a_amd64 as a component of Red Hat Ansible Tower 3.8 for RHEL 7redhat_csaf
For information on upgrading Ansible Tower, reference the Ansible Tower Upgrade and Migration Guide: https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/index.html
https://access.redhat.com/errata/RHSA-2021:0780 - Fixedansible-tower-38/ansible-tower-rhel7@sha256:75e3ded9918cd3485fdd0e5b78006b08d9453eec304dfc5c635e5638bb77b0de_amd64 as a component of Red Hat Ansible Tower 3.8 for RHEL 7redhat_csaf
For information on upgrading Ansible Tower, reference the Ansible Tower Upgrade and Migration Guide: https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/index.html
https://access.redhat.com/errata/RHSA-2021:0780 - Fixedautomation-hub-0:4.2.2-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedautomation-hub-0:4.2.2-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedautomation-hub-0:4.2.2-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedautomation-hub-0:4.2.2-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-0:3.3.0-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-0:3.3.0-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-allowlist-0:1.0.3-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-allowlist-0:1.0.3-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-importer-0:0.2.15-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-importer-0:0.2.15-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-ng-0:4.2.2-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-ng-0:4.2.2-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-pulp-ansible-1:0.5.6-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-pulp-ansible-1:0.5.6-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-0:3.3.0-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-0:3.3.0-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-allowlist-0:1.0.3-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-allowlist-0:1.0.3-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-django-0:2.2.18-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-django-0:2.2.18-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-importer-0:0.2.15-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-importer-0:0.2.15-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-ng-0:4.2.2-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-ng-0:4.2.2-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-pulp-ansible-1:0.5.6-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-pulp-ansible-1:0.5.6-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-django20-0:2.0.13-16.el8ost.1.src as a component of Red Hat OpenStack Platform 16.2redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:3490 - Fixedpython3-django20-0:2.0.13-16.el8ost.1.noarch as a component of Red Hat OpenStack Platform 16.2redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:3490 - Fixedpython-django20-0:2.0.13-16.el8ost.1.src as a component of Red Hat OpenStack Platform 16.1redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:5070 - Fixedpython-django20-bash-completion-0:2.0.13-16.el8ost.1.noarch as a component of Red Hat OpenStack Platform 16.1redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:5070 - Fixedpython3-django20-0:2.0.13-16.el8ost.1.noarch as a component of Red Hat OpenStack Platform 16.1redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:5070
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- lwzSoviet/CVE-2021-3281lwzSoviet/CVE-2021-3281PoC · poc_in_github
affected products (63)
Products and version ranges known to be affected.
advisories (8)
Vendor and ecosystem advisories describing this.
- RHSA-2021:0780Red Hat Security Advisory: Red Hat Ansible Tower 3.8.2-1 - Container security and bug fix update2021-03-09csaf · redhat_csafUS
Red Hat Ansible Tower 3.8.2-1 - Container Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
- RHSA-2021:0781Red Hat Security Advisory: Red Hat Ansible Automation Platform 1.2.2 security and bug fix update2021-03-09csaf · redhat_csafUS
An update is now available for Red Hat Ansible Automation Platform 1.2.2. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
- RHSA-2021:3490Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-django20) security update2021-09-15csaf · redhat_csafUS
An update for python-django20 is now available for Red Hat OpenStack Platform 16.2 (Train). Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
- RHSA-2021:5070Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (python-django20) security update2021-12-09csaf · redhat_csafUS
An update for python-django20 is now available for Red Hat OpenStack Platform 16.1 (Train). Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
- WID-SEC-W-2022-1352Ansible Tower: Mehrere SchwachstellenDeutsch2021-03-09csaf · cert_bundDE
Ein lokaler oder entfernter Angreifer kann mehrere Schwachstellen in Ansible Tower ausnutzen, um Informationen offenzulegen oder seine Privilegien zu erweitern.
- GHSA-fvgf-6h6h-3322Django Directory Traversal via archive.extract2021-03-18ghsa · osvUS
In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.
- BIT-django-2021-32812024-03-06vendor · osvUS
In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.
- PYSEC-2021-92021-02-02vendor · osvUS
In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (29)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2021-3281cnnvd
- https://docs.djangoproject.com/en/3.1/releases/security/cnnvd
- https://groups.google.com/forum/#!forum/django-announcecnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-3281cnnvd
- https://packetstormsecurity.com/files/161222/Ubuntu-Security-Notice-USN-4715-1.htmlcnnvd
- https://packetstormsecurity.com/files/161242/Ubuntu-Security-Notice-USN-4715-2.htmlcnnvd
- https://packetstormsecurity.com/files/161728/Red-Hat-Security-Advisory-2021-0780-01.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan