VDB
Sign up
HIGH7.8

GHSA-2q6v-32mr-8p8x

Null Byte Injection in Plug.Static

Quick fix

GHSA-2q6v-32mr-8p8x — plug: upgrade to the fixed version with the command below.

mix deps.update plug

Details

Plug.Static is used for serving static assets, and is vulnerable to null byte injection. If file upload functionality is provided, this can allow users to bypass filetype restrictions. We recommend all applications that provide file upload functionality and serve those uploaded files locally with Plug.Static to upgrade immediately or include the fix below. If uploaded files are rather stored and served from S3 or any other cloud storage, you are not affected.

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