parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | github.com/gin-gonic/gin (Go) | before 1.6.0 | 1.6.0 | Patch available | GHSA-869c-j7wc-8jqv |
| — | github.com/gin-contrib/cors (Go) | before 1.6.0 | 1.6.0 | Patch available | GHSA-869c-j7wc-8jqv |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- github.com/gin-gonic/gin (Go) Vendor— Affected before 1.6.0 Fixed in 1.6.0 Patch available GHSA-869c-j7wc-8jqv
- github.com/gin-contrib/cors (Go) Vendor— Affected before 1.6.0 Fixed in 1.6.0 Patch available GHSA-869c-j7wc-8jqv
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gin-contrib:cors:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:gin-contrib:cors:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
- Fix · GHSA-869c-j7wc-8jqv github.com/gin-gonic/gin (Go) Fixed in 1.6.0 Advisory →
- Fix · GHSA-869c-j7wc-8jqv github.com/gin-contrib/cors (Go) Fixed in 1.6.0 Advisory →
Red Hat 1 advisory
- RHSA-2024:7164 Released 2024-09-26 · Red Hat rating ImportantMigration Toolkit for Containers (MTC) 1.8.4 security and bug fix update
- 8Base-RHMTC-1.8 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-registry-rhel8, rhmtc/openshift-migration-ui-rhel8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Virtualization | Affected | No fix yet: Fix deferred |
| 8Base-RHMTC-1.8 | Fixed | RHSA-2024:7164 |
Not affected: 1 product
- 8Base-RHMTC-1.8
Timeline
- 2026-10-02 Threatist record created from CVE-2019-25211
- 2026-10-03 Alias added: GHSA-869c-j7wc-8jqv
References
Other 7
- https://github.com/gin-contrib/cors/pull/57
- https://github.com/gin-contrib/cors/pull/106
- https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0
- https://github.com/gin-contrib/cors/releases/tag/v1.6.0
- https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d
- https://github.com/gin-gonic/gin
- https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html
Sources
- CVE-2019-25211 · CVE Program
- CVE-2019-25211 · NVD
- FIRST EPSS
- GHSA-869c-j7wc-8jqv · GitHub Advisory Database · CC BY 4.0
- CVE-2019-25211 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences