CVE-2017-1000052
Null Byte Injection in Plug.Static
Elixir Plug before v1.0.4, v1.1.7, v1.2.3 and v1.3.2 is vulnerable to null byte injection in the Plug.Static component, which may allow users to bypass filetype restrictions.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
Elixir Plug before v1.0.4, v1.1.7, v1.2.3 and v1.3.2 is vulnerable to null byte injection in the Plug.Static component, which may allow users to bypass filetype restrictions.
- Record
CVE-2017-1000052- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-74
- Updated
- 2026-11-02
CVE List No score
Elixir Plug before v1.0.4, v1.1.7, v1.2.3 and v1.3.2 is vulnerable to null byte injection in the Plug.Static component, which may allow users to bypass filetype restrictions.
- Record
CVE-2017-1000052- Updated
- 2026-11-02
EUVDEUVD-2022-1597 No score
Elixir Plug before v1.0.4, v1.1.7, v1.2.3 and v1.3.2 is vulnerable to null byte injection in the Plug.Static component, which may allow users to bypass filetype restrictions.
- Record
EUVD-2022-1597- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2q6v-32mr-8p8x
7.8
Null Byte Injection in Plug.Static
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.
- Record
GHSA-2q6v-32mr-8p8x- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74
- Updated
- 2026-11-02
OSV
7.8
Elixir Plug before v1.0.4, v1.1.7, v1.2.3 and v1.3.2 is vulnerable to null byte injection in the Plug.Static component, which may allow users to bypass filetype restrictions.
- Record
CVE-2017-1000052- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-2q6v-32mr-8p8x
7.8
Null Byte Injection in Plug.Static
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.
- Record
GHSA-2q6v-32mr-8p8x- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
plugHex |
before 1.0.4 | 1.0.4 |
plugHex |
1.1.0 up to 1.1.7 | 1.1.7 |
plugHex |
1.2.0 up to 1.2.3 | 1.2.3 |
plugHex |
1.3.0 up to 1.3.2 | 1.3.2 |
plugHex |
before 1.0.4, plus listed versions 0.10.00.11.00.11.10.11.20.11.3 Show 26 moreShow less0.12.00.12.10.12.20.13.00.13.10.14.00.4.10.4.20.4.30.4.40.5.00.5.10.5.20.5.30.6.00.7.00.8.00.8.10.8.20.8.30.8.40.9.01.0.01.0.11.0.21.0.3 |
1.0.4 |
plugHex |
1.1.0 up to 1.1.7, plus listed versions 1.1.11.1.21.1.31.1.41.1.51.1.6 |
1.1.7 |
plugHex |
1.2.0 up to 1.2.3, plus listed versions 1.2.11.2.2 |
1.2.3 |
plugHex |
1.3.0 up to 1.3.2, plus listed versions 1.3.1 |
1.3.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-1000052 is a high vulnerability (CVSS 7.8) in Plug Project Plug, published July 13, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.42%, the 36th percentile. Fixed in plug 1.0.4.