CVE-2018-3849
In the ffghtb function in NASA CFITSIO 3.42, specially crafted images parsed via the library can...
In 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.8
In 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.
- Record
CVE-2018-3849- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
EUVDEUVD-2018-15635
8.8
In 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.
- Record
EUVD-2018-15635- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-qc33-hp9r-f794
8.8
In the ffghtb function in NASA CFITSIO 3.42, specially crafted images parsed via the library can...
In 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.
- Record
GHSA-qc33-hp9r-f794- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
NVD
8.8
In 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.
- Record
CVE-2018-3849- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
8.8
In 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.
- Record
CVE-2018-3849- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-3849
8.8
In 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.
- Record
DEBIAN-CVE-2018-3849- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVOESA-2022-1533
8.8
cfitsio security update
Library for manipulating FITS data files.
Security Fix(es):
In 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)
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.(CVE-2018-3848)
- Record
OESA-2022-1533- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2022-1848
8.8
cfitsio security update
Security Fix(es):
In 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)
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.(CVE-2018-3848)
- Record
OESA-2022-1848- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-3849
8.8
In 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.
- Record
UBUNTU-CVE-2018-3849- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0133 No score
Updated cfitsio packages fix security vulnerability
CVE-2018-3846: Unsafe use of sprintf() can allow a remote unauthenticated attacker to execute arbitrary code CVE-2018-3848: Stack-based buffer overflow in ffghbn() allows for potential code execution CVE-2018-3849: Stack-based buffer overflow in ffghtb() allows for potential code execution
- Record
MGASA-2019-0133- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cfitsioDebian:12 |
before 3.430-1 | 3.430-1 |
cfitsioDebian:13 |
before 3.430-1 | 3.430-1 |
cfitsioDebian:14 |
before 3.430-1 | 3.430-1 |
cfitsioMageia:6 |
before 3.430-1.1.mga6 | 3.430-1.1.mga6 |
cfitsioopenEuler:20.03-LTS-SP1 |
before 3.490-1.oe1 | 3.490-1.oe1 |
cfitsioopenEuler:20.03-LTS-SP2 |
before 3.490-1.oe1 | 3.490-1.oe1 |
cfitsioopenEuler:20.03-LTS-SP3 |
before 3.490-1.oe1 | 3.490-1.oe1 |
cfitsioopenEuler:22.03-LTS |
before 3.490-1.oe2203 | 3.490-1.oe2203 |
cfitsioUbuntu:16.04:LTS |
All versions, plus listed versions 3.370-5 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-3849 is a high vulnerability (CVSS 8.8) in Nasa Cfitsio, published April 16, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.64%, the 89th percentile. Fixed in cfitsio 3.430-1.
References
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K46I2MFPCEOGC5LLDXZSWPB3EBPON3KA
security.gentoo.org/glsa/202101-24
talosintelligence.com/vulnerability_reports/TALOS-2018-0531
nvd.nist.gov/vuln/detail/CVE-2018-3849
lists.fedoraproject.org/archives/list/[email protected]/message/K46I2MFPCEOGC5LLDXZSWPB3EBPON3KA
github.com/advisories/GHSA-qc33-hp9r-f794
Show 11 moreShow less
security-tracker.debian.org/tracker/CVE-2018-3849
advisories.mageia.org/MGASA-2019-0133.html
bugs.mageia.org/show_bug.cgi?id=24586
bugzilla.redhat.com/show_bug.cgi?id=1563915
bugzilla.redhat.com/show_bug.cgi?id=1568184
bugzilla.redhat.com/show_bug.cgi?id=1568189
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1533
nvd.nist.gov/vuln/detail/CVE-2018-3848
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1848
ubuntu.com/security/CVE-2018-3849
cve.org/CVERecord?id=CVE-2018-3849