FiveM crash on startup – legitimacy.dll / Invalid CBC padding

What is the issue you’re having?

FiveM crash on startup – legitimacy.dll / Invalid CBC padding its crashing every time

What have you tried already to fix the issue?

Reinstall / some stuff from YouTube

What server did you get this issue on?

it happend the whole day i joined German Servers then i went to sleep and then i got it

Error screenshot(s)

Windows version

Windows 10

System specifications

i uploaded in Logs file

Antivirus software

Windows Defender but its deactivated

CitizenFX crash zip file (‘Save information’ on a crash)

Log files

Additional comments

Pls help me i tryed everything

3 Likes

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Many people (but not everyone) have a problem with crashing on startup, I think fivem should look into the problem.

8 Likes

Switch to the Canary build for now and see if that fixes it

cant even load it to do that.

Im getting the same issue right now. Not even sure how to fix. It was working just fine last night.

5 Likes

Mine was just working fine an hour ago and then I come back and its not working.

3 Likes

which one is the canary build

which canary build can you show me


same problem here. I’ve already changed channels, reinstalled fivem, verified the integrity of the steam game files

2 Likes

So i got mine to work again but unfortunately I had to factory reset my pc and reinstall windows 11 from a usb flash drive. I did that without formatting my ssd I use for all my games and it works now. It sucks I had to go that far but it is working now for sure.

Does anyone able to fix this issue?

Same here

[Window Title]
FiveM

[Main Instruction]
Exception, unhandled!

[Content]
An unhandled exception (of type Botan::Decoding_Error) caused FiveM to stop working. A crash report is being uploaded to the FiveM developers.

Exception details: Invalid CBC padding
Stack trace:
KERNELBASE.dll!RaiseException (0x6c)
VCRUNTIME140.dll!_CxxThrowException (0x8f) (throw.cpp:74)
legitimacy.dll+6B9A7
legitimacy.dll!GetAccountID (0x153db)
legitimacy.dll!GetAccountID (0x1e417)
legitimacy.dll!?AuthenticateDiscourse@legitimacy@cfx@@YAXPEBD0P6AX_N0_K@Z@Z (0x5e42)
CoreRT.dll!EarlyMode_Init (0x206) (EarlyMode.Win32.cpp:37)

[^] Hide details [Save information] [Close]

[Expanded Information]
Crash signature: kernelbase.dll+5FFBC
Report ID: si-0702076d5bfc42de88bd826e1315ec54
You can press Ctrl-C to copy this message and paste it elsewhere.

OK I FOUND THE FIX. YALL BETTER KISS MY TIP FOR THIS ONE. FOLLOW THE STEPS.

  • Fully Close FiveM & Delete Cache*
  • Make sure FiveM and all background processes are closed (check Task Manager).

DO CTRL + R AND TYPE THIS IN BELOW
Type this : %localappdata%
AND DELETE BOTH DigitalEntitlements & CitizenFX Folders

YOUR WELCOME

Join my cord: discord.gg/nylo

18 Likes

This works. Ty

can we get a fix already?

dont work

dont work you cooked

nah its still f@$ked - give a legit fix



I get either this crash or the second one. The second one is more common. Tried everything from removing latest windows updates to reinstalling them &updating drivers, reinstalling Fivem, checking integrity… I hope CFX looks into this… too many people got this issue. Must be on their side.