Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2026-42168

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-42168
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 09:46 UTC · Revision 1

Source evidence

CVE-2026-42168

core-osv · Original source

Published 17 Jul 2026, 00:00 UTC

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.

osv:CVE-2026-42168
Complete source record
{
  "id": "209daf938d06728d989c9ecc03cafb14621e8b75887f7b80dcdc26bb5f97c707",
  "url": "https://osv.dev/vulnerability/CVE-2026-42168",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2026-42168",
    "summary": "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.",
    "evidence": "osv:CVE-2026-42168",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-42168",
      "aliases": [
        "CVE-2026-42168"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/abhishek-ram/django-pyas2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3d5c1f365a44dbb736d422950db357ff9b76ea83"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2"
                      },
                      {
                        "last_affected": "1.2.3"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "3d5c1f365a44dbb736d422950db357ff9b76ea83"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.2.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42168.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.533670933Z",
      "provider": "osv",
      "references": [
        "https://github.com/abhishek-ram/django-pyas2/releases/tag/v1.2.3",
        "https://github.com/m4ty-m/vulnerability-research/tree/main/CVE-2026-42168",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42168.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-42168",
        "https://github.com/abhishek-ram/django-pyas2"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42168.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-42168",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494312,
  "published_at": "2026-07-17T00:00:00+00:00"
}