CVE-2026-42168: django-pyas2 - Command Injection
- Cve: CVE-2026-42168
- Name: django-pyas2 - Command Injection
- Description: django-pyas2 through 1.2.3 is vulnerable to OS command injection via the cmd_receive and cmd_send fields on the Partner model. These fields are passed directly to os.system() in pyas2/utils.py without sanitization, allowing an authenticated admin user to execute arbitrary commands on the server when an AS2 message is received or sent.
- Impact: Authenticated admin users can execute arbitrary OS commands on the server, potentially leading to full system compromise.
- Remediation: Update to a version later than 1.2.3 or the latest available version.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker must be an authenticated admin user
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.02055
- Epss percentile: 0.81656
- Assignee: [email protected]
- Published at: 2026-07-17T20:17:16Z
- Age in days: 130
- Modified at: 2026-07-23T18:28:20Z
- References total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42168
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
Same in every row:
- Source: nvd
- Tags:
| Url |
|---|
| https://github.com/abhishek-ram/django-pyas2 |
| https://github.com/abhishek-ram/django-pyas2/releases/tag/v1.2.3 |
| https://github.com/m4ty-m/vulnerability-research/tree/main/CVE-2026-42168 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| abhishek-ram/django-pyas2 | fix, releases | yes | /v1/repositories/abhishek-ram/django-pyas2 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts