Not ratedCVE-2024-45747

    open source GeoServer gs-main: Exposed Dangerous Method or Function (CVE-2024-45747)

    Published Sources: BSI, OSV, Hersteller

    Share

    What is affected, what to do

    Update open source GeoServer gs-web-app to version 2.26.4, open source GeoServer gs-main to version 2.27.0, open source GeoServer gs-wms to version 2.27.0.

    Affected
    • open source GeoServer gs-web-app < *..2.26.4
    • open source GeoServer gs-main < *..2.27.0
    • open source GeoServer gs-wms < *..2.27.0
    • open source GeoServer gs-webapp < *..2.27.0
    • open source GeoServer gs-main < *..2.26.4
    Fixed in
    • open source GeoServer gs-web-app 2.26.4
    • open source GeoServer gs-main 2.27.0
    • open source GeoServer gs-wms 2.27.0
    • open source GeoServer gs-webapp 2.27.0
    • open source GeoServer gs-main 2.26.4

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

    Metrics

    —

    Priority

    No value is available for this vulnerability.

    —

    CVSS v3

    No value is available for this vulnerability.

    —

    EPSS score

    No value is available for this vulnerability.

    Show all metrics
    Severity
    Not rated
    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
    23.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
    no public PoC known
    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
    —
    Published
    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-749

    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
    Handle the vulnerability in regular vulnerability handling under Art. 21(2)(e) NIS2.
    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
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    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

    Summary

    A server-side template injection (SSTI) vulnerability exist that allows an authenticated administrator to upload FreeMarker templates containing malicious content that can execute OS commands and read from or write to arbitrary files on the server. These FreeMarker templates are used in a plain GeoServer instance (no extension or community modules) for WMS GetFeatureInfo HTML and JSON and WMS GetMap KML and GeoRSS output formats.

    Details

    The org.geoserver.template.TemplateUtils.getSafeConfiguration() method attempts to block access to the class freemarker.template.utility.Execute but it is still possible to gain access to it and other sensitive functionality by chaining a specific sequence of method calls.

    Impact

    This vulnerability can lead to executing arbitrary code and reading and writing arbitrary files.

    Resolution

    GeoServer 2.27.0 addresses this vulnerability with several new application properties:

    • GEOSERVER_FREEMARKER_BLOCK_LIST
    • GEOSERVER_FREEMARKER_ALLOW_LIST
    • GEOSERVER_FREEMARKER_API_EXPOSED

    These application properties default to restricting the objects template authors can access, and limit access to "getter" methods used to access object properties.

    Source: BSI CSAF, BSI WID Portal, OSV (Open Source Vulnerabilities), GitHub Security Advisories

    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
    Open SourceGeoServer gs-main
    • < 2.26.4
    • < 2.27.0
    • 2.26.4
    • 2.27.0
    Open SourceGeoServer gs-web-app
    • < 2.26.4
    • 2.26.4
    Open SourceGeoServer gs-webapp
    • < 2.27.0
    • 2.27.0
    Open SourceGeoServer gs-wms
    • < 2.27.0
    • 2.27.0
    mavenorg.geoserver.web:gs-web-app
    • —
    • —
    mavenorg.geoserver:gs-main
    • —
    • —
    mavenorg.geoserver:gs-wms
    • —
    • —

    Vendors and products

    Weakness classes (CWE)

    • CWE-749Exposed Dangerous Method or Function

      Base

      The product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted.

      Entry at MITRE CWE-749

    References & sources

    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-2024-45747
    <a href="https://intel.neosec.eu/en/cve/CVE-2024-45747"><img src="https://intel.neosec.eu/badge/cve/CVE-2024-45747.svg?lang=en" alt="CVE-2024-45747 – NEOSEC Intel" height="20"></a>