Arbitrary Command Injection Affecting rust-cargo-c-debugsource package, versions <0:0.10.19-1.amzn2023.0.4


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.35% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-RUSTCARGOCDEBUGSOURCE-18531843
  • published5 Aug 2026
  • disclosed26 May 2026

Introduced: 26 May 2026

CVE-2026-40034  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 rust-cargo-c-debugsource to version 0:0.10.19-1.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2026-2024.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-cargo-c-debugsource package and not the rust-cargo-c-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

gix-submodule before 0.29.0 (gitoxide before 0.5.21, gix before 0.84.0) incorrectly validates the update field in .gitmodules, allowing attackers to bypass the CommandForbiddenInModulesConfiguration guard when a submodule has been initialized with only partial configuration in .git/config. An attacker can inject arbitrary shell commands via the update field in .gitmodules that will be executed when Submodule::update() is called on a previously-initialized submodule, enabling remote code execution.

CVSS Base Scores

version 3.1