Every CVE Search/ Get API key

CVE-2018-7485

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy...

9.8 Critical

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

3.02%Up 2.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.

Record
CVE-2018-7485
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.

Record
CVE-2018-7485
Updated
2026-11-02
EUVDEUVD-2018-19216 No score

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.

Record
EUVD-2018-19216
Updated
2026-11-03
GitHub AdvisoriesGHSA-2fc5-5jjf-fmx7 9.8

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy...

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.

Record
GHSA-2fc5-5jjf-fmx7
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 9.8

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.

Record
CVE-2018-7485
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2019:2336 6.8

Red Hat Security Advisory: unixODBC security update

Record
RHSA-2019:2336
CVSS 3.0
6.8 MediumCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVRHSA-2020:4999 6.8

Red Hat Security Advisory: unixODBC security update

Record
RHSA-2020:4999
CVSS 3.0
6.8 MediumCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Updated
2026-11-02
OSVMGASA-2018-0379 No score

Updated unixODBC packages fix security vulnerability

unixODBC before version 2.3.5 is vulnerable to a buffer overflow in the DriverManager/__info.c:unicode_to_ansi_copy() method. An attacker could exploit this to cause a denial of service or other unspecified impact (CVE-2018-7409).

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact (CVE-2018-7485).

Record
MGASA-2018-0379
Updated
2026-11-02
OSVopenSUSE-SU-2024:11483-1 No score

libodbc2-2.3.9-3.4 on GA media

These are all security issues fixed in the libodbc2-2.3.9-3.4 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11483-1
Updated
2026-11-02
OSVSUSE-SU-2018:1832-1 No score

Security update for unixODBC

This update for unixODBC to version 2.3.6 fixes the following issues:

  • CVE-2018-7409: Buffer overflow in unicode_to_ansi_copy() was fixed in 2.3.5 (bsc#1082290)
  • CVE-2018-7485: Swapped arguments in SQLWriteFileDSN() in odbcinst/SQLWriteFileDSN.c (bsc#1082484)

Other fixes:

  • Enabled --enable-fastvalidate option in configure (bsc#1044970)
Record
SUSE-SU-2018:1832-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
unixODBC
Mageia:6
From an advisory covering 2 CVEs
before 2.3.7-1.mga6
2.3.7-1.mga6
unixODBC
Red Hat:enterprise_linux:7::client
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC
Red Hat:enterprise_linux:7::computenode
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC
Red Hat:enterprise_linux:7::server
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
Show 14 moreShow less
Affected packages
PackageAffectedFixed
unixODBC
Red Hat:enterprise_linux:7::workstation
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7
0:2.3.1-14.el7
unixODBC
Red Hat:rhel_eus:7.6::computenode
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7_6
0:2.3.1-14.el7_6
unixODBC-debuginfo
Red Hat:rhel_eus:7.6::computenode
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7_6
0:2.3.1-14.el7_6
unixODBC-devel
Red Hat:rhel_eus:7.6::computenode
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7_6
0:2.3.1-14.el7_6
unixODBC
Red Hat:rhel_eus:7.6::server
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7_6
0:2.3.1-14.el7_6
unixODBC-debuginfo
Red Hat:rhel_eus:7.6::server
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7_6
0:2.3.1-14.el7_6
unixODBC-devel
Red Hat:rhel_eus:7.6::server
From an advisory covering 2 CVEs
before 0:2.3.1-14.el7_6
0:2.3.1-14.el7_6
unixODBC
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 2 CVEs
before 2.3.6-7.9.1
2.3.6-7.9.1
unixODBC
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 2 CVEs
before 2.3.6-7.9.1
2.3.6-7.9.1
unixODBC
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 2 CVEs
before 2.3.6-7.9.1
2.3.6-7.9.1
unixODBC
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 2 CVEs
before 2.3.6-7.9.1
2.3.6-7.9.1
unixODBC
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 2.3.9-3.4
2.3.9-3.4

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-7485 is a critical vulnerability (CVSS 9.8) in Unixodbc, published February 26, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.02%, the 87th percentile. No source names a fixed version.

References

Show 21 moreShow less
MoveEnter Open