Skip to content

chore(deps): use CVE-2023-40267 alias for the audit check#419

Merged
behnazh-w merged 1 commit into
stagingfrom
add-CVE-2023-40267-alias
Aug 17, 2023
Merged

chore(deps): use CVE-2023-40267 alias for the audit check#419
behnazh-w merged 1 commit into
stagingfrom
add-CVE-2023-40267-alias

Conversation

@behnazh-w

@behnazh-w behnazh-w commented Aug 17, 2023

Copy link
Copy Markdown
Member

Looks like pip-audit is not recognizing PYSEC-2023-137 as an alias for GHSA-pr76-5cm5-w9cj. Switching to CVE-2023-40267 ID instead which is recognized by pip-audit.

Missing alias for GHSA-pr76-5cm5-w9cj in PYSEC-2023-137: pypa/advisory-database#142
GitHub Advisory: GHSA-pr76-5cm5-w9cj
PYSEC Advisory: https://github.com/pypa/advisory-database/blob/a3bd5be966a999b065ac798d13795760c2e13d43/vulns/gitpython/PYSEC-2023-137.yaml

Note: even though Macaron uses PyDriller and GitPython, it is not vulnerable to this CVE because it does not set the allow_unsafe_options argument to True and sanitizes the repository paths before cloning.

Looks like `pip-audit` is not recognizing `PYSEC-2023-137` as an alias
for `GHSA-pr76-5cm5-w9cj`. Switching to `CVE-2023-40267` ID instead to avoid
duplicate errors bu `pip-audit`.

GitHub Advisory: https://osv.dev/vulnerability/GHSA-pr76-5cm5-w9cj
PYSEC Advisory: https://github.com/pypa/advisory-database/blob/a3bd5be966a999b065ac798d13795760c2e13d43/vulns/gitpython/PYSEC-2023-137.yaml

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w requested a review from tromai as a code owner August 17, 2023 10:20
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 17, 2023
@behnazh-w behnazh-w merged commit 377e079 into staging Aug 17, 2023
@tromai tromai deleted the add-CVE-2023-40267-alias branch August 17, 2023 23:57
art1f1c3R pushed a commit that referenced this pull request Nov 29, 2024
Looks like `pip-audit` is not recognizing `PYSEC-2023-137` as an alias
for `GHSA-pr76-5cm5-w9cj`. Switching to `CVE-2023-40267` ID instead to avoid
duplicate errors by `pip-audit`.

Missing alias for `GHSA-pr76-5cm5-w9cj` in `PYSEC-2023-137`: pypa/advisory-database#142
GitHub Advisory: https://osv.dev/vulnerability/GHSA-pr76-5cm5-w9cj
PYSEC Advisory: https://github.com/pypa/advisory-database/blob/a3bd5be966a999b065ac798d13795760c2e13d43/vulns/gitpython/PYSEC-2023-137.yaml


Note: even though Macaron uses PyDriller and GitPython, it is not vulnerable to this CVE because
-  it does not use unsafe options: https://github.com/oracle/macaron/blob/d6f1cc60a5eb1c26165f530afc73ea735e800e38/src/macaron/slsa_analyzer/git_url.py#L342-L349
-  and sanitizes the repository paths before cloning: https://github.com/oracle/macaron/blob/add-CVE-2023-40267-alias/src/macaron/slsa_analyzer/git_url.py#L551-L677

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants