CVE-2019-25211

github.com/gin-contrib/cors: Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors

Published Jun 28, 2024 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4285-1 golang-github-gin-contrib-cors security
EUVD EUVD EUVD-2024-1974 parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.
Github GHSA Github GHSA GHSA-869c-j7wc-8jqv Gin mishandles a wildcard at the end of an origin string
Ubuntu USN Ubuntu USN USN-8983-1 Gin CORS middleware vulnerability
History
Type Values Removed Values Added
First Time appeared Gin-contrib
Gin-contrib cors
CPEs cpe:2.3:a:gin-contrib:cors:*:*:*:*:*:*:*:*
Vendors & Products Gin-contrib
Gin-contrib cors
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat
Redhat rhmt
CPEs cpe:/a:redhat:rhmt:1.8::el8
Vendors & Products Redhat
Redhat rhmt
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 3, 2025, 6:07 PM
Reserved
Jun 28, 2024, 12:00 AM
Status
Deferred
Published
Jun 29, 2024, 12:15 AM
Modified
Jun 17, 2026, 2:31 AM
Severity
Moderate
Public date
Jul 2, 2024, 12:00 AM