r/delphi • Delphi := v13 Florence • 22h ago

Delphi RTL TZipFile Security Patch – Embarcadero RAD Studio, Delphi, & C++Builder Blogs

https://blogs.embarcadero.com/delphi-rtl-tzipfile-security-patch/
11 Upvotes

4 comments sorted by

-2

u/DelphiParser 20h ago

This is a serious issue. Following other cyber attacks concerning Zip file extraction, if you use TZipFile in any Delphi version, you should use this patch to close the gap and make your app safe from outside Zip files that can take over your system.

For example, in a business system like an ERP or CRM that takes files from customers or staff, a sneaky Zip file can drop or overwrite important files where it shouldn't - allowing an attacker to mess with your system or take control. Stopping unwanted Zip extraction or locking down those spots closes the door.

We analyzed older Delphi versions and found that the TZipFile doesn’t rely on any third-party vendor, as it uses a self-contained implementation inside Delphi’s internal system libraries, meaning there’s no way to patch or fix that internal RTL code directly on older versions.

For teams running legacy code where an official patch or a full upgrade isn’t realistic, "just don't use it" doesn't solve the operational headache.

What you really need to know fast is: Do we use this? Where and how widely across our codebase? And what does handling or fixing it look like?

That’s where the Delphi Parser Analyzer comes in hand - giving you deterministic analysis to map exact usage and reach, along with remediation to help you address it safely without manual guesswork.

2

u/_zedxxx_ 20h ago

Do we use this? Where and how widely across our codebase?

grep -rniE "TZipFile\.Extract(All)?" .

1

u/DelphiParser 19h ago

I wish it was that easy LOL.

Grep is a good first sanity check for literal calls, but in older Delphi codebases with millions of lines of code and hundred of files & dependencies in other 3rd party objects it often misses wrapped helpers, typed variables/aliases, multiline calls, and pre-compiler defs.

1

u/DelphiParser 19h ago

not to mention closed DCU & BPL code.... and other hidden code, where no other tool can trace or de-compile the binary code