CVE-2026-42168
Received Received - Intake

OS Command Injection in django-pyas2

Vulnerability report for CVE-2026-42168, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-17

Last updated on: 2026-07-17

Assigner: MITRE

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-17
Last Modified
2026-07-17
Generated
2026-07-18
AI Q&A
2026-07-18
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
abhishek-ram django-pyas2 1.2.3

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

django-pyas2 through version 1.2.3 has a vulnerability where the cmd_receive and cmd_send fields on the Partner model are passed directly to os.system() without sanitization. This allows an authenticated admin user to execute arbitrary commands on the server when an AS2 message is received or sent.

Detection Guidance

Check for django-pyas2 installations with version 1.2.3 or earlier. Inspect the Partner model for cmd_receive and cmd_send fields in the admin interface. Monitor server logs for unexpected command execution during AS2 message processing.

Impact Analysis

An attacker with admin access could exploit this to run unauthorized commands on the server hosting django-pyas2. This could lead to data breaches, system compromise, or further network infiltration depending on the server's permissions and environment.

Compliance Impact

This vulnerability could lead to unauthorized access or data exfiltration, violating GDPR's data protection requirements or HIPAA's security rules for protected health information. Compliance failures may result in legal penalties, fines, or reputational damage.

Mitigation Strategies

Upgrade django-pyas2 to the latest version immediately. Remove or restrict admin access to the Partner model fields cmd_receive and cmd_send. Implement input validation for these fields. Monitor network traffic for suspicious AS2 message activity.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42168. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart