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.
Published: 2026-07-17
Score: 9.1 Critical
EPSS: 1.2% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

django‑pyas2 through 1.2.3 allows an authenticated administrator to inject arbitrary operating system commands via the cmd_receive and cmd_send fields in the Partner model. The values of these fields are written straight into os.system() without sanitization, giving the attacker the ability to execute any shell command on the host that runs the application. This flaw is a classic operating‑system command injection vulnerability, classified as CWE‑78, and can lead to full system compromise, including data theft, tampering, or denial of service.

Affected Systems

The vulnerable component is the open‑source django‑pyas2 library, versions up to and including 1.2.3. The project is hosted on GitHub and is typically integrated into custom AS2‑enabled services that rely on Django.

Risk and Exploitability

The CVSS score of 9.1 marks this flaw as critical. The EPSS score of approximately 1.23% indicates that, at the time of assessment, the likelihood of exploitation in the wild was low, but the flaw remains uncatalogued in CISA KEV. Exploitation requires an authenticated administrator—an attacker with such credentials can trigger command injection whenever an AS2 message is received or sent. Due to the severe impact and the need for authentication, the attack vector is internal but potentially extendable if admin privileges are obtained through phishing or credential compromise.

Generated by OpenCVE AI on August 1, 2026 at 08:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade django‑pyas2 to the latest release that removes the unsanitized os.system calls
  • If an upgrade is not immediately feasible, restrict the cmd_receive and cmd_send fields to a whitelist of safe commands or enforce strict input validation before any system call
  • As a temporary workaround, disable AS2 message reception and transmission until a patch can be applied

Generated by OpenCVE AI on August 1, 2026 at 08:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 01 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Title Unrestricted OS Command Injection via AS2 Message Fields in django-pyas2

Thu, 30 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Abhishek-ram
Abhishek-ram django-pyas2
Vendors & Products Abhishek-ram
Abhishek-ram django-pyas2

Tue, 28 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Title Unrestricted OS Command Injection via AS2 Message Fields in django-pyas2

Sun, 26 Jul 2026 10:00:00 +0000

Type Values Removed Values Added
Title OS Command Injection via Unvalidated Command Fields in django-pyas2

Wed, 22 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Title OS Command Injection via Unvalidated Command Fields in django-pyas2

Mon, 20 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-78
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
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.
References

Subscriptions

Abhishek-ram Django-pyas2
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-07-20T18:06:34.329Z

Reserved: 2026-04-24T00:00:00.000Z

Link: CVE-2026-42168

cve-icon Vulnrichment

Updated: 2026-07-20T18:06:17.115Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T08:45:02Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')