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

ProductAffected versionsFixed in
github.com/gin-gonic/ginGov < 1.6.01.6.0
github.com/gin-contrib/corsGov < 1.6.01.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.