VDB
Sign up
HIGH8.1

GHSA-5v4m-c73v-c7gq

Arbitrary Code Execution in Cookie Serialization

Quick fix

GHSA-5v4m-c73v-c7gq — plug: upgrade to the fixed version with the command below.

mix deps.update plug

Details

The default serialization used by Plug session may result in code execution in certain situations. Keep in mind, however, the session cookie is signed and this attack can only be exploited if the attacker has access to your secret key as well as your signing/encryption salts. We recommend users to change their secret key base and salts if they suspect they have been leaked, regardless of this vulnerability.

Are you affected?

Enter the version of the package you're using.

Affected packages

Hex/plug
Introduced in: 0Fixed in: 1.0.4
Fixmix deps.update plug
Hex/plug
Introduced in: 1.1.0Fixed in: 1.1.7
Fixmix deps.update plug
Hex/plug
Introduced in: 1.2.0Fixed in: 1.2.3
Fixmix deps.update plug
Hex/plug
Introduced in: 1.3.0Fixed in: 1.3.2
Fixmix deps.update plug

References