Описание
git-urls 1.0.0 allows ReDOS (Regular Expression Denial of Service) in urls.go.
A flaw was found in the git-urls package. This issue occurs when a long input is provided inside the directory path of the git url. This could lead to loading delays or a regular expression denial of service.
Отчет
This vulnerability in the git-urls package requires an attacker to provide malicious input to the git URL parsing function. In Red Hat OpenShift GitOps deployments, git repository URLs are configured exclusively by platform administrators through Application and ApplicationSet custom resources. End users do not have the ability to inject arbitrary git URLs through any exposed API. The attack surface is limited to trusted administrators who already have elevated cluster privileges.
Меры по смягчению последствий
To reduce exposure to this vulnerability in OpenShift GitOps:
- Limit Application and ApplicationSet creation to platform administrators using RBAC.
- Configure ArgoCD AppProjects with explicit sourceRepos allowlists. Avoid wildcard (*) sources.
- Use ApplicationSet resource policies to prevent user-provided git URLs from being templated into Applications.
- In order to Audit which Git repositories are used by GitOps and
Validate no untrusted repos are configured use:
oc get applications -A -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.source.repoURL}{"\n"}{end}'
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| OpenShift Serverless | openshift-serverless-1/client-kn-rhel8 | Affected | ||
| OpenShift Serverless | openshift-serverless-clients | Affected | ||
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Fix deferred | ||
| Red Hat OpenShift GitOps | openshift-gitops-1/argo-rollouts-rhel8 | Fix deferred |
Показывать по
Дополнительная информация
EPSS
4.3 Medium
CVSS3
Связанные уязвимости
git-urls 1.0.0 allows ReDOS (Regular Expression Denial of Service) in urls.go.
Inefficient Regular Expression Complexity in git-urls
EPSS
4.3 Medium
CVSS3