Gonic Gin-Gonic CORS Middleware up to 1.5.x cross-domain policy

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.1$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.3
VulDB Meta Temp Score: 4.1

VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Cross-domain policy
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 258092
Nessus Name: Debian dla-4285 : golang-github-gin-contrib-cors-dev - security update

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Gin-Gonic CORS Middleware 1.6.0
Patch: 27b723a473efd80d5a498fa9f5933c80204c850d

Timelineinfo

06/28/2024 🔍
06/29/2024 +1 days 🔍
06/29/2024 +0 days 🔍
08/29/2025 +426 days 🔍

Sourcesinfo

Advisory: github.com
Status: Confirmed

CVE: CVE-2019-25211 (🔍)
GCVE (CVE): GCVE-0-2019-25211
GCVE (VulDB): GCVE-100-269995
EUVD: 🔍

Entryinfo

Created: 06/29/2024 04:50
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!