Skip to content

x/vulndb: potential Go vuln in github.com/returntocorp/semgrep: CVE-2023-32758 #1779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GoVulnBot opened this issue May 15, 2023 · 2 comments
Assignees
Labels
excluded: NOT_GO_CODE This vulnerability does not refer to a Go module.

Comments

@GoVulnBot
Copy link

CVE-2023-32758 references github.com/returntocorp/semgrep, which may be a Go module.

Description:
giturlparse (aka git-url-parse) through 1.2.2, as used in Semgrep through 1.21.0, is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing untrusted URLs. This might be relevant if Semgrep is analyzing an untrusted package (for example, to check whether it accesses any Git repository at an http:// URL), and that package's author placed a ReDoS attack payload in a URL used by the package.

References:

Cross references:
No existing reports found with this module or alias.

See doc/triage.md for instructions on how to triage this report.

modules:
  - module: github.com/returntocorp/semgrep
    packages:
      - package: n/a
description: |
    giturlparse (aka git-url-parse) through 1.2.2, as used in Semgrep through 1.21.0, is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing untrusted URLs. This might be relevant if Semgrep is analyzing an untrusted package (for example, to check whether it accesses any Git repository at an http:// URL), and that package's author placed a ReDoS attack payload in a URL used by the package.
cves:
  - CVE-2023-32758
references:
  - web: https://github.com/coala/git-url-parse/blob/master/giturlparse/parser.py#L53
  - web: https://pypi.org/project/git-url-parse
  - fix: https://github.com/returntocorp/semgrep/pull/7611

@julieqiu julieqiu added the excluded: NOT_IMPORTABLE This vulnerability only exists in a binary and is not importable. label May 16, 2023
@julieqiu julieqiu self-assigned this May 16, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/495335 mentions this issue: data/excluded: batch add GO-2023-1775, GO-2023-1778, GO-2023-1774, GO-2023-1771, GO-2023-1769, GO-2023-1768, GO-2023-1779

@tatianab tatianab added excluded: NOT_GO_CODE This vulnerability does not refer to a Go module. and removed excluded: NOT_IMPORTABLE This vulnerability only exists in a binary and is not importable. labels Aug 20, 2024
@tatianab tatianab assigned tatianab and unassigned julieqiu Aug 20, 2024
@tatianab tatianab reopened this Aug 20, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/607819 mentions this issue: data/excluded: update 5 reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
excluded: NOT_GO_CODE This vulnerability does not refer to a Go module.
Projects
None yet
Development

No branches or pull requests

4 participants