Skip to content

chore(libdd-data-pipeline): solve cargo deny [APMSP-3884] - #2318

Open
Eldolfin wants to merge 3 commits into
mainfrom
oscarld/solve-cargo-deny-on-libdd-data-pipeline
Open

chore(libdd-data-pipeline): solve cargo deny [APMSP-3884]#2318
Eldolfin wants to merge 3 commits into
mainfrom
oscarld/solve-cargo-deny-on-libdd-data-pipeline

Conversation

@Eldolfin

@Eldolfin Eldolfin commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Solve cargo deny errors in libdd-data-pipeline by updating some dependencies.

Motivation

What inspired you to submit this pull request?

Additional Notes

Sadly, updating time requires a bump in our MSRV from 1.87.0 to 1.88.0, this can be done in a separate PR.

How to test the change?

Describe here in detail how the change can be validated.

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Aug 5, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 75.31% (+0.28%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 83d4d85 | Docs | Datadog PR Page | Give us feedback!

We cannot update `time` before bumping our MSRV.

Also we're not affected by this because there is no user provided input
@dd-octo-sts

dd-octo-sts Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 8.07 MB 8.07 MB 0% (0 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 87.79 MB 87.80 MB +.01% (+9.59 KB) 🔍
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 99.03 MB 99.02 MB -0% (-7.13 KB) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.88 MB 10.88 MB -0% (-448 B) 👌
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 26.22 MB 26.24 MB +.07% (+20.50 KB) 🔍
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 89.92 KB 89.92 KB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 188.69 MB 188.76 MB +.03% (+64.00 KB) 🔍
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 985.29 MB 984.37 MB --.09% (-945.32 KB) 💪
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 8.56 MB 8.56 MB --.03% (-3.00 KB) 💪
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 89.92 KB 89.92 KB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 25.22 MB 25.20 MB --.06% (-16.00 KB) 💪
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 50.23 MB 50.02 MB --.41% (-211.42 KB) 💪
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 22.85 MB 22.86 MB +.05% (+13.50 KB) 🔍
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 91.33 KB 91.33 KB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 193.48 MB 193.57 MB +.04% (+96.00 KB) 🔍
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 974.09 MB 974.12 MB +0% (+36.26 KB) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 6.61 MB 6.61 MB +0% (+512 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 91.33 KB 91.33 KB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 27.12 MB 27.12 MB +.02% (+8.00 KB) 🔍
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 47.82 MB 47.63 MB --.39% (-192.12 KB) 💪
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 78.32 MB 78.33 MB +.01% (+11.79 KB) 🔍
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 9.01 MB 9.01 MB 0% (0 B) 👌
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 93.81 MB 93.81 MB +0% (+3.50 KB) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.97 MB 10.97 MB +0% (+256 B) 👌

@pr-commenter

pr-commenter Bot commented Aug 5, 2026

Copy link
Copy Markdown

Benchmarks

Comparison

Benchmark execution time: 2026-08-05 13:23:40

Comparing candidate commit 2021264 in PR branch oscarld/solve-cargo-deny-on-libdd-data-pipeline with baseline commit 94f123f in branch main.

Found 9 performance improvements and 21 performance regressions! Performance is the same for 110 metrics, 0 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:msgpack_decoder::v05/low_sharing/10000

  • 🟩 execution_time [-857.572µs; -837.724µs] or [-4.790%; -4.679%]
  • 🟩 throughput [+27440.649op/s; +28088.417op/s] or [+4.913%; +5.029%]

scenario:msgpack_decoder::v05/low_sharing/2000

  • 🟩 execution_time [-145.698µs; -143.987µs] or [-4.062%; -4.014%]
  • 🟩 throughput [+23320.657op/s; +23595.041op/s] or [+4.183%; +4.232%]

scenario:normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo...

  • 🟥 execution_time [+19.049µs; +19.238µs] or [+10.229%; +10.331%]
  • 🟥 throughput [-502887.634op/s; -498229.123op/s] or [-9.365%; -9.278%]

scenario:normalization/normalize_name/normalize_name/bad-name

  • 🟥 execution_time [+1.880µs; +1.983µs] or [+10.889%; +11.485%]
  • 🟥 throughput [-5975936.940op/s; -5674315.747op/s] or [-10.315%; -9.794%]

scenario:normalization/normalize_name/normalize_name/good

  • 🟥 execution_time [+1.318µs; +1.377µs] or [+13.237%; +13.834%]
  • 🟥 throughput [-12293105.562op/s; -11721287.394op/s] or [-12.232%; -11.663%]

scenario:normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000...

  • 🟥 execution_time [+35.995µs; +36.271µs] or [+7.210%; +7.265%]
  • 🟥 throughput [-135713.579op/s; -134676.586op/s] or [-6.775%; -6.723%]

scenario:normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters

  • 🟥 execution_time [+19.196µs; +19.340µs] or [+11.248%; +11.333%]
  • 🟥 throughput [-596629.275op/s; -592294.791op/s] or [-10.182%; -10.108%]

scenario:normalization/normalize_service/normalize_service/test_ASCII

  • 🟩 execution_time [-2.812µs; -2.770µs] or [-5.813%; -5.726%]
  • 🟩 throughput [+1256227.858op/s; +1275750.020op/s] or [+6.076%; +6.171%]

scenario:vec_map/as_deduped_map/already_deduped/16

  • 🟩 execution_time [-9.883ns; -9.848ns] or [-29.595%; -29.491%]

scenario:vec_map/as_deduped_map/already_deduped/8

  • 🟩 execution_time [-1.844ns; -1.811ns] or [-11.747%; -11.535%]

scenario:vec_map/as_deduped_map/needs_dedup_1_in_10/8

  • 🟥 execution_time [+16.591ns; +16.800ns] or [+4.629%; +4.687%]

scenario:vec_map/as_deduped_map/needs_dedup_1_in_2/8

  • 🟥 execution_time [+19.876ns; +20.298ns] or [+4.202%; +4.291%]

scenario:vec_map/as_deduped_map/needs_dedup_1_in_4/8

  • 🟥 execution_time [+19.436ns; +19.646ns] or [+4.877%; +4.930%]

scenario:vec_map/contains_key/16

  • 🟥 execution_time [+17.504ns; +17.935ns] or [+7.587%; +7.773%]
  • 🟥 throughput [-5005549.648op/s; -4886464.643op/s] or [-7.218%; -7.046%]

scenario:vec_map/get_miss/16

  • 🟥 execution_time [+0.576ns; +0.788ns] or [+6.539%; +8.941%]

scenario:vec_map/get_miss/64

  • 🟩 execution_time [-19.129ns; -19.017ns] or [-40.059%; -39.825%]

scenario:vec_map/get_miss/8

  • 🟥 execution_time [+2.245ns; +2.262ns] or [+42.730%; +43.058%]

scenario:vec_map/get_mut/128

  • 🟥 execution_time [+1.384µs; +1.485µs] or [+9.606%; +10.305%]
  • 🟥 throughput [-831817.448op/s; -773597.986op/s] or [-9.363%; -8.708%]

scenario:vec_map/get_mut/64

  • 🟥 execution_time [+380.586ns; +420.937ns] or [+9.699%; +10.727%]
  • 🟥 throughput [-1590218.137op/s; -1435745.885op/s] or [-9.744%; -8.797%]

Benchmark execution time: 2026-08-05 13:32:53

Comparing candidate commit 2021264 in PR branch oscarld/solve-cargo-deny-on-libdd-data-pipeline with baseline commit 94f123f in branch main.

Found 21 performance improvements and 8 performance regressions! Performance is the same for 139 metrics, 10 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:alloc_free/system/16

  • 🟥 execution_time [+1.414ns; +1.458ns] or [+9.897%; +10.204%]

scenario:alloc_free/system/256

  • 🟥 execution_time [+1.305ns; +1.343ns] or [+9.056%; +9.321%]

scenario:alloc_free/system/4096

  • 🟥 execution_time [+13.202ns; +13.389ns] or [+14.134%; +14.334%]

scenario:alloc_free/system/64

  • 🟥 execution_time [+1.394ns; +1.433ns] or [+9.766%; +10.040%]

scenario:credit_card/is_card_number/ 3782-8224-6310-005

  • 🟩 execution_time [-6.293µs; -6.121µs] or [-7.769%; -7.557%]
  • 🟩 throughput [+1010226.773op/s; +1039678.751op/s] or [+8.183%; +8.422%]

scenario:credit_card/is_card_number/ 378282246310005

  • 🟩 execution_time [-6.012µs; -5.922µs] or [-8.148%; -8.026%]
  • 🟩 throughput [+1183974.292op/s; +1200755.011op/s] or [+8.735%; +8.859%]

scenario:credit_card/is_card_number/378282246310005

  • 🟩 execution_time [-6.161µs; -6.094µs] or [-8.711%; -8.617%]
  • 🟩 throughput [+1334367.420op/s; +1347820.949op/s] or [+9.437%; +9.532%]

scenario:credit_card/is_card_number/37828224631000521389798

  • 🟩 execution_time [-7.943µs; -7.899µs] or [-14.926%; -14.842%]
  • 🟩 throughput [+3275861.935op/s; +3296088.006op/s] or [+17.434%; +17.541%]

scenario:credit_card/is_card_number/x371413321323331

  • 🟩 execution_time [-410.300ns; -407.580ns] or [-6.358%; -6.316%]
  • 🟩 throughput [+10449259.046op/s; +10517606.375op/s] or [+6.743%; +6.787%]

scenario:credit_card/is_card_number_no_luhn/ 378282246310005

  • 🟩 execution_time [-5.383µs; -5.343µs] or [-9.208%; -9.140%]
  • 🟩 throughput [+1721637.623op/s; +1733524.799op/s] or [+10.065%; +10.135%]

scenario:credit_card/is_card_number_no_luhn/378282246310005

  • 🟩 execution_time [-5.729µs; -5.681µs] or [-10.307%; -10.222%]
  • 🟩 throughput [+2050129.321op/s; +2065899.906op/s] or [+11.394%; +11.482%]

scenario:credit_card/is_card_number_no_luhn/37828224631000521389798

  • 🟩 execution_time [-7.932µs; -7.892µs] or [-14.909%; -14.833%]
  • 🟩 throughput [+3273925.844op/s; +3293122.747op/s] or [+17.419%; +17.521%]

scenario:credit_card/is_card_number_no_luhn/x371413321323331

  • 🟩 execution_time [-410.703ns; -408.028ns] or [-6.365%; -6.324%]
  • 🟩 throughput [+10464949.815op/s; +10532200.237op/s] or [+6.752%; +6.796%]

scenario:glob_matcher/ascii_case_insensitive_match/wall_time

  • 🟥 execution_time [+1.812ns; +1.876ns] or [+6.584%; +6.815%]

scenario:glob_matcher/ascii_exact_match/wall_time

  • 🟥 execution_time [+1.793ns; +1.860ns] or [+6.512%; +6.756%]

scenario:glob_matcher/ascii_exact_miss/wall_time

  • 🟥 execution_time [+2.277ns; +2.316ns] or [+18.253%; +18.569%]

scenario:no_profiler/short_circuit/4096

  • 🟩 execution_time [-5.653ns; -5.511ns] or [-5.685%; -5.542%]

scenario:profiler_attached/fast_path_system/4096

  • 🟩 execution_time [-7.296ns; -7.161ns] or [-6.872%; -6.745%]

scenario:profiler_attached/slow_path_system/4096

  • 🟥 execution_time [+42.062ns; +42.294ns] or [+29.092%; +29.253%]

scenario:sql/obfuscate_sql_string

  • 🟩 execution_time [-18.802µs; -18.559µs] or [-6.141%; -6.061%]

Candidate

Omitted due to size.

Baseline

Omitted due to size.

@Eldolfin
Eldolfin marked this pull request as ready for review August 5, 2026 14:58
@Eldolfin
Eldolfin requested a review from a team as a code owner August 5, 2026 14:58
@Eldolfin

Eldolfin commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 202126436a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.lock
[[package]]
name = "rand"
version = "0.8.5"
version = "0.8.7"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Raise the rand lower bounds in Cargo.toml

Updating the lockfile to rand 0.8.7 fixes RUSTSEC-2026-0097 only for this workspace checkout; libdd-data-pipeline and the other publishable crates still declare rand = "0.8.5"/"0.8" in their manifests, so consumer lockfiles that already contain 0.8.5 or minimal-version builds can continue using the affected version. Cargo documents that Cargo.lock “does not affect the consumers of your package, only Cargo.toml does” (https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control), and RustSec marks the 0.8 line patched only from 0.8.6 (https://rustsec.org/advisories/RUSTSEC-2026-0097.html); please raise the manifest lower bounds to at least 0.8.6/0.8.7 where rand is a dependency.

Useful? React with 👍 / 👎.

Comment thread Cargo.lock
[[package]]
name = "rand"
version = "0.8.5"
version = "0.8.7"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Raise the rand lower bounds in Cargo.toml

Updating the lockfile to rand 0.8.7 fixes RUSTSEC-2026-0097 only for this workspace checkout; libdd-data-pipeline and the other publishable crates still declare rand = "0.8.5"/"0.8" in their manifests, so consumer lockfiles that already contain 0.8.5 or minimal-version builds can continue using the affected version. Cargo documents that Cargo.lock “does not affect the consumers of your package, only Cargo.toml does that” (https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control), and RustSec marks the 0.8 line patched only from 0.8.6 (https://rustsec.org/advisories/RUSTSEC-2026-0097.html); please raise the manifest lower bounds to at least 0.8.6/0.8.7 where rand is a dependency.

Useful? React with 👍 / 👎.

@Eldolfin
Eldolfin requested review from a team as code owners August 6, 2026 12:58
@Eldolfin
Eldolfin requested review from mabdinur and removed request for a team August 6, 2026 12:58
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

📚 Documentation Check Results

⚠️ 8174 documentation warning(s) found

📦 datadog-sidecar - 2835 warning(s)

📦 libdd-common - 169 warning(s)

📦 libdd-crashtracker - 1104 warning(s)

📦 libdd-data-pipeline - 1235 warning(s)

📦 libdd-ddsketch - 8 warning(s)

📦 libdd-library-config - 265 warning(s)

📦 libdd-profiling - 650 warning(s)

📦 libdd-trace-normalization - 244 warning(s)

📦 libdd-trace-stats - 901 warning(s)

📦 libdd-trace-utils - 763 warning(s)


Updated: 2026-08-06 13:02:17 UTC | Commit: 1783494 | missing-docs job results

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

🔒 Cargo Deny Results

⚠️ 5 issue(s) found, showing only errors (advisories, bans, sources)

📦 datadog-sidecar - 1 error(s)

Show output
error[unmaintained]: Bincode is unmaintained
   ┌─ /home/runner/work/libdatadog/libdatadog/Cargo.lock:37:1
   │
37 │ bincode 1.3.3 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmaintained advisory detected
   │
   ├ ID: RUSTSEC-2025-0141
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2025-0141
   ├ Due to a doxxing and harassment incident, the bincode team has taken the decision to cease development permanently.
     
     The team considers version 1.3.3 a complete version of bincode that is not in need of any updates.
     
     ## Alternatives to consider
     
     * [wincode](https://crates.io/crates/wincode)
     * [postcard](https://crates.io/crates/postcard)
     * [bitcode](https://crates.io/crates/bitcode)
     * [rkyv](https://crates.io/crates/rkyv)
   ├ Announcement: https://git.sr.ht/~stygianentity/bincode/tree/v3.0/item/README.md
   ├ Solution: No safe upgrade is available!
   ├ bincode v1.3.3
     ├── datadog-ipc v0.1.0
     │   └── datadog-sidecar v0.0.1
     └── datadog-sidecar v0.0.1 (*)

advisories FAILED, bans ok, sources ok

📦 libdd-common - 2 error(s)

Show output
error[vulnerability]: NSEC3 closest-encloser proof validation enters unbounded loop on cross-zone responses
   ┌─ /home/runner/work/libdatadog/libdatadog/Cargo.lock:63:1
   │
63 │ hickory-proto 0.25.2 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ security vulnerability detected
   │
   ├ ID: RUSTSEC-2026-0118
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2026-0118
   ├ The NSEC3 closest-encloser proof validation in `hickory-proto`'s
     `DnssecDnsHandle` walks from the QNAME up to the SOA owner name, building a
     list of candidate encloser names. The iterator used assumes the
     QNAME is a descendant of the SOA owner, terminating only when the current
     candidate equals the SOA name. When the SOA in a response's authority section
     is not an ancestor of the QNAME, the loop stalls at the DNS root and never
     terminates, repeatedly calling `Name::base_name()` and pushing newly allocated
     `Name` and hashed-name entries into the candidate `Vec`.
     
     The bug is reachable by any caller of `DnssecDnsHandle` — including the
     resolver, recursor, and client — when built with the `dnssec-ring` or
     `dnssec-aws-lc-rs` feature and configured to perform DNSSEC validation. It is
     triggered while validating a NoData or NXDomain response whose authority
     section contains an SOA record from a zone other than an ancestor of the
     QNAME, on a code path that requires NSEC3 closest-encloser proof. In practice
     this can be reached through an insecure CNAME chain that crosses zone
     boundaries into a DNSSEC-signed zone returning NoData, but the minimum
     condition is just a mismatched SOA owner on a response requiring NSEC3
     validation.
     
     A `debug_assert_ne!(name, Name::root())` guards the loop body, so debug builds
     abort with a panic on the first iteration past the root. Release builds
     compile the assertion out and run the loop unbounded, allocating until the
     process exhausts available memory (OOM). A reachable upstream attacker who
     can return such a response can therefore crash a debug-built validator or
     exhaust memory on a release-built one.
     
     The affected code was migrated from `hickory-proto` to `hickory-net` as part of
     the 0.26.0 release. The `hickory-proto` 0.26.x release no longer offers
     `DnssecDnsHandle` and so we recommend all affected users update to `hickory-net`
     0.26.1 when the implementation of that type is required.
   ├ Announcement: https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-3v94-mw7p-v465
   ├ Solution: No safe upgrade is available!
   ├ hickory-proto v0.25.2
     └── hickory-resolver v0.25.2
         └── reqwest v0.13.2
             └── libdd-common v5.1.0

error[vulnerability]: CPU exhaustion during message encoding due to O(n²) name compression
   ┌─ /home/runner/work/libdatadog/libdatadog/Cargo.lock:63:1
   │
63 │ hickory-proto 0.25.2 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ security vulnerability detected
   │
   ├ ID: RUSTSEC-2026-0119
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2026-0119
   ├ During message encoding, `hickory-proto`'s `BinEncoder` stores pointers to
     labels that are candidates for name compression in a `Vec<(usize, Vec<u8>)>`.
     The name compression logic then searches for matches with a linear scan.
     
     A malicious message with many records can both introduce many candidate labels,
     and invoke this linear scan many times. This can amplify CPU exhaustion in DoS
     attacks.
     
     This is similar to
     [CVE-2024-8508](https://www.nlnetlabs.nl/downloads/unbound/CVE-2024-8508.txt).
     
     We recommend all affected users update to `hickory-proto` 0.26.1 for the fix.
   ├ Announcement: https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-q2qq-hmj6-3wpp
   ├ Solution: Upgrade to >=0.26.1 (try `cargo update -p hickory-proto`)
   ├ hickory-proto v0.25.2
     └── hickory-resolver v0.25.2
         └── reqwest v0.13.2
             └── libdd-common v5.1.0

advisories FAILED, bans ok, sources ok

📦 libdd-crashtracker - ✅ No issues

📦 libdd-data-pipeline - ✅ No issues

📦 libdd-ddsketch - ✅ No issues

📦 libdd-library-config - ✅ No issues

📦 libdd-profiling - 2 error(s)

Show output
error[vulnerability]: NSEC3 closest-encloser proof validation enters unbounded loop on cross-zone responses
   ┌─ /home/runner/work/libdatadog/libdatadog/Cargo.lock:78:1
   │
78 │ hickory-proto 0.25.2 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ security vulnerability detected
   │
   ├ ID: RUSTSEC-2026-0118
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2026-0118
   ├ The NSEC3 closest-encloser proof validation in `hickory-proto`'s
     `DnssecDnsHandle` walks from the QNAME up to the SOA owner name, building a
     list of candidate encloser names. The iterator used assumes the
     QNAME is a descendant of the SOA owner, terminating only when the current
     candidate equals the SOA name. When the SOA in a response's authority section
     is not an ancestor of the QNAME, the loop stalls at the DNS root and never
     terminates, repeatedly calling `Name::base_name()` and pushing newly allocated
     `Name` and hashed-name entries into the candidate `Vec`.
     
     The bug is reachable by any caller of `DnssecDnsHandle` — including the
     resolver, recursor, and client — when built with the `dnssec-ring` or
     `dnssec-aws-lc-rs` feature and configured to perform DNSSEC validation. It is
     triggered while validating a NoData or NXDomain response whose authority
     section contains an SOA record from a zone other than an ancestor of the
     QNAME, on a code path that requires NSEC3 closest-encloser proof. In practice
     this can be reached through an insecure CNAME chain that crosses zone
     boundaries into a DNSSEC-signed zone returning NoData, but the minimum
     condition is just a mismatched SOA owner on a response requiring NSEC3
     validation.
     
     A `debug_assert_ne!(name, Name::root())` guards the loop body, so debug builds
     abort with a panic on the first iteration past the root. Release builds
     compile the assertion out and run the loop unbounded, allocating until the
     process exhausts available memory (OOM). A reachable upstream attacker who
     can return such a response can therefore crash a debug-built validator or
     exhaust memory on a release-built one.
     
     The affected code was migrated from `hickory-proto` to `hickory-net` as part of
     the 0.26.0 release. The `hickory-proto` 0.26.x release no longer offers
     `DnssecDnsHandle` and so we recommend all affected users update to `hickory-net`
     0.26.1 when the implementation of that type is required.
   ├ Announcement: https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-3v94-mw7p-v465
   ├ Solution: No safe upgrade is available!
   ├ hickory-proto v0.25.2
     └── hickory-resolver v0.25.2
         └── reqwest v0.13.2
             ├── libdd-common v5.1.0
             │   └── libdd-profiling v1.0.0
             │       └── (dev) libdd-profiling v1.0.0 (*)
             └── libdd-profiling v1.0.0 (*)

error[vulnerability]: CPU exhaustion during message encoding due to O(n²) name compression
   ┌─ /home/runner/work/libdatadog/libdatadog/Cargo.lock:78:1
   │
78 │ hickory-proto 0.25.2 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ security vulnerability detected
   │
   ├ ID: RUSTSEC-2026-0119
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2026-0119
   ├ During message encoding, `hickory-proto`'s `BinEncoder` stores pointers to
     labels that are candidates for name compression in a `Vec<(usize, Vec<u8>)>`.
     The name compression logic then searches for matches with a linear scan.
     
     A malicious message with many records can both introduce many candidate labels,
     and invoke this linear scan many times. This can amplify CPU exhaustion in DoS
     attacks.
     
     This is similar to
     [CVE-2024-8508](https://www.nlnetlabs.nl/downloads/unbound/CVE-2024-8508.txt).
     
     We recommend all affected users update to `hickory-proto` 0.26.1 for the fix.
   ├ Announcement: https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-q2qq-hmj6-3wpp
   ├ Solution: Upgrade to >=0.26.1 (try `cargo update -p hickory-proto`)
   ├ hickory-proto v0.25.2
     └── hickory-resolver v0.25.2
         └── reqwest v0.13.2
             ├── libdd-common v5.1.0
             │   └── libdd-profiling v1.0.0
             │       └── (dev) libdd-profiling v1.0.0 (*)
             └── libdd-profiling v1.0.0 (*)

advisories FAILED, bans ok, sources ok

📦 libdd-trace-normalization - ✅ No issues

📦 libdd-trace-stats - ✅ No issues

📦 libdd-trace-utils - ✅ No issues


Updated: 2026-08-06 13:02:47 UTC | Commit: 1783494 | dependency-check job results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants