CVE-2019-25211 Gin mishandles a wildcard at the end of an origin string
CriticalCVSS 9.1
EPSS 0.43%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gin-gonic github.com/gin-gonic/gin(Go) | < 1.6.0 | 1.6.0 |
| gin-contrib github.com/gin-contrib/cors(Go) | < 1.6.0 | 1.6.0 |
| debian/golang-github-gin-contrib-cors(Debian:12) | < 1.4.0-1+deb12u1 | 1.4.0-1+deb12u1 |
| debian/golang-github-gin-contrib-cors(Debian:12) | = 1.4.0-1 | No fix listed |
| debian/golang-github-gin-contrib-cors(Debian:13) | < 1.4.0-1+deb13u1 | 1.4.0-1+deb13u1 |
| debian/golang-github-gin-contrib-cors(Debian:13) | = 1.4.0-1 | No fix listed |
| ubuntu/golang-github-gin-contrib-cors(Ubuntu:24.04) | < 1.4.0-1ubuntu0.1~esm1 | 1.4.0-1ubuntu0.1~esm1 |
| gin-contrib github.com/gin-contrib/cors | < 1.6.0 | 1.6.0 |
| ubuntu/golang-github-gin-contrib-cors(Ubuntu:22.04) | < 1.3.1-1+deb11u1build0.22.04.1 | 1.3.1-1+deb11u1build0.22.04.1 |
References
- Ubuntu CVE tracker vendor-advisory
- USN-8983-1 vendor-advisory
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com
- github.com
- github.com product
- lists.debian.org
- github.com vendor-advisory
- Debian Security Tracker CVE-2019-25211 vendor-advisory
- bugs.debian.org issue-tracking