Description
A security vulnerability has been detected in OSPG binwalk up to 2.4.3. This vulnerability affects the function read_null_terminated_string of the file src/binwalk/plugins/winceextract.py of the component WinCE Extraction Plugin. Such manipulation of the argument self.file_name leads to path traversal. The attack can only be performed from a local environment. The exploit has been disclosed publicly and may be used. The project maintainer confirms this issue: "I accept the existence of the Path Traversal vulnerability. However, as stated in the Github link, it reached EOL and as a result no actions should be expected." The GitHub repository mentions, that "[u]sers and contributors should migrate to binwalk v3." This vulnerability only affects products that are no longer supported by the maintainer.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OSPG | binwalk | 2.4.0, 2.4.1, 2.4.2, 2.4.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | binwalk | 2.4.3+dfsg1-3 | — |
| Debian 13 | binwalk | 2.4.3+dfsg1-2+deb13u1 | — |
| Debian 12 | binwalk | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | binwalk | No fix yet | — |
| Ubuntu 26.04 LTS | binwalk | No fix yet | — |
| Ubuntu 25.10 | binwalk | No fix yet | — |
| Ubuntu 24.04 LTS | binwalk | No fix yet | — |
| Ubuntu 22.04 LTS | binwalk | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | binwalk | No fix yet | — |
| Ubuntu 18.04 LTS | binwalk | No fix yet | — |
| Ubuntu 16.04 LTS | binwalk | No fix yet | — |
References
- VDB-359781 | OSPG binwalk WinCE Extraction Plugin winceextract.py read_null_terminated_string path traversal vdb-entry technical-description
- VDB-359781 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- Submit #802228 | OSPG binwalk (Python version) <= 2.4.3 Path Traversal third-party-advisory
- https://github.com/dhabaleshwar/Open-Source-Vulnerabilities/blob/main/binwalk_path_traversal.md exploit