| Name | CVE-2019-25211 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4285-1 |
| Debian Bugs | 1075962 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| golang-github-gin-contrib-cors (PTS) | bullseye | 1.3.1-1 | vulnerable |
| bullseye (security) | 1.3.1-1+deb11u1 | fixed | |
| bookworm | 1.4.0-1+deb12u1 | fixed | |
| trixie | 1.4.0-1+deb13u1 | fixed | |
| forky, sid | 1.7.6-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| golang-github-gin-contrib-cors | source | bullseye | 1.3.1-1+deb11u1 | DLA-4285-1 | ||
| golang-github-gin-contrib-cors | source | bookworm | 1.4.0-1+deb12u1 | |||
| golang-github-gin-contrib-cors | source | trixie | 1.4.0-1+deb13u1 | |||
| golang-github-gin-contrib-cors | source | (unstable) | 1.7.6-1 | 1075962 |
https://github.com/gin-contrib/cors/pull/57
https://github.com/gin-contrib/cors/pull/106
https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d (v1.6.0)