Skip to content

Commit bc39809

Browse files
committed
Rise awareness of the risks related to build scripts
Partially address #38.
1 parent 0831443 commit bc39809

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ a compatible `configure` script + `make`.
1313
It is based on [cmake-rs](https://github.com/alexcrichton/cmake-rs) and
1414
the API tries to be as similar as possible to it.
1515

16+
## Autotools concern
17+
The generated `configure` script that is often bundled in release tarballs tends to be fairly big, convoluted and at least once has been a vector for
18+
delivering malicious code ([CVE-2024-3094][cve-xz].
19+
20+
It is advised to review `configure.ac` and always regenerate `configure` using [`reconf`][reconf].
21+
22+
[cve-xz]: https://nvd.nist.gov/vuln/detail/CVE-2024-3094
23+
[reconf]: https://docs.rs/autotools/latest/autotools/struct.Config.html#method.reconf
24+
1625
## Cross compiling
1726

1827
### Emscripten

src/lib.rs

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
//! This crate provides the facilities to setup the build system and build native libraries
44
//! that leverage `autotools` or `configure & make` workalike scripts.
55
//!
6+
//! ## Autotools `configure` concern
7+
//! The generated `configure` script that is often bundled in release tarballs tends to be fairly big, convoluted and at least once has been a vector for
8+
//! delivering malicious code ([CVE-2024-3094][cve-xz]).
9+
//!
10+
//! It is advised to review `configure.ac` and always regenerate `configure` using [`reconf`][reconf].
11+
//!
12+
//! [cve-xz]: https://nvd.nist.gov/vuln/detail/CVE-2024-3094
13+
//! [reconf]: https://docs.rs/autotools/latest/autotools/struct.Config.html#method.reconf
14+
//!
615
//! ## Installation
716
//!
817
//! Add to your `Cargo.toml` a build dependency:

0 commit comments

Comments
 (0)