-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2021.0577
        Advisory (icsa-21-047-01) Open Design Alliance Drawings SDK
                             17 February 2021

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Open Design Alliance Drawings SDK
Publisher:         ICS-CERT
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
                   Denial of Service               -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-25178 CVE-2021-25177 CVE-2021-25176
                   CVE-2021-25175 CVE-2021-25174 CVE-2021-25173

Reference:         ESB-2021.0495

Original Bulletin: 
   https://us-cert.cisa.gov/ics/advisories/icsa-21-047-01

- --------------------------BEGIN INCLUDED TEXT--------------------

ICS Advisory (ICSA-21-047-01)

Open Design Alliance Drawings SDK

Original release date: February 16, 2021

Legal Notice

All information products included in https://us-cert.cisa.gov/ics are provided
"as is" for informational purposes only. The Department of Homeland Security
(DHS) does not provide any warranties of any kind regarding any information
contained within. DHS does not endorse any commercial product or service,
referenced in this product or otherwise. Further dissemination of this product
is governed by the Traffic Light Protocol (TLP) marking in the header. For more
information about TLP, see https://us-cert.cisa.gov/tlp/ .



1. EXECUTIVE SUMMARY

  o CVSS v3 7.8
  o ATTENTION: Low skill level to exploit
  o Vendor: Open Design Alliance
  o Equipment: Drawings SDK
  o Vulnerabilities: Stack-based Buffer Overflow, Type Confusion, Untrusted
    Pointer Dereference, Incorrect Type Conversion or Cast, Memory Allocation
    with Excessive Size Value

2. RISK EVALUATION

Successful exploitation of these vulnerabilities may allow code execution in
the context of the current process or cause a denial-of-service condition.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following versions of Drawings SDK, a software development kit for DWG and
DGN, are affected:

  o Drawings SDK: All versions prior to 2021.12 (Version 2021.11 is only
    affected by CVE-2021-25174 and CVE-2021-25173)

3.2 VULNERABILITY OVERVIEW

3.2.1 STACK-BASED BUFFER OVERFLOW CWE-121

The affected product is vulnerable to a stack-based buffer overflow while
processing malformed DXF and DWG files. This could allow an attacker to execute
code or cause a denial-of-service condition.

CVE-2021-25178 has been assigned to this vulnerability. A CVSS v3 base score of
7.8 has been calculated; the CVSS vector string is ( AV:L/AC:L/PR:N/UI:R/S:U/
C:H/I:H/A:H ).

3.2.2 ACCESS OF RESOURCE USING INCOMPATIBLE TYPE ('TYPE CONFUSION') CWE-843

A type confusion issue exists when rendering malformed DXF and DWG files. This
could allow an attacker to execute code or cause a denial-of-service condition.

CVE-2021-25177 has been assigned to this vulnerability. A CVSS v3 base score of
7.8 has been calculated; the CVSS vector string is ( AV:L/AC:L/PR:N/UI:R/S:U/
C:H/I:H/A:H ).

3.2.3 UNTRUSTED POINTER DEREFERENCE CWE-822

A NULL pointer dereference exists when rendering malformed DXF and DWG files.
This could allow an attacker to execute code or cause a denial-of-service
condition.

CVE-2021-25176 has been assigned to this vulnerability. A CVSS v3 base score of
7.8 has been calculated; the CVSS vector string is ( AV:L/AC:L/PR:N/UI:R/S:U/
C:H/I:H/A:H ).

3.2.4 INCORRECT TYPE CONVERSION OR CAST CWE-704

A type conversion issue exists when rendering malformed DXF and DWG files. This
could allow an attacker to execute code or cause a denial-of-service condition.

CVE-2021-25175 has been assigned to this vulnerability. A CVSS v3 base score of
7.8 has been calculated; the CVSS vector string is ( AV:L/AC:L/PR:N/UI:R/S:U/
C:H/I:H/A:H ).

3.2.5 MEMORY ALLOCATION WITH EXCESSIVE SIZE VALUE CWE-789

A memory corruption issue exists when reading malformed DGN files. This could
allow an attacker to execute code or cause a denial-of-service condition.

CVE-2021-25174 has been assigned to this vulnerability. A CVSS v3 base score of
7.8 has been calculated; the CVSS vector string is ( AV:L/AC:L/PR:N/UI:R/S:U/
C:H/I:H/A:H ).

