Alpine: Django: security update to 3.1.5-r0 (deprecated)

medium Tenable Self-Hosted Container Security Plugin ID 400272

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- 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. (CVE-2021-3281)

- The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before
3.8.8, from 3.9.0 and before 3.9.2 are vulnerable to Web Cache Poisoning via urllib.parse.parse_qsl and
urllib.parse.parse_qs by using a vector called parameter cloaking. When the attacker can separate query
parameters using a semicolon (;), they can cause a difference in the interpretation of the request between
the proxy (running with default configuration) and the server. This can result in malicious requests being
cached as completely safe ones, as the proxy would usually not see the semicolon as a separator, and
therefore would not include it in a cache key of an unkeyed parameter. (CVE-2021-23336)

See Also

https://git.alpinelinux.org/aports/commit/?id=9a736f51b79b197b396046351a9276c20e10a420

https://git.alpinelinux.org/aports/commit/?id=d9a421ad5f00aae7ffd1962dfca3bcfd618ea94a

Plugin Details

Severity: Medium

ID: 400272

Version: Revision 1.30

Type: Local

Published: 8/16/2023

Updated: 7/2/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.5

Percentile: 51.63

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2021-3281

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS Score Source: CVE-2021-23336

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/22/2021

Vulnerability Publication Date: 2/2/2021

Reference Information

CVE: CVE-2021-23336, CVE-2021-3281