CVE-2022-27225 in Gradle Enterprise
Gradle Enterprise before 2021.4.3 relies on cleartext data transmission in some situations. It uses Keycloak for identity management services. During the sign-in process, Keycloak sets browser cookies that effectively provide remember-me functionality. For backwards compatibility with older Safari versions, Keycloak...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gradle | Enterprise | ≥ 2020.1, < 2021.4.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Gradle Enterprise before 2021.4.3 relies on cleartext data transmission in some situations. It uses Keycloak for identity management services. During the sign-in process, Keycloak sets browser cookies that effectively provide remember-me functionality. For backwards compatibility with older Safari versions, Keycloak sets a duplicate of the cookie without the Secure attribute, which allows the cookie to be sent when accessing the location that cookie is set for via HTTP. This creates the potential for an attacker (with the ability to impersonate the Gradle Enterprise host) to capture the login session of a user by having them click an http:// link to the server, despite the real server requiring HTTPS.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-27225 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-069918-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Published | 2022-03-16 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-311: CWE-311
Related attack patterns (CAPEC)
CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-311
CAPEC-37 Retrieve Embedded Sensitive Data via CWE-311
CAPEC-65 Sniff Application Code via CWE-311
CAPEC-158 Sniffing Network Traffic via CWE-311
CAPEC-204 Lifting Sensitive Data Embedded in Cache via CWE-311
Show all 14
CAPEC-383 Harvesting Information via API Event Monitoring via CWE-311
CAPEC-385 Transaction or Event Tampering via Application API Manipulation via CWE-311
CAPEC-387 Navigation Remapping To Propagate Malicious Content via CWE-311
CAPEC-388 Application API Button Hijacking via CWE-311
CAPEC-477 Signature Spoofing by Mixing Signed and Unsigned Content via CWE-311
CAPEC-609 Cellular Traffic Intercept via CWE-311
CAPEC-157 Sniffing Attacks via CWE-311
CAPEC-384 Application API Message Manipulation via Man-in-the-Middle via CWE-311
CAPEC-386 Application API Navigation Remapping via CWE-311
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Gradle Enterprise versions before 2021.4.3 are vulnerable to cleartext data transmission during the sign-in process due to Keycloak setting cookies without the Secure attribute, potentially exposing sensitive information.
The vulnerability arises from Keycloak setting a duplicate cookie without the Secure attribute during the sign-in process. This allows the cookie to be transmitted over unencrypted channels, potentially leading to session hijacking or data interception.
Questions
What is CVE-2022-27225?
Gradle Enterprise versions before 2021.4.3 are vulnerable to cleartext data transmission during the sign-in process due to Keycloak setting cookies without the Secure attribute, potentially exposing sensitive information.
What is the CVSS score for CVE-2022-27225?
CVE-2022-27225 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N. EPSS: 0.6%.
Is CVE-2022-27225 actively exploited?
No confirmed active exploitation of CVE-2022-27225 as of 2026-09-25.
How do I remediate CVE-2022-27225?
Priority: HIGH. Advisory: https://security.gradle.com/advisory/2022-03 PSIRT: [email protected]
What systems are affected by CVE-2022-27225?
CVE-2022-27225 affects Gradle Enterprise.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gradle","product":"Enterprise","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.