Skip to content
RCE Disclosed report Advanced

verify-release rebuilds from the tarball under verification, enabling pre-check command execution and false OK for a malicious curl release tarball

The verify-release script extracts the tarball it is meant to check and runs its configure script before any integrity check, so a malicious tarball can execute attacker-chosen commands in the verifier's context. The same tarball is then still reported as OK, giving a false sense that the release is authentic.

argareksapatii Follow

Originally disclosed on HackerOne

  • Disclosed after 2 days

Summary:

scripts/verify-release is documented as a way to independently verify a downloaded curl release tarball, but on curl-8.20.0 it extracts the tarball under verification and executes ./configure and ./scripts/dmaketgz before any trust decision is made.

This creates a circular trust failure: attacker-chosen commands from the tarball run in the verifier context before authenticity/integrity is established, and the same malicious tarball can still be reported as curl-8.20.0.tar.gz: OK.

Using a trusted verifier copied from the clean official tag curl-8_20_0, with the tarball as the only attacker-controlled input, I reproduced verifier-side attacker-chosen command execution from a malicious tarball built with curl’s own release tooling.

strace -f -e execve shows execve("./configure", ...) before execve("/usr/bin/sha256sum", ["sha256sum", "-c", "checksum"], ...), while the final result is still curl-8.20.0.tar.gz: OK.

This is a source-package / distribution-integrity issue, not a generic infrastructure issue.

Affected version

Confirmed affected: 8.20.0 source release (curl-8_20_0 tag).

Likely affected: 8.10.0+, because verify-release first shipped in 8.10.0.

Platform used for reproduction: Linux kali 6.18.12+kali-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.18.12-1kali1 (2026-02-25) x86_64 GNU/Linux

Steps To Reproduce:

  1. Use a clean official curl repository checkout and extract the trusted verifier from the clean release tag: git show curl-8_20_0:scripts/verify-release > trusted-verify-release && chmod +x trusted-verify-release

  2. Run the attached PoC poc_verify_release_trust_failure.sh against the clean repo.

  3. The PoC downloads the official curl-8.20.0.tar.gz, confirms that the official tarball and the clean official tag do not contain the payload marker, injects a safe source-level payload into configure.ac, rebuilds a malicious tarball using the official ./scripts/dmaketgz, and then runs the trusted verifier under strace -f -e execve.

  4. Observe the decisive output:

    • official_tar_has_payload=no
    • trusted_tag_has_payload=no
    • pre_auth_exec=yes
    • configure_execve=...execve("./configure", ["./configure", "--without-ssl", "--without-libpsl"], ...)
    • sha256sum_execve=...execve("/usr/bin/sha256sum", ["sha256sum", "-c", "checksum"], ...)
    • curl-8.20.0.tar.gz: OK
  5. Observe the proof file produced by the attacker-chosen payload:

    • uid=1000 gid=1000 user=nobcoder
    • cwd=/tmp/.../curl-8.20.0
    • argv0=./configure
    • HOME=set
    • USER=set
    • SHELL=set
    • PATH=set
    • GNUPGHOME=unset
    • SSH_AUTH_SOCK=set
    • GITHUB_VAR_COUNT=0
  6. Observe that the malicious tarball accepted by the verifier had SHA-256:

    • 378a4c4de88b2cd55b6933faf1b61ba838130c754938226b4ed0f6716559678c

I have attached:

  • the stronger PoC,
  • verifier log,
  • strace exec-order log,
  • proof file,
  • and a ZIP bundle with all evidence.

Impact

Impact:

Summary:

An attacker who can cause a verifier to run curl’s documented verify-release workflow on a malicious release tarball can achieve verifier-side attacker-chosen local command execution before authenticity is established, while the trusted verifier still returns a false successful result (curl-8.20.0.tar.gz: OK).

This breaks the exact release-integrity property curl claims for verify-release: signatures prove origin, while verify-release is presented as the mechanism that should detect a release manager or release host adding extra malicious content to an official release. The current implementation cannot do that because it rebuilds from the tarball being verified.

I did not attempt to access or exfiltrate secrets. My proof only demonstrates execution-context visibility and false verification.

The original report as published on HackerOne, by argareksapatii. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The verifier rebuilds from the very tarball it is supposed to verify, so untrusted code runs before the checksum and signature checks decide whether to trust it.

Impact

An attacker who can get a verifier to run the documented workflow on a malicious tarball can execute chosen local commands in the verifier's context and still receive a false OK result, breaking the release-integrity property the script is meant to provide.

What the attacker needed

Verifier runs verify-release on a malicious tarball; attacker controls the release tarball contents

The fix

The verifier should not rebuild from the tarball under verification, since that is why it cannot detect added malicious content.

How it was found

  1. Extract the trusted verifier script from the clean official release tag.
  2. Run the proof-of-concept script against a clean checkout.
  3. The script downloads the official tarball, confirms it has no payload, injects a payload into the build configuration, and rebuilds a malicious tarball with the official release tooling.
  4. Run the trusted verifier under strace and observe the configure script executing before the checksum command.
  5. Observe the proof file written by the payload and the final OK result for the malicious tarball.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A release tarball is a packaged copy of a program's source code that people download and check before trusting it. The checking script here unpacks the file and runs part of it before it has confirmed the file is genuine, so a tampered package can run its own commands on the checker's machine and still be marked as fine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by argareksapatii

View all

3 more disclosed reports, best first.

More from curl

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.