GHSA-q2jf-h9jm-m7p4

Suggest an improvement
Source
https://github.com/advisories/GHSA-q2jf-h9jm-m7p4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-q2jf-h9jm-m7p4/GHSA-q2jf-h9jm-m7p4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q2jf-h9jm-m7p4
Aliases
Published
2023-02-01T21:30:23Z
Modified
2024-09-20T15:47:43.845538Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Django contains Uncontrolled Resource Consumption via cached header
Details

In Django 3.2 before 3.2.17, 4.0 before 4.0.9, and 4.1 before 4.1.6, the parsed values of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if the raw value of Accept-Language headers is very large.

Database specific
{
    "nvd_published_at": "2023-02-01T19:15:00Z",
    "cwe_ids": [
        "CWE-400",
        "CWE-770"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-02-03T21:07:17Z"
}
References

Affected packages

PyPI / django

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.2a1
Fixed
3.2.17

Affected versions

3.*

3.2a1
3.2b1
3.2rc1
3.2
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.2.6
3.2.7
3.2.8
3.2.9
3.2.10
3.2.11
3.2.12
3.2.13
3.2.14
3.2.15
3.2.16

PyPI / django

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0a1
Fixed
4.0.9

Affected versions

4.*

4.0a1
4.0b1
4.0rc1
4.0
4.0.1
4.0.2
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8

PyPI / django

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.1a1
Fixed
4.1.6

Affected versions

4.*

4.1a1
4.1b1
4.1rc1
4.1
4.1.1
4.1.2
4.1.3
4.1.4
4.1.5