Gonic Gin-Gonic CORS Middleware up to 1.5.x cross-domain policy
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.1 | $0-$5k | 0.00 |
Summary
A vulnerability was found in Gonic Gin-Gonic CORS Middleware up to 1.5.x. It has been classified as problematic. Affected by this vulnerability is an unknown functionality. This manipulation causes cross-domain policy. This vulnerability is registered as CVE-2019-25211. Remote exploitation of the attack is possible. No exploit is available. Upgrading the affected component is recommended.
Details
A vulnerability has been found in Gonic Gin-Gonic CORS Middleware up to 1.5.x and classified as problematic. Affected by this vulnerability is an unknown code block. The manipulation with an unknown input leads to a cross-domain policy vulnerability. The CWE definition for the vulnerability is CWE-942. The product uses a cross-domain policy file that includes domains that should not be trusted. As an impact it is known to affect integrity. The summary by CVE is:
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.
It is possible to read the advisory at github.com. This vulnerability is known as CVE-2019-25211 since 06/28/2024. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. It demands that the victim is doing some kind of user interaction. The technical details are unknown and an exploit is not publicly available.
The vulnerability scanner Nessus provides a plugin with the ID 258092 (Debian dla-4285 : golang-github-gin-contrib-cors-dev - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 1.6.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 27b723a473efd80d5a498fa9f5933c80204c850d is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (258092) and EUVD (EUVD-2024-1974). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Type
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.3VulDB Meta Temp Score: 4.1
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Cross-domain policyCWE: CWE-942 / CWE-346 / CWE-345
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 258092
Nessus Name: Debian dla-4285 : golang-github-gin-contrib-cors-dev - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Gin-Gonic CORS Middleware 1.6.0
Patch: 27b723a473efd80d5a498fa9f5933c80204c850d
Timeline
06/28/2024 🔍06/29/2024 🔍
06/29/2024 🔍
08/29/2025 🔍
Sources
Advisory: github.comStatus: Confirmed
CVE: CVE-2019-25211 (🔍)
GCVE (CVE): GCVE-0-2019-25211
GCVE (VulDB): GCVE-100-269995
EUVD: 🔍
Entry
Created: 06/29/2024 04:50Updated: 08/29/2025 07:41
Changes: 06/29/2024 04:50 (56), 07/01/2024 23:41 (1), 03/21/2025 22:21 (4), 06/08/2025 21:12 (1), 08/29/2025 07:41 (2)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.