A malicious or compromised server can make a DCMTK client using bit-preserving C-GET storage mode write files outside the chosen output directory, using both relative (../) paths and absolute paths.
The maintainer was notified of these vulnerabilities and has provided a fix. The fix is included in the latest commits and can be obtained in the following snapshot:
https://github.com/DCMTK/dcmtk/releases/tag/latest
Users are recommended to download the latest GitHub release once it becomes available.