Skip to content
Fencer Vulns
critical 9.8

CVE-2018-7485 json

The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attacke…

published 2018-02-26 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-19216

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.0%
EPSS 3.0% chance of exploitation in 30 days, percentile 87%
public exploits
0
none known

Summary

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.

Patch / fix

  • unixODBC RHEL 7 2.3.1-14.el7
  • unixODBC RHEL 7.6 EUS 2.3.1-14.el7_6

red hat advisories RHSA-2020:4999RHSA-2019:2336

  • unixODBC SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +1 more 2.3.6-7.9.1

suse advisories SUSE-SU-2018:1832-1

  • unixODBC openSUSE Tumbleweed 2.3.9-3.4

opensuse advisories openSUSE-SU-2024:11483-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-7485 updated cvss 6.8

unixODBC: Insecure buffer copy in SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c

  • Red Hat Enterprise Linux 5 unixODBC, unixODBC64 Red Hat Enterprise Linux 6 unixODBC, unixODBC-kde
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux Client (v. 7) unixODBC 2.3.1-14.el7 Red Hat Enterprise Linux Client Optional (v. 7) unixODBC-devel 2.3.1-14.el7, unixODBC-debuginfo 2.3.1-14.el7 Red Hat Enterprise Linux ComputeNode (v. 7) unixODBC 2.3.1-14.el7
    fixed: vendor fix RHSA-2019:2336
  • Red Hat Enterprise Linux ComputeNode EUS (v. 7.6) unixODBC 2.3.1-14.el7_6
    fixed: vendor fix RHSA-2020:4999
  • Red Hat Enterprise Linux ComputeNode Optional (v. 7) unixODBC-devel 2.3.1-14.el7, unixODBC-debuginfo 2.3.1-14.el7
    fixed: vendor fix RHSA-2019:2336
  • Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.6) unixODBC-devel 2.3.1-14.el7_6, unixODBC-debuginfo 2.3.1-14.el7_6 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) unixODBC 2.3.1-14.el7_6
    fixed: vendor fix RHSA-2020:4999
  • Red Hat Enterprise Linux Server (v. 7) unixODBC 2.3.1-14.el7
    fixed: vendor fix RHSA-2019:2336
  • Red Hat Enterprise Linux Server EUS (v. 7.6) unixODBC 2.3.1-14.el7_6
    fixed: vendor fix RHSA-2020:4999
  • Red Hat Enterprise Linux Workstation (v. 7) unixODBC 2.3.1-14.el7
    fixed: vendor fix RHSA-2019:2336
show 1 more
  • Red Hat Enterprise Linux 8 unixODBC
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.02% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.