CVE-2018-7485
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.
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
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 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV: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 Critical
CVSS: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 Critical
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
unixODBCMageia:6 From an advisory covering 2 CVEs |
before 2.3.7-1.mga6 | 2.3.7-1.mga6 |
unixODBCRed 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-debuginfoRed 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-develRed Hat:enterprise_linux:7::client From an advisory covering 2 CVEs |
before 0:2.3.1-14.el7 | 0:2.3.1-14.el7 |
unixODBCRed 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-debuginfoRed 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-develRed Hat:enterprise_linux:7::computenode From an advisory covering 2 CVEs |
before 0:2.3.1-14.el7 | 0:2.3.1-14.el7 |
unixODBCRed 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-debuginfoRed 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-develRed 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
| Package | Affected | Fixed |
|---|---|---|
unixODBCRed 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-debuginfoRed 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-develRed Hat:enterprise_linux:7::workstation From an advisory covering 2 CVEs |
before 0:2.3.1-14.el7 | 0:2.3.1-14.el7 |
unixODBCRed 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-debuginfoRed 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-develRed 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 |
unixODBCRed 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-debuginfoRed 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-develRed 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 |
unixODBCSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 2 CVEs |
before 2.3.6-7.9.1 | 2.3.6-7.9.1 |
unixODBCSUSE: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 |
unixODBCSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 2 CVEs |
before 2.3.6-7.9.1 | 2.3.6-7.9.1 |
unixODBCSUSE: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 |
unixODBCopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 2.3.9-3.4 | 2.3.9-3.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE 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
github.com/lurcher/unixODBC/commit/45ef78e037f578b15fc58938a3a3251655e71d6f
securityfocus.com/bid/103193
access.redhat.com/errata/RHSA-2019:2336
nvd.nist.gov/vuln/detail/CVE-2018-7485
github.com/advisories/GHSA-2fc5-5jjf-fmx7
advisories.mageia.org/MGASA-2018-0379.html
Show 21 moreShow less
bugs.mageia.org/show_bug.cgi?id=23253
lists.fedoraproject.org/archives/list/[email protected]/thread/FNQ5MBIGSDZTV3C7TRG7BMA6GMVJVOYO
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1548305
bugzilla.redhat.com/show_bug.cgi?id=1549636
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2336.json
access.redhat.com/security/cve/CVE-2018-7409
cve.org/CVERecord?id=CVE-2018-7409
nvd.nist.gov/vuln/detail/CVE-2018-7409
access.redhat.com/security/cve/CVE-2018-7485
cve.org/CVERecord?id=CVE-2018-7485
access.redhat.com/errata/RHSA-2020:4999
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4999.json
suse.com/support/update/announcement/2018/suse-su-20181832-1
bugzilla.suse.com/1044970
bugzilla.suse.com/1082060
bugzilla.suse.com/1082290
bugzilla.suse.com/1082484
suse.com/security/cve/CVE-2018-7409
suse.com/security/cve/CVE-2018-7485