Vulnerabilities / CVE-2018-7485

critical

CVE-2018-7485

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

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat6.8CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 2.0unixODBC2.3.7-1.ph2
amazon linux 2unixODBC, unixODBC-debuginfo, unixODBC-devel2.3.1-14.amzn2
Oracle Linux 7unixODBC, unixODBC-devel2.3.1-14.0.1.el7
Red HatunixODBC, unixODBC-devel, unixODBC-kdeno fix listed
Show all 9 entries from 4 sources
SourcePackageFixed in
Photon OS 2.0unixODBC2.3.7-1.ph2
amazon linux 2unixODBC2.3.1-14.amzn2
amazon linux 2unixODBC-debuginfo2.3.1-14.amzn2
amazon linux 2unixODBC-devel2.3.1-14.amzn2
Oracle Linux 7unixODBC2.3.1-14.0.1.el7
Oracle Linux 7unixODBC-devel2.3.1-14.0.1.el7
Red HatunixODBCno fix listed
Red HatunixODBC-develno fix listed
Red HatunixODBC-kdeno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.