UBUNTU-CVE-2024-21520

Source
https://ubuntu.com/security/CVE-2024-21520
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21520.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-21520
Related
Published
2024-06-26T05:15:00Z
Modified
2025-07-03T05:07:21Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 2.1 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
[none]
Details

Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the breaklongheaders template filter due to improper input sanitization before splitting and joining with <br> tags.

References

Affected packages

Ubuntu:Pro:16.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.3.2-2?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.4.3-2

3.*

3.3.1-1
3.3.2-1
3.3.2-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.7.7-1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.4.0-2
3.7.7-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.10.2-1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.9.0-2
3.10.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.12.4-2.1ubuntu1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.12.1-1
3.12.4-1
3.12.4-2
3.12.4-2ubuntu1
3.12.4-2.1ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.15.2-1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.15.2-1

Affected versions

3.*

3.14.0-2
3.15.1-1
3.15.1-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.15.2-1",
            "binary_name": "python-djangorestframework-doc"
        },
        {
            "binary_version": "3.15.2-1",
            "binary_name": "python3-djangorestframework"
        }
    ],
    "ubuntu_priority": "medium",
    "availability": "No subscription required"
}

Ubuntu:24.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.14.0-2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.14.0-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.15.2-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.15.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.15.2-1",
            "binary_name": "python-djangorestframework-doc"
        },
        {
            "binary_version": "3.15.2-1",
            "binary_name": "python3-djangorestframework"
        }
    ],
    "ubuntu_priority": "medium",
    "availability": "No subscription required"
}