3.2.6 MEMORY ALLOCATION WITH EXCESSIVE SIZE VALUE CWE-789

A memory allocation with excessive size issue exists when reading malformed DGN
files. This could allow an attacker to execute code or cause a
denial-of-service condition.

CVE-2021-25173 has been assigned to this vulnerability. A CVSS v3 base score of
7.8 has been calculated; the CVSS vector string is ( AV:L/AC:L/PR:N/UI:R/S:U/
C:H/I:H/A:H )

3.3 BACKGROUND

  o CRITICAL INFRASTRUCTURE SECTORS: Multiple
  o COUNTRIES/AREAS DEPLOYED: Worldwide
  o COMPANY HEADQUARTERS LOCATION: United States

3.4 RESEARCHER

Michael DePlante (@izobashi) and rgod, working with Trend Micro's Zero Day
Initiative, reported these vulnerabilities to CISA. Siemens ProductCERT
assisted coordination with Open Design Alliance.

4. MITIGATIONS

Open Design Alliance recommends updating to v2021.12 or later. Instructions for
ODA members can be found here (Login Required).

For more information refer to Open Design Alliance's Security Advisories .

For more information on products dependent on the affected Drawings SDK see the
following vendor security advisories:

  o Siemens: SSA-663999

CISA recommends users take the following measures to protect themselves from
social engineering attacks:

  o Only use project files from trusted sources.
  o Ensure the least-privilege user principle is followed.
  o Do not click web links or open unsolicited attachments in email messages.
  o Refer to Recognizing and Avoiding Email Scams for more information on
    avoiding email scams.
  o Refer to Avoiding Social Engineering and Phishing Attacks for more
    information on social engineering attacks.

CISA reminds organizations to perform proper impact analysis and risk
assessment prior to deploying defensive measures.

CISA also provides a section for control systems security recommended practices
on the ICS webpage on us-cert.cisa.gov . Several recommended practices are
available for reading and download, including Improving Industrial Control
Systems Cybersecurity with Defense-in-Depth Strategies .

Additional mitigation guidance and recommended practices are publicly available
on the ICS webpage on us-cert.cisa.gov in the Technical Information Paper,
ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation
Strategies .

Organizations observing any suspected malicious activity should follow their
established internal procedures and report their findings to CISA for tracking
and correlation against other incidents.

No known public exploits specifically target these vulnerabilities. These
vulnerabilities are not exploitable remotely.

For any questions related to this report, please contact the CISA at:

Email: CISAservicedesk@cisa.dhs.gov
Toll Free: 1-888-282-0870

CISA continuously strives to improve its products and services. You can help by
choosing one of the links below to provide feedback about this product.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBYCyc5uNLKJtyKPYoAQil4g//Ygw+46fNBb2kGyglaB66yWmaV/YfX1Pb
aEQ4LdbHt55Lwe3KHLmBAlqpUUUMhicunSEx8TqTta35Qm9As79BkHXF4SC0iJmi
/9lkbxfv8+sXTYy1ez/wlMKF1BA4LTi4efhc3q1+JuRlHmWyvUlNOTcc4z2s9ir4
247uyC0uUBwBeLDwvDxKxxeLp8wUq0ocaYzTGsHcbJPjO3SqaOhP76fmbKrkvVd9
O3oABAHRMoT/nJpN8eKkwSgjeGTPUe6ezCO0Xpa4SHLu6maaufPB9u+3+3P/h5Qt
KBnhqC0gfT3x5YDpOq5iojUyBSwlDgQ1pk1LF6cJQlwNig+UFIoCxqkG3MtSZFq/
NDfTG/JgWE8kjtFE4j3UoriOoFhT7gPshFClBYIKLYFNprTVNn7YWIKP6MmJNGdy
MM3O3cF2xslmBso3XY7A8cBIhfAWWxa8BieCHPJQUHp6KJyqX8E9+nV6SoF9uMQR
R8LE7nWtlFZCjipfaqjPyKhyPKF3W2RhuVfIo8ELWwhPeKfK5+hvNNYwUezytA73
L8lO4oN+63WBQA1ccRBmAyCILKNUncuTBzb8OftV/MrWY2urkj0b+nGu7kFG6bJ/
S/3e25X1frKKUbp0u+uSte0TkRbhesGaCeVKkBKSlzP4vrbOhbPr4z6SasmJ/Xv3
AvNWI0edvfs=
=zgnM
-----END PGP SIGNATURE-----