CFITSIO through version 4.7.0 contains an out-of-bounds write vulnerability in the ffgcls2() function that processes variable-length string columns. This flaw allows an attacker to supply a crafted FITS file that overflows a fixed 28,800-byte stack buffer and the caller's string array, potentially enabling arbitrary code execution. The vulnerability is addressed in version 4.3.0-3.oe2403sp3.