{"id":"CVE-2018-7409","aliases":["CLSA-2023-1692110840","DEBIAN-CVE-2018-7409","EUVD-2018-19140","GHSA-2c46-qg5h-fq8x","MGASA-2018-0379","RHSA-2019:2336","RHSA-2020:4999","SUSE-SU-2018:1832-1","UBUNTU-CVE-2018-7409","USN-6276-1","openSUSE-SU-2024:11483-1"],"status":"published","title":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in...","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02545,"percentile":0.85102,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2018-02-22T18:00:00Z","modified":"2026-10-23T18:04:48Z","fixes":[{"ecosystem":"TuxCare:Ubuntu:16.04","package":"libodbc1","fixed_in":["2.3.1-4.1+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:16.04","package":"odbcinst","fixed_in":["2.3.1-4.1+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:16.04","package":"odbcinst1debian2","fixed_in":["2.3.1-4.1+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:16.04","package":"unixodbc","fixed_in":["2.3.1-4.1+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:16.04","package":"unixodbc-dev","fixed_in":["2.3.1-4.1+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"unixodbc","fixed_in":["2.3.6-0.1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"unixodbc","fixed_in":["2.3.6-0.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"unixodbc","fixed_in":["2.3.6-0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"unixodbc","fixed_in":["2.2.14p2-5ubuntu5+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"unixodbc","fixed_in":["2.3.1-4.1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"unixodbc","fixed_in":["2.3.4-1.1ubuntu3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"libodbc1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"odbcinst","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"odbcinst1debian2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"unixodbc-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-0.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-0.1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-0.1"}]}]},{"source":"osv","ecosystem":"Mageia:6","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.7-1.mga6"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"unixODBC-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"unixODBC-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"unixODBC-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"unixODBC-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"unixODBC-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"unixODBC-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"unixODBC-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"unixODBC-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:rhel_eus:7.6::computenode","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7_6"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:rhel_eus:7.6::computenode","package":"unixODBC-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7_6"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:rhel_eus:7.6::computenode","package":"unixODBC-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7_6"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:rhel_eus:7.6::server","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7_6"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:rhel_eus:7.6::server","package":"unixODBC-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7_6"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:rhel_eus:7.6::server","package":"unixODBC-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.3.1-14.el7_6"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-7.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-7.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-7.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.6-7.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.14p2-5ubuntu5+esm1"}]}],"versions":["2.2.14p2-5ubuntu4","2.2.14p2-5ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1ubuntu0.1~esm1"}]}],"versions":["2.3.1-3","2.3.1-4","2.3.1-4.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.4-1.1ubuntu3"}]}],"versions":["2.3.4-1","2.3.4-1.1","2.3.4-1.1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.14p2-5ubuntu5+esm1"}]}],"versions":["2.2.14p2-5ubuntu4","2.2.14p2-5ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"unixodbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-4.1ubuntu0.1~esm1"}]}],"versions":["2.3.1-3","2.3.1-4","2.3.1-4.1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"unixODBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.9-3.4"}]}],"bundled":2}],"products":[{"vendor":"unixodbc","product":"unixodbc"}],"references":[{"url":"http://www.unixodbc.org/unixODBC-2.3.5.tar.gz","tags":["x_refsource_MISC","x_transferred","Product","web","report"]},{"url":"https://sourceforge.net/projects/unixodbc/files/unixODBC/2.3.5/ChangeLog/download","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory","report"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2336","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7409","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2c46-qg5h-fq8x"},{"url":"https://errata.cloudlinux.com/ubuntu16_04-els/CLSA-2023-1692110840","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-7409","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0379.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23253","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/FNQ5MBIGSDZTV3C7TRG7BMA6GMVJVOYO/","tags":["web"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1548305","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1549636","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2336.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-7409","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7409","tags":["advisory","report"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-7485","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7485","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7485","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2020:4999","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4999.json","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20181832-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1044970","tags":["report"]},{"url":"https://bugzilla.suse.com/1082060","tags":["report"]},{"url":"https://bugzilla.suse.com/1082290","tags":["report"]},{"url":"https://bugzilla.suse.com/1082484","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7409","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7485","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-7409","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6276-1","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2018-7409","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2018-02-22T18:00:00Z","modified":"2024-08-05T06:24:11.943Z","updated_at":"2026-11-02T14:35:09.908186Z"}],"euvd":[{"id":"EUVD-2018-19140","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2018-02-22T18:00:00Z","modified":"2024-08-05T06:24:11Z","updated_at":"2026-11-03T02:40:06.159235Z"}],"ghsa":[{"id":"GHSA-2c46-qg5h-fq8x","title":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in...","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2022-05-14T00:55:07Z","modified":"2023-02-02T05:02:44Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:51:30.378864Z"}],"nvd":[{"id":"CVE-2018-7409","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2018-02-22T18:29:00.317Z","modified":"2026-06-17T02:03:05.53Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:04:23.783914Z"}],"osv":[{"id":"CVE-2018-7409","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2018-02-22T18:29:00.317Z","modified":"2026-04-16T06:16:27.333658857Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-7409","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2018-02-22T18:29:00.317Z","modified":"2026-10-23T18:04:48.313560221Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"RHSA-2019:2336","title":"Red Hat Security Advisory: unixODBC security update","status":"published","published":"2024-09-16T02:35:36Z","modified":"2026-06-26T10:43:17Z","cvss":[{"version":"3.0","score":6.8,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:06.0195Z"},{"id":"RHSA-2020:4999","title":"Red Hat Security Advisory: unixODBC security update","status":"published","published":"2024-09-16T02:35:43Z","modified":"2026-06-26T10:51:44Z","cvss":[{"version":"3.0","score":6.8,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:07.57369Z"},{"id":"UBUNTU-CVE-2018-7409","description":"In unixODBC before 2.3.5, there is a buffer overflow in the unicode_to_ansi_copy() function in DriverManager/__info.c.","status":"published","published":"2018-02-22T18:29:00Z","modified":"2026-04-22T12:02:58.384734Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"CLSA-2023-1692110840","title":"Fix CVE(s): CVE-2018-7409","description":"\n   * SECURITY UPDATE: Fix buffer overflow\n     - debian/patch/CVE-2018-7409: fix unicode_to_ansi_copy(), don't include\n       NUL-terminator in length in unicode_to_ansi_alloc(), make sure that\n       the error handling doesn't overrun the buffer\n     - CVE-2018-7409","status":"published","published":"2023-08-15T14:47:24Z","modified":"2026-06-04T10:03:13.13418Z","updated_at":"2026-11-02T15:43:40.509998Z"},{"id":"MGASA-2018-0379","title":"Updated unixODBC packages fix security vulnerability","description":"unixODBC before version 2.3.5 is vulnerable to a buffer overflow in the\nDriverManager/__info.c:unicode_to_ansi_copy() method. An attacker could\nexploit this to cause a denial of service or other unspecified impact\n(CVE-2018-7409).\n\nThe SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC\n2.3.5 has strncpy arguments in the wrong order, which allows attackers to\ncause a denial of service or possibly have unspecified other impact\n(CVE-2018-7485).\n","status":"published","published":"2018-09-21T16:26:22Z","modified":"2026-04-16T06:24:51.598312004Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"openSUSE-SU-2024:11483-1","title":"libodbc2-2.3.9-3.4 on GA media","description":"These are all security issues fixed in the libodbc2-2.3.9-3.4 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:55:03.673824Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2018:1832-1","title":"Security update for unixODBC","description":"\n\nThis update for unixODBC to version 2.3.6 fixes the following issues:\n\n- CVE-2018-7409: Buffer overflow in unicode_to_ansi_copy() was fixed in 2.3.5 (bsc#1082290)\n- CVE-2018-7485: Swapped arguments in SQLWriteFileDSN() in odbcinst/SQLWriteFileDSN.c (bsc#1082484)\n\nOther fixes:\n\n- Enabled --enable-fastvalidate option in configure (bsc#1044970)\n","status":"published","published":"2018-06-27T20:20:19Z","modified":"2026-02-04T02:58:13.054481Z","updated_at":"2026-11-02T15:53:44.972817Z"},{"id":"USN-6276-1","title":"unixodbc vulnerability","description":"It was discovered that unixODBC incorrectly handled certain unicode\nto ansi copies. An attacker could possibly use this issue to cause\na denial of service.\n","status":"published","published":"2023-08-07T10:53:38Z","modified":"2026-06-29T13:50:55.387563254Z","updated_at":"2026-11-02T16:58:17.305935Z"}]}}
