CriticalCVE-2020-5410

    Directory Traversal with spring-cloud-config-server (CVE-2020-5410)

    Published In CISA KEV since Sources: Red Hat, CVE.org, OSV

    What is affected, what to do

    Spring Cloud Config, versions 2.2.x prior to 2.2.3, versions 2.1.x prior to 2.1.9, and older unsupported versions allow applications to serve arbitrary configuration files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead to a directory traversal attack.

    The vulnerability is being actively exploited; treat it as a priority. Update Spring Cloud Config to version 2.1.9, Spring Cloud Config to version 2.2.3. Immediate actions, mitigation and detection rules are in the runbook below.

    Affected
    • Spring Cloud Config lt 2.1..2.1.9
    • Spring Cloud Config lt 2.2..2.2.3
    Fixed in
    • Spring Cloud Config 2.1.9
    • Spring Cloud Config 2.2.3

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.5

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    7.5

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: Red Hat, CVE.org, OSV

    95.6 %

    EPSS score

    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.

    Source: FIRST EPSS, percentile 99.87

    Show all metrics
    Severity
    Critical
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    217.29 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    actively exploited
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.5 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.5
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    95.6 %
    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    99.87
    Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    Actively exploited
    Published
    In CISA KEV since

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    CISA assessment (SSVC)
    Exploitation: active · automatable · Technical impact: partial
    Source: CISA Vulnrichment, as of 7 February 2025
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-23

    Response and mitigation

    Why act now?

    Prioritisation rationale

    This CVE is on KEV because Spring Cloud Config Server is a central secret store in Spring microservice stacks and the flaw is exploitable unauthenticated over the network, so a single crafted request can leak database credentials, cloud keys or private keys. Exploitation likelihood sits among the highest of the entire KEV catalogue, working PoCs have been public for years and are routinely bundled into mass scanners. For NIS2-scoped organisations any internet-reachable Config Server is a P1 finding; internal instances remain P2 but inherit a risk premium because of their role as secret hub and lateral-movement enabler. Priority only drops once authentication is enforced in front of the endpoints and the config payloads provably contain no plaintext secrets.

    1. Runbook step 1

      Immediate response (0-24 h)

      • Upgrade Spring Cloud Config Server to the fixed release: branch 2.2.x to 2.2.3 or later, branch 2.1.x to 2.1.9 or later. Unsupported branches (2.0.x, 1.x) have no backport — force migration to a supported minor line.
      • Audit build dependencies: scan Maven/Gradle manifests, SBOMs and Nexus/Artifactory for org.springframework.cloud:spring-cloud-config-server artifacts below 2.1.9 or 2.2.3, then trigger rebuild and redeploy of every consuming service.
      • Remove Config Server endpoints from the public internet: configure the reverse proxy or ingress so that /{application}/{profile} and /{application}/{profile}/{label}/** are only reachable from internal networks or the service mesh. Block TCP/8888 (the default) at the perimeter firewall.
      • Treat any secret stored in or referenced by the Config Server (Vault tokens, DB credentials, API keys inside application.yml, bootstrap.yml) as potentially leaked and rotate them, especially if the server was externally reachable before patching.
      • Retro-hunt 90 days of Config Server and upstream proxy access logs for traversal patterns (.., %2e%2e, %252e, encoded slashes). Treat any hit as a candidate secret-exposure incident.
    2. Runbook step 2

      Mitigation layers

      • Network segmentation: expose the Config Server only inside internal service VLANs. Allow traffic only from known Spring Boot clients via security groups, Kubernetes NetworkPolicy or mTLS inside a service mesh.
      • Enforce authentication: enable Spring Security in front of Config Server endpoints (spring.security.user.* or an OAuth2 Resource Server), minimum Basic Auth over HTTPS. Even without the patch this stops unauthenticated attackers from reaching the vulnerable URL handler.
      • WAF / reverse-proxy rule: block requests to the Config Server that contain .., %2e%2e, %2f%2e%2e, backslash variants or absolute paths (/etc/, C:\) in URI or query. Example Nginx: if ($request_uri ~* "(\.\.|%2e%2e|%252e)") { return 403; }.
      • Backend hardening: if the Config Server uses a local Git repo or filesystem backend, run the JVM as a non-root user and restrict it via AppArmor/SELinux or a read-only container rootfs scoped to the repo directory. This caps the blast radius even if traversal succeeds.
      • Secret hygiene: remove plaintext secrets from config repositories; migrate to HashiCorp Vault, Spring Cloud Config encryption ({cipher}) or an external KMS. A successful traversal then yields only ciphertext.
      • CI/CD gating: run dependency scanners (OWASP Dependency-Check, Dependabot, Renovate, Snyk) with fail-on-high so vulnerable Config Server versions cannot slip back into production.
    3. Runbook step 3

      Detection rules

      • Access logs (reverse proxy, Spring Boot access.log): alert on requests to Config Server paths carrying traversal tokens. Sigma shape: selection: cs-uri-stem|contains: ['..','%2e%2e','%252e','..%2f','..%5c'] AND cs-host matches config-server FQDN.
      • Response-size baselining: oversized or MIME-atypical answers (text/plain, application/octet-stream) on Config endpoints that normally return JSON/YAML. KQL shape: AzureDiagnostics | where requestUri_s contains "config" | where responseSize_d > 100000.
      • Zeek/Suricata: signature on HTTP URIs with ../ or encoded variants combined with TCP/8888 or the Config Server SNI. Suricata shape: alert http any any -> $CONFIG_SERVER any (msg:"Spring Cloud Config path traversal CVE-2020-5410"; content:"../"; http_uri; sid:1000541;).
      • Host telemetry (auditd / Sysmon FileCreate, EID 11): the Config Server JVM process reading files outside the expected Git workspace, such as /etc/passwd, /root/, ~/.ssh/ or C:\Windows\. Any such read from this process is suspicious by itself.
      • SIEM correlation: a burst of 4xx/5xx responses from the Config Server followed by a single 200 with a large body from the same source IP — the classic fingerprint-then-exfiltrate pattern.

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    Spring Cloud Config, versions 2.2.x prior to 2.2.3, versions 2.1.x prior to 2.1.9, and older unsupported versions allow applications to serve arbitrary configuration files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead to a directory traversal attack.

    Source: redhat_csaf, NVD (NIST), OSV (Open Source Vulnerabilities), cvelistv5, CISA KEV Catalog

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    Spring by VMwareSpring Cloud Config
    • 2.2 – < 2.2.3
    • 2.1 – < 2.1.9
    • 2.2.3
    • 2.1.9
    vmwarespring_cloud_config
    • 2.2.0 – < 2.2.3
    • 2.1.0 – < 2.1.9
    • 2.2.3
    • 2.1.9
    mavenorg.springframework.cloud:spring-cloud-config-server
    • 2.1.6.RELEASE
    • 2.1.2.RELEASE
    • 2.1.0.RELEASE
    • 2.1.5.RELEASE
    • 2.1.3.RELEASE
    • 2.1.7.RELEASE
    • 2.1.4.RELEASE
    • 2.1.0
    • 2.1.8.RELEASE
    • 2.2.1.RELEASE
    • 2.2.0.RELEASE
    • 2.2.2.RELEASE
    • 2.2.0
    • 2.1.1.RELEASE
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —
    • —

    Vendors and products

    Weakness classes (CWE)

    • CWE-23Relative Path Traversal

      Base

      The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.

      Entry at MITRE CWE-23

    Public exploit references

    Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.

    Public exploit references
    CISA KEV CatalogCISA Known Exploited Vulnerability (opens in a new tab)cisa.govactively exploited

    References & sources

    • NVD (NIST)vuln/detail/CVE-2020-5410advisory
    • github.comspring-cloud/spring-cloud-configpackage
    • tanzu.vmware.comsecurity/cve-2020-5410web, x_refsource_CONFIRM, Vendor advisory
    • cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2020-5410web, government-resource, US government resource
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2020-5410
    <a href="https://intel.neosec.eu/en/cve/CVE-2020-5410"><img src="https://intel.neosec.eu/badge/cve/CVE-2020-5410.svg?lang=en" alt="CVE-2020-5410 – NEOSEC Intel" height="20"></a>