{"id":"CVE-2005-1636","aliases":["DEBIAN-CVE-2005-1636","DSA-783-1","EUVD-2005-1638","GHSA-pww4-5979-pcmm","RHSA-2005:685"],"status":"published","title":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X...","description":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X file with a predictable filename and insecure permissions, which allows local users to execute arbitrary SQL commands by modifying the file's contents.","severity":{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00615,"percentile":0.49728,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2005-05-17T04:00:00Z","modified":"2026-06-26T10:03:37Z","fixes":[{"ecosystem":"Debian:3.1","package":"mysql-dfsg-4.1","fixed_in":["4.1.11a-4sarge1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-bench","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-debuginfo","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-devel","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-server","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-bench","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-debuginfo","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-devel","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-server","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-bench","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-debuginfo","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-devel","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-server","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-bench","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-debuginfo","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-devel","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-server","fixed_in":["0:4.1.12-3.RHEL4.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:3.1","package":"mysql-dfsg-4.1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.11a-4sarge1"}]}],"versions":["4.1.11a-4"]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.1.12-3.RHEL4.1"}]}]}],"products":[{"vendor":"mysql","product":"mysql"},{"vendor":"oracle","product":"mysql"}],"references":[{"url":"http://www.zataz.net/adviso/mysql-05172005.txt","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://secunia.com/advisories/15369","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/17080","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://marc.info/?l=full-disclosure\u0026m=111632686805498\u0026w=2","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"http://www.securityfocus.com/bid/13660","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9504","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158688","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:045","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-685.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-1636","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-pww4-5979-pcmm"},{"url":"https://access.redhat.com/errata/RHSA-2005:685","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=158688","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=163694","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_685.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-1636","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617657","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-1636","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2005-1636","description":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X file with a predictable filename and insecure permissions, which allows local users to execute arbitrary SQL commands by modifying the file's contents.","status":"published","published":"2005-05-17T04:00:00Z","modified":"2024-08-07T21:59:23.548Z","updated_at":"2026-11-02T14:33:39.586409Z"}],"euvd":[{"id":"EUVD-2005-1638","description":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X file with a predictable filename and insecure permissions, which allows local users to execute arbitrary SQL commands by modifying the file's contents.","status":"published","published":"2005-05-17T04:00:00Z","modified":"2024-08-07T21:59:23Z","updated_at":"2026-11-03T01:15:33.650851Z"}],"ghsa":[{"id":"GHSA-pww4-5979-pcmm","title":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X...","description":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X file with a predictable filename and insecure permissions, which allows local users to execute arbitrary SQL commands by modifying the file's contents.","status":"published","published":"2022-05-01T02:00:38Z","modified":"2023-01-30T05:06:49Z","updated_at":"2026-11-02T14:47:34.433705Z"}],"nvd":[{"id":"CVE-2005-1636","description":"mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X file with a predictable filename and insecure permissions, which allows local users to execute arbitrary SQL commands by modifying the file's contents.","status":"published","published":"2005-05-17T04:00:00Z","modified":"2026-06-16T22:13:24.697Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:55.266741Z"}],"osv":[{"id":"DSA-783-1","title":"mysql-dfsg-4.1 - insecure temporary file","status":"published","published":"2005-08-24T00:00:00Z","modified":"2026-03-09T02:09:45.60352Z","updated_at":"2026-11-02T15:46:18.716547Z"},{"id":"RHSA-2005:685","title":"Red Hat Security Advisory: mysql security update","status":"published","published":"2024-09-15T15:45:27Z","modified":"2026-06-26T10:03:37Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
