CVE-2026-10174
Pre-commit Hook Bypass in Aider-AI Aider
Publication date: 2026-05-31
Last updated on: 2026-05-31
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| aider-ai | aider | 0.86.3 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-693 | The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in Aider-AI Aider version 0.86.3, specifically in the Pre-commit Hook Handler component within the aider/args.py file. The issue arises because the argument git-commit-verify is manipulated or set to False by default, causing Aider to bypass pre-commit hooks by appending the --no-verify flag during git commits. This means that security checks normally enforced by pre-commit hooks, such as secret scanning and policy enforcement, are skipped.
The vulnerability can be exploited remotely, and the exploit is publicly available. The project was informed early but has not yet responded to the issue.
How can this vulnerability impact me? :
This vulnerability allows git commits to bypass important security controls enforced by pre-commit hooks. As a result, malicious or unverified code changes can be committed without triggering checks such as secret scanning, policy enforcement, linting, or testing.
This can lead to the introduction of sensitive information leaks, insecure code, or policy violations into the codebase, potentially compromising the security and integrity of your software projects.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by checking if git commits performed through Aider-AI are bypassing pre-commit hooks using the --no-verify flag. Since Aider defaults to disabling git-commit-verify, commits may skip security checks.
To detect this on your system, you can monitor git commit commands for the presence of the --no-verify flag or inspect the aider/args.py configuration to see if git-commit-verify is set to False.
- Run git commit commands manually and verify if pre-commit hooks are triggered or skipped.
- Check the aider/args.py file for the git-commit-verify setting.
- Use command line to search for --no-verify usage in git commit logs or scripts, for example: `git log --grep='--no-verify'` or monitor git commands in your environment.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should ensure that Aider respects pre-commit hooks by enabling the git-commit-verify setting.
Specifically, configure or modify the aider/args.py file to set git-commit-verify to True so that the --no-verify flag is not appended during git commits.
Additionally, review and enforce pre-commit hooks manually or through other tools to ensure security checks like secret scanning and policy enforcement are not bypassed.
Until an official fix or update is released, avoid using Aider for commits that require strict pre-commit hook enforcement or disable the feature that bypasses these hooks.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
This vulnerability allows git commits to bypass pre-commit hooks by default, due to the --no-verify flag being enabled automatically. This bypass disables security controls such as secret scanning and policy enforcement that pre-commit hooks normally enforce.
By skipping these security checks, organizations using Aider-AI Aider 0.86.3 may inadvertently allow code changes that violate internal security policies or regulatory requirements related to data protection and secure software development practices.
As a result, this vulnerability could negatively impact compliance with standards like GDPR or HIPAA, which require strict controls over data handling and security measures to prevent unauthorized or insecure code changes.