GHSA-jrm6-h9cq-8gqw

Suggest an improvement
Source
https://github.com/advisories/GHSA-jrm6-h9cq-8gqw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-jrm6-h9cq-8gqw/GHSA-jrm6-h9cq-8gqw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-jrm6-h9cq-8gqw
Aliases
Published
2023-06-30T22:17:52Z
Modified
2023-11-06T05:23:29.986403Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
PyPDF2 quadratic runtime with malformed PDF missing xref marker
Details

Impact

An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage.

Patches

https://github.com/py-pdf/pypdf/pull/808

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

References

Database specific
{
    "nvd_published_at": "2023-06-30T19:15:09Z",
    "cwe_ids": [
        "CWE-407"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-30T22:17:52Z"
}
References

Affected packages

PyPI / pypdf2

Package

Affected ranges

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

Affected versions

1.*

1.15
1.16
1.17
1.18
1.19
1.20
1.21
1.22
1.23
1.24
1.25
1.25.1
1.26.0
1.27.0
1.27.1
1.27.2
1.27.3
1.27.4
1.27.5
1.27.6
1.27.7
1.27.8

Ecosystem specific

{
    "affected_functions": [
        "PyPDF2.PdfFileReader.readNextEndLine"
    ]
}

Database specific

{
    "last_known_affected_version_range": "<= 1.27.8"
}