{"id":"CVE-2018-3846","aliases":["DEBIAN-CVE-2018-3846","UBUNTU-CVE-2018-3846"],"summary":"In the ffgphd and ffgtkn functions in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data.","published_at":"2018-03-10T00:00:00Z","modified_at":"2026-10-23T18:04:47.726678Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.030160000547766685,"percentile":0.8771799802780151,"date":"2026-11-19T00:00:00Z"},"priority":10.3,"details":"In the ffgphd and ffgtkn functions 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.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:8","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2018-3846","relation":"self"},{"ecosystem":"Red Hat:openshift:2","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2018-3846","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"Talos/NASA CFITSIO","versions":["NASA CFITSIO 3.42"],"provider":"cvelistv5","source":"CVE-2018-3846","relation":"self"},{"ecosystem":"Debian:12","package":"cfitsio","purl":"pkg:deb/debian/cfitsio?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}],"fixed":["3.430-1"],"provider":"osv","source":"DEBIAN-CVE-2018-3846","relation":"self"},{"ecosystem":"Debian:13","package":"cfitsio","purl":"pkg:deb/debian/cfitsio?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}],"fixed":["3.430-1"],"provider":"osv","source":"DEBIAN-CVE-2018-3846","relation":"self"},{"ecosystem":"Debian:14","package":"cfitsio","purl":"pkg:deb/debian/cfitsio?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}],"fixed":["3.430-1"],"provider":"osv","source":"DEBIAN-CVE-2018-3846","relation":"self"},{"ecosystem":"NVD","package":"fedoraproject:fedora","versions":["28"],"provider":"nvd","source":"CVE-2018-3846","relation":"self"},{"ecosystem":"NVD","package":"nasa:cfitsio","versions":["3.42"],"provider":"nvd","source":"CVE-2018-3846","relation":"self"},{"ecosystem":"Ubuntu:16.04:LTS","package":"cfitsio","purl":"pkg:deb/ubuntu/cfitsio@3.370-5?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.370-5"],"provider":"osv","source":"UBUNTU-CVE-2018-3846","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"affected","packages":["cfitsio"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2018-3846"},{"vendor":"Red Hat","product":"Red Hat OpenShift Enterprise 2","cpe":"cpe:/a:redhat:openshift:2","status":"affected","packages":["cfitsio"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2018-3846"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2018-3846","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2018-3846","license":"CC-BY-4.0","published_at":"2018-04-16T15:00:00Z","modified_at":"2024-09-17T02:21:57.506Z","summary":"In the ffgphd and ffgtkn functions in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data.","details":"In the ffgphd and ffgtkn functions 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":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2018-3846"}],"affected":[{"ecosystem":"CVE","package":"Talos/NASA CFITSIO","versions":["NASA CFITSIO 3.42"],"provider":"cvelistv5","source":"CVE-2018-3846","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K46I2MFPCEOGC5LLDXZSWPB3EBPON3KA/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202101-24"},{"type":"WEB","url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2018-0529"}]},{"provider":"nvd","source_id":"CVE-2018-3846","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3846","severity":[],"affected":[{"ecosystem":"NVD","package":"fedoraproject:fedora","versions":["28"],"provider":"nvd","source":"CVE-2018-3846","relation":"self"},{"ecosystem":"NVD","package":"nasa:cfitsio","versions":["3.42"],"provider":"nvd","source":"CVE-2018-3846","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2018-3846","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2018-3846","published_at":"2018-04-16T16:29:00.22Z","modified_at":"2026-10-23T18:04:47.726678Z","details":"In the ffgphd and ffgtkn functions 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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2018-3846"}],"affected":[{"ecosystem":"Debian:12","package":"cfitsio","purl":"pkg:deb/debian/cfitsio?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}],"fixed":["3.430-1"],"provider":"osv","source":"DEBIAN-CVE-2018-3846","relation":"self"},{"ecosystem":"Debian:13","package":"cfitsio","purl":"pkg:deb/debian/cfitsio?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}],"fixed":["3.430-1"],"provider":"osv","source":"DEBIAN-CVE-2018-3846","relation":"self"},{"ecosystem":"Debian:14","package":"cfitsio","purl":"pkg:deb/debian/cfitsio?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.430-1"}]}],"fixed":["3.430-1"],"provider":"osv","source":"DEBIAN-CVE-2018-3846","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2018-3846"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2018-3846","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2018-3846","license":"CC-BY-SA-4.0","published_at":"2018-04-16T16:29:00Z","modified_at":"2026-04-22T11:54:55.531769Z","details":"In the ffgphd and ffgtkn functions 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":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2018-3846"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2018-3846"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2018-3846"}],"affected":[{"ecosystem":"Ubuntu:16.04:LTS","package":"cfitsio","purl":"pkg:deb/ubuntu/cfitsio@3.370-5?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.370-5"],"provider":"osv","source":"UBUNTU-CVE-2018-3846","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-3846"},{"type":"REPORT","url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2018-0529"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-3846"}]},{"provider":"redhat-vex","source_id":"CVE-2018-3846","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2018-3846","license":"CC-BY-4.0","published_at":"2018-03-10T00:00:00Z","modified_at":"2021-02-17T00:33:18Z","summary":"cfitsio: Unsafe use of sprintf() can allow a remote unauthenticated attacker to execute arbitrary code","details":"In the ffgphd and ffgtkn functions 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":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2018-3846"},{"type":"Red Hat","score":"Important","source":"CVE-2018-3846"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:8","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2018-3846","relation":"self"},{"ecosystem":"Red Hat:openshift:2","package":"cfitsio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2018-3846","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"affected","packages":["cfitsio"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2018-3846"},{"vendor":"Red Hat","product":"Red Hat OpenShift Enterprise 2","cpe":"cpe:/a:redhat:openshift:2","status":"affected","packages":["cfitsio"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2018-3846"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-3846.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2018-3846"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1563913"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2018-3846"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3846"},{"type":"WEB","url":"https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes2.txt"}]}],"references":[{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K46I2MFPCEOGC5LLDXZSWPB3EBPON3KA/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202101-24"},{"type":"WEB","url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2018-0529"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2018-3846"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-3846"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-3846"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-3846.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2018-3846"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1563913"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3846"},{"type":"WEB","url":"https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes2.txt"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2018-3846","url":"https://www.cve.org/CVERecord?id=CVE-2018-3846","license":"CC-BY-4.0","modified_at":"2024-09-17T02:21:57.506Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2018-3846","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3846","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2018-3846","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2018-3846","modified_at":"2026-10-23T18:04:47.726678Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2018-3846","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2018-3846","license":"CC-BY-SA-4.0","modified_at":"2026-04-22T11:54:55.531769Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2018-3846","url":"https://access.redhat.com/security/cve/CVE-2018-3846","license":"CC-BY-4.0","modified_at":"2021-02-17T00:33:18Z","relation":"self"}]}
