CVE-2019-25211
Critical
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.
SeverityCritical
CVSS9.1
Exploit probability—
ProductGithub.com/gin-gonic/gin
PublishedJun 29, 2024
First seenJun 29, 2024
Weakness typeCWE-346CWE-346
How to fix
Update
- github.com/gin-gonic/gin1.6.0 or later
- github.com/gin-contrib/cors1.6.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/gin-gonic/ginGo | v < 1.6.0 | 1.6.0 |
| github.com/gin-contrib/corsGo | v < 1.6.0 | 1.6.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.