You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs audit: supply-chain and build gaps (INSTALL, INSTALL-CMAKE, GIT-INFO) #23438
Docs audit: supply-chain and build gaps (INSTALL, INSTALL-CMAKE, GIT-INFO)
Summary
Audit of three curl build-related docs (docs/INSTALL.md,
docs/INSTALL-CMAKE.md, docs/GIT-INFO.md) found critical gaps in
supply-chain verification and CI-ready defaults. For a TLS client with
~10^9 installs, these gaps are not theoretical.
Files affected
docs/INSTALL.md -- build from source (autotools, CMake, vcpkg)
docs/INSTALL-CMAKE.md -- CMake-specific options
docs/GIT-INFO.md -- build from git checkout
Findings
INSTALL.md -- no source verification (critical)
No step for SHA256 checksum or GPG signature of downloaded tarballs.
User can wget from a mirror and tar xzf without verification.
Compromised mirror / MITM / CDN takeover -> backdoored curl.
Proposed fix (3 lines before tar xzf):
sha256sum -c curl-X.Y.Z.tar.gz.sha256
gpg --verify curl-X.Y.Z.tar.gz.asc curl-X.Y.Z.tar.gz
INSTALL-CMAKE.md -- BUILD_TESTING=ON contradicts tests not supported (critical)
Doc states tests do not work with CMake, but BUILD_TESTING=ON is the
default. ctest runs, fails silently, CI gets false green.
Proposed fix: default BUILD_TESTING=OFF until tests are supported;
document ON as explicit opt-in.
Also: CURL_CA_BUNDLE=auto + CURL_CA_FALLBACK=OFF -> silent HTTPS
failure if system CA is missing. Recommend CURL_CA_FALLBACK=ON.
GIT-INFO.md -- no version pinning (important)
No minimum versions for autotools / OpenSSL; no make check step;
no CI sync check with docs/DEPENDENCIES.md.
Proposed fix: state min versions (autoconf >= 2.69, automake >= 1.16,
libtool >= 2.4, OpenSSL >= 3.0.0) + add make check + CI link-linter.
Why it matters
TLS client = trust anchor for billions of connections.
Supply-chain attacks (XZ Utils 2024, event-stream 2018) prove this is
not theoretical.
OpenSSF Gold requires source verification and reproducible builds.
Related
Vishap audits: sess-2026-10-16-111023-03 (INSTALL),
sess-2026-10-16-111023-04 (INSTALL-CMAKE),
sess-2026-10-16-090837-02 (GIT-INFO).
RN-6, SEC-1, FP-1 (critical); RN-1, RN-3, RN-8, RN-11 (important).
Honestly? I'm building an LLM-based docs analyzer (Vishap) and
wanted to test it on a real, mature project. curl was the obvious
choice. I got excited about the output and posted it without
thinking about your time. That was wrong.
We welcome issues and help, but we require that you speak with us as a human and you avoid just dumping tons of text on us. In particular tons of text that could've been stated in two paragraphs.
One concrete finding, short version: docs/INSTALL.md tells users to
download a tarball and tar xzf it, with no SHA256/GPG verification
step. XZ Utils 2024 showed where that leads. The fix is two lines in
the doc. I can send a PR for just this, if you want it. If not, no
worries -- I'll leave it.
Activity
dvddv9 commentedon Oct 16, 2026
Docs audit: supply-chain and build gaps (INSTALL, INSTALL-CMAKE, GIT-INFO)
Summary
Audit of three curl build-related docs (docs/INSTALL.md,
docs/INSTALL-CMAKE.md, docs/GIT-INFO.md) found critical gaps in
supply-chain verification and CI-ready defaults. For a TLS client with
~10^9 installs, these gaps are not theoretical.
Files affected
docs/INSTALL.md -- build from source (autotools, CMake, vcpkg)
docs/INSTALL-CMAKE.md -- CMake-specific options
docs/GIT-INFO.md -- build from git checkout
Findings
INSTALL.md -- no source verification (critical)
No step for SHA256 checksum or GPG signature of downloaded tarballs.
User can wget from a mirror and tar xzf without verification.
Compromised mirror / MITM / CDN takeover -> backdoored curl.
Proposed fix (3 lines before tar xzf):
sha256sum -c curl-X.Y.Z.tar.gz.sha256
gpg --verify curl-X.Y.Z.tar.gz.asc curl-X.Y.Z.tar.gz
INSTALL-CMAKE.md -- BUILD_TESTING=ON contradicts tests not supported (critical)
Doc states tests do not work with CMake, but BUILD_TESTING=ON is the
default. ctest runs, fails silently, CI gets false green.
Proposed fix: default BUILD_TESTING=OFF until tests are supported;
document ON as explicit opt-in.
Also: CURL_CA_BUNDLE=auto + CURL_CA_FALLBACK=OFF -> silent HTTPS
failure if system CA is missing. Recommend CURL_CA_FALLBACK=ON.
GIT-INFO.md -- no version pinning (important)
No minimum versions for autotools / OpenSSL; no make check step;
no CI sync check with docs/DEPENDENCIES.md.
Proposed fix: state min versions (autoconf >= 2.69, automake >= 1.16,
libtool >= 2.4, OpenSSL >= 3.0.0) + add make check + CI link-linter.
Why it matters
TLS client = trust anchor for billions of connections.
Supply-chain attacks (XZ Utils 2024, event-stream 2018) prove this is
not theoretical.
OpenSSF Gold requires source verification and reproducible builds.
Related
Vishap audits: sess-2026-10-16-111023-03 (INSTALL),
sess-2026-10-16-111023-04 (INSTALL-CMAKE),
sess-2026-10-16-090837-02 (GIT-INFO).
RN-6, SEC-1, FP-1 (critical); RN-1, RN-3, RN-8, RN-11 (important).
bagder commentedon Oct 16, 2026
What exactly is the point with this?
We insist you report and speak as a human.
dvddv9 commentedon Oct 16, 2026
Honestly? I'm building an LLM-based docs analyzer (Vishap) and
wanted to test it on a real, mature project. curl was the obvious
choice. I got excited about the output and posted it without
thinking about your time. That was wrong.
I'll close the issues and leave you alone.
-- David
bagder commentedon Oct 16, 2026
We welcome issues and help, but we require that you speak with us as a human and you avoid just dumping tons of text on us. In particular tons of text that could've been stated in two paragraphs.
dvddv9 commentedon Oct 16, 2026
Thanks, Daniel. Fair.
One concrete finding, short version: docs/INSTALL.md tells users to
download a tarball and
tar xzfit, with no SHA256/GPG verificationstep. XZ Utils 2024 showed where that leads. The fix is two lines in
the doc. I can send a PR for just this, if you want it. If not, no
worries -- I'll leave it.
Thanks for curl, and sorry for the earlier noise.
-- David
bagder commentedon Oct 16, 2026
Please, send a PR if you have improvements. I think we should encourage verifying the tarball before using it.
(In the XZ case however it was the maintainer shipping the backdoored release so checking the signature/checksum did not help.)
INSTALL-CMAKE.md: update 'Testing' section