CVE-2019-25211

NameCVE-2019-25211
DescriptionparseWildcardRules 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1075962

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-github-gin-contrib-cors (PTS)bullseye1.3.1-1vulnerable
sid, trixie, bookworm1.4.0-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-gin-contrib-corssource(unstable)(unfixed)1075962

Notes

[bookworm] - golang-github-gin-contrib-cors <no-dsa> (Minor issue)
[bullseye] - golang-github-gin-contrib-cors <no-dsa> (Minor issue)
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)

Search for package or bug name: Reporting problems