| Title | SplxAI agentic-radar 0.9.1 through 0.14.1 Insufficiently Protected Credentials (CWE-522) |
|---|
| Description | Affected: agentic-radar (PyPI) 0.9.1 through 0.14.1. No fixed release; 0.14.1 is latest and affected.
Vendor notified 2026-11-12 by email to [email protected]; no reply as of submission.
CVSS 3.1: 7.4 / AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
CWE: CWE-15 (External Control of System or Configuration Setting), CWE-522 (Insufficiently Protected Credentials)
SUMMARY
agentic-radar calls load_dotenv() unconditionally at import time (agentic_radar/cli.py:37 in 0.14.1). The package depends on the deprecated "dotenv" 0.9.9 distribution, whose find_dotenv() starts at the calling frame's file - the installed agentic_radar package directory - and walks upward. When the package is installed inside a checked-out repository (an in-repo .venv or an editable install, the layout used by the project's own examples/github_workflow/auto-agentic-radar.yaml), a .env committed to that repository is loaded into the process environment.
The command "agentic-radar scan openai-agents" then constructs openai.OpenAI() and sends chat.completions requests without validating OPENAI_BASE_URL. A repository author who controls that .env file can set OPENAI_BASE_URL to a host they operate and receive the victim's OPENAI_API_KEY in the Authorization: Bearer header. The scan exits 0 and prints no warning.
AFFECTED / NOT AFFECTED
Affected: 0.9.1 through 0.14.1. 0.9.1 is the first release containing both the import-time .env load and an unconditional LLM call in the openai-agents analyzer (per-release wheel inspection).
Not affected: installs outside the scanned repository (pipx, system-wide, standalone venv). The upward search never reaches the repository .env; verified as a negative control with 0 requests received.
Not affected for this command: 0.7.0-0.8.x, whose only chat.completions call is behind the explicit --enhance-prompts flag.
REPRODUCTION (verified 2026-11-11 on 0.14.1, Python 3.12)
1. In an empty directory create .env with:
OPENAI_API_KEY=sk-DUMMY-DO-NOT-USE
OPENAI_BASE_URL=http://localhost:8899/v1
2. python3.12 -m venv .venv && .venv/bin/pip install "agentic-radar[openai-agents]==0.14.1"
3. Start a loopback HTTP listener that logs request headers.
4. cd / && OPENAI_API_KEY=sk-DUMMY-DO-NOT-USE /path/to/.venv/bin/agentic-radar scan openai-agents -i sample
Result: two POST /v1/chat/completions requests arrive at the listener carrying "Authorization: Bearer sk-DUMMY-DO-NOT-USE" and "User-Agent: OpenAI/Python 2.54.0"; the scan exits 0. No flag, prompt or confirmation is involved.
IMPACT
Disclosure of the user's OpenAI API key to the author of the repository being scanned. The key is billable and typically carries access to account-level resources. Scanning third-party or untrusted agent repositories is the tool's documented purpose. A repository can also write the .env during build instead of committing it, so the tree shows nothing unusual.
FIX
- Do not call load_dotenv() at import time. If .env support is kept, require an explicit --env-file and load exactly that path.
- Refuse a non-default OPENAI_BASE_URL unless the user passes an explicit flag, and print the resolved base URL before sending prompts.
- Make LLM-backed analysis opt-in.
Credit: Teycir (github.com/Teycir) |
|---|
| Source | ⚠️ https://github.com/Teycir/agentic-radar-cve |
|---|
| User | teycirb (UID 102943) |
|---|
| Submission | 11/12/2026 02:19 (22 days ago) |
|---|
| Moderation | 12/03/2026 17:07 (22 days later) |
|---|
| Status | Duplicate |
|---|
| VulDB entry | 439414 [splx-ai agentic-radar up to 0.14.1 agentic_radar/cli.py load_dotenv injection] |
|---|
| Points | 0 |
|---|