{"id":"CVE-2018-3848","aliases":["DEBIAN-CVE-2018-3848","EUVD-2018-15634","GHSA-868x-9f95-m4c9","MGASA-2019-0133","OESA-2022-1533","OESA-2022-1848","UBUNTU-CVE-2018-3848"],"status":"published","title":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can...","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.03501,"percentile":0.89249,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2018-04-16T15:00:00Z","modified":"2026-10-23T18:03:06Z","fixes":[{"ecosystem":"Debian:12","package":"cfitsio","fixed_in":["3.430-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"cfitsio","fixed_in":["3.430-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"cfitsio","fixed_in":["3.430-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}]},{"source":"osv","ecosystem":"Mageia:6","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1.1.mga6"}]}],"bundled":3},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP1","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.490-1.oe1"}]}],"bundled":2},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP2","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.490-1.oe1"}]}],"bundled":2},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP3","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.490-1.oe1"}]}],"bundled":2},{"source":"osv","ecosystem":"openEuler:22.03-LTS","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.490-1.oe2203"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.370-5"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"nasa","product":"cfitsio"},{"vendor":"talos","product":"nasa cfitsio"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K46I2MFPCEOGC5LLDXZSWPB3EBPON3KA/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202101-24","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2018-0531","tags":["x_refsource_MISC","x_transferred","Exploit","Technical Description","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3848","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K46I2MFPCEOGC5LLDXZSWPB3EBPON3KA/"},{"url":"https://github.com/advisories/GHSA-868x-9f95-m4c9"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-3848","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2019-0133.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=24586","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1563915","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1568184","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1568189","tags":["report"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1533","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3849","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1848","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-3848","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-3848","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-3848","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2018-04-16T15:00:00Z","modified":"2024-09-17T01:17:05.927Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:05.262903Z"}],"euvd":[{"id":"EUVD-2018-15634","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2018-04-16T15:00:00Z","modified":"2024-09-17T01:17:05Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:28:50.749865Z"}],"ghsa":[{"id":"GHSA-868x-9f95-m4c9","title":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can...","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2022-05-13T01:02:07Z","modified":"2023-02-01T05:02:30Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:49:55.565803Z"}],"nvd":[{"id":"CVE-2018-3848","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2018-04-16T16:29:00.283Z","modified":"2026-06-17T01:57:53.747Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:04:25.506659Z"}],"osv":[{"id":"CVE-2018-3848","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2018-04-16T16:29:00.283Z","modified":"2026-04-16T04:42:08.48808627Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.442568Z"},{"id":"DEBIAN-CVE-2018-3848","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2018-04-16T16:29:00.283Z","modified":"2026-10-23T18:03:06.445051931Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"OESA-2022-1533","title":"cfitsio security update","description":"Library for manipulating FITS data files.\r\n\r\nSecurity Fix(es):\r\n\r\nIn the ffghtb function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.(CVE-2018-3849)\r\n\r\nIn the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.(CVE-2018-3848)","status":"published","published":"2022-02-19T11:04:48Z","modified":"2026-08-18T01:16:22.152457421Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:39.528805Z"},{"id":"OESA-2022-1848","title":"cfitsio security update","description":"\r\n\r\nSecurity Fix(es):\r\n\r\nIn the ffghtb function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.(CVE-2018-3849)\r\n\r\nIn the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.(CVE-2018-3848)","status":"published","published":"2022-08-19T11:05:07Z","modified":"2026-08-18T01:16:23.693192178Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:39.528805Z"},{"id":"UBUNTU-CVE-2018-3848","description":"In the ffghbn function in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.","status":"published","published":"2018-04-16T16:29:00Z","modified":"2026-04-22T11:55:30.103874Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.33562Z"},{"id":"MGASA-2019-0133","title":"Updated cfitsio packages fix security vulnerability","description":"CVE-2018-3846: Unsafe use of sprintf() can allow a remote unauthenticated\nattacker to execute arbitrary code\nCVE-2018-3848: Stack-based buffer overflow in ffghbn() allows for\npotential code execution\nCVE-2018-3849: Stack-based buffer overflow in ffghtb() allows for\npotential code execution\n","status":"published","published":"2019-04-05T18:12:59Z","modified":"2026-04-16T04:40:50.526723145Z","updated_at":"2026-11-02T15:49:40.793816Z"}]}}
