Bug 1563913 (CVE-2018-3846)

Summary: CVE-2018-3846 cfitsio: Unsafe use of sprintf() can allow a remote unauthenticated attacker to execute arbitrary code
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abhgupta, carnil, ccoleman, dedgar, dmcphers, jgoulding, orion, rhel8-maint, sergio.pasra, tiwillia
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cfitsio 3.43 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 21:17:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1563914, 1563915, 1563916, 1563917    
Bug Blocks: 1563918    

Description Sam Fowler 2018-04-05 03:42:17 UTC
CFITSIO before version 3.43 unsafely uses sprintf() in multiple files without checking input size. A remote unauthenticated attacker could exploit this to execute arbitrary code.


External References:

https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes2.txt


Additional References:

https://github.com/astropy/astropy/pull/7274

Comment 1 Sam Fowler 2018-04-05 03:42:46 UTC
Created cfitsio tracking bugs for this issue:

Affects: fedora-all [bug 1563915]
Affects: epel-all [bug 1563916]

Comment 3 Jason Shepherd 2018-04-06 06:32:43 UTC
Openshift Enterprise 2 is out of support scope. Marking it as wont fix.

ref: https://access.redhat.com/support/policy/updates/openshift

Comment 4 Salvatore Bonaccorso 2018-04-16 20:39:57 UTC
The CVE-2018-1000166 is possibly a duplicate of CVE-2018-3846, CVE-2018-3848 and CVE-2018-3849.

Comment 5 Sam Fowler 2018-04-17 04:18:15 UTC
(In reply to Salvatore Bonaccorso from comment #4)
> The CVE-2018-1000166 is possibly a duplicate of CVE-2018-3846, CVE-2018-3848
> and CVE-2018-3849.

Looks like you are correct. Changed CVE-2018-1000166 to CVE-2018-3846 and filed separate BZ for CVE-2018-3848 and CVE-2018-3849.

Comment 6 Product Security DevOps Team 2020-05-20 21:17:17 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-3846