Skip to content
Heist/ feed
Back to feed
Critical

watchman — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-39243

NuProcess is an external process execution implementation for Java. In all the versions of NuProcess where it forks processes by using the JVM's Java_java_lang_UNIXProcess_forkAndExec method (1.2.0+), attackers can use NUL characters in their strings to perform command line injection. Java's ProcessBuilder isn't vulnerable because of a check in ProcessBuilder.start. NuProcess is missing that check. This vulnerability can only be exploited to inject command line arguments on Linux. Version 2.0.5 contains a patch. As a workaround, users of the library can sanitize command strings to remove NUL characters prior to passing them to NuProcess for execution.

Products
watchman
Affected versions
4.9.0-2, 4.9.0-3, 4.9.0-3build1, 4.9.0-5build1, 4.9.0-5build2, 4.9.0-6, 4.9.0-6build1, 4.9.0-6build2, 4.9.0-7build1, 4.9.0-7build2, 4.9.0-7build3, 4.9.0-7build4, 4.9.0-8build1, 4.9.0-9, 4.9.0-9build1, 4.9.0-9build2, 4.9.0-9build3, 4.9.0-9build4
Fixed versions
Not specified
CVEs
CVE-2022-39243
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-39243

core-osv · Original source

Published 26 Sept 2022, 14:15 UTC

NuProcess is an external process execution implementation for Java. In all the versions of NuProcess where it forks processes by using the JVM's Java_java_lang_UNIXProcess_forkAndExec method (1.2.0+), attackers can use NUL characters in their strings to perform command line injection. Java's ProcessBuilder isn't vulnerable because of a check in ProcessBuilder.start. NuProcess is missing that check. This vulnerability can only be exploited to inject command line arguments on Linux. Version 2.0.5 contains a patch. As a workaround, users of the library can sanitize command strings to remove NUL characters prior to passing them to NuProcess for execution.

osv:UBUNTU-CVE-2022-39243

watchman

Fixed versions: Not specified

watchman

Fixed versions: Not specified

watchman

Fixed versions: Not specified

watchman

Fixed versions: Not specified

watchman

Fixed versions: Not specified

watchman

Fixed versions: Not specified

Complete source record
{
  "id": "d619a72d7140effb3c7bfd4cffcbbf9c9cb89f203be73277d18acc600dbb21cb",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-39243",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-39243",
    "summary": "NuProcess is an external process execution implementation for Java. In all the versions of NuProcess where it forks processes by using the JVM's Java_java_lang_UNIXProcess_forkAndExec method (1.2.0+), attackers can use NUL characters in their strings to perform command line injection. Java's ProcessBuilder isn't vulnerable because of a check in ProcessBuilder.start. NuProcess is missing that check. This vulnerability can only be exploited to inject command line arguments on Linux. Version 2.0.5 contains a patch. As a workaround, users of the library can sanitize command strings to remove NUL characters prior to passing them to NuProcess for execution.",
    "evidence": "osv:UBUNTU-CVE-2022-39243",
    "products": [
      {
        "name": {
          "value": "watchman",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.9.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.9.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.9.0-3build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "watchman",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.9.0-5build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.9.0-5build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.9.0-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.9.0-6build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.9.0-6build2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "watchman",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.9.0-7build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.9.0-7build2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.9.0-7build3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.9.0-7build4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "watchman",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.9.0-8build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.9.0-9",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "watchman",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.9.0-9build3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.9.0-9build4",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "watchman",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.9.0-9",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.9.0-9build1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.9.0-9build2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.9.0-9build3",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2022-39243",
      "aliases": [
        "UBUNTU-CVE-2022-39243"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "watchman",
            "purl": "pkg:deb/ubuntu/watchman?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.9.0-2",
            "4.9.0-3",
            "4.9.0-3build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pywatchman",
                "binary_version": "4.9.0-3build1"
              },
              {
                "binary_name": "watchman",
                "binary_version": "4.9.0-3build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "watchman",
            "purl": "pkg:deb/ubuntu/watchman?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.9.0-5build1",
            "4.9.0-5build2",
            "4.9.0-6",
            "4.9.0-6build1",
            "4.9.0-6build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pywatchman",
                "binary_version": "4.9.0-6build2"
              },
              {
                "binary_name": "watchman",
                "binary_version": "4.9.0-6build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "watchman",
            "purl": "pkg:deb/ubuntu/watchman?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.9.0-7build1",
            "4.9.0-7build2",
            "4.9.0-7build3",
            "4.9.0-7build4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pywatchman",
                "binary_version": "4.9.0-7build4"
              },
              {
                "binary_name": "watchman",
                "binary_version": "4.9.0-7build4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "watchman",
            "purl": "pkg:deb/ubuntu/watchman?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.9.0-8build1",
            "4.9.0-9"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pywatchman",
                "binary_version": "4.9.0-9"
              },
              {
                "binary_name": "watchman",
                "binary_version": "4.9.0-9"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "watchman",
            "purl": "pkg:deb/ubuntu/watchman?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.9.0-9build3",
            "4.9.0-9build4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pywatchman",
                "binary_version": "4.9.0-9build4"
              },
              {
                "binary_name": "watchman",
                "binary_version": "4.9.0-9build4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "watchman",
            "purl": "pkg:deb/ubuntu/watchman?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.9.0-9",
            "4.9.0-9build1",
            "4.9.0-9build2",
            "4.9.0-9build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pywatchman",
                "binary_version": "4.9.0-9build3"
              },
              {
                "binary_name": "watchman",
                "binary_version": "4.9.0-9build3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:15.172561160Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-39243"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-39243",
        "https://github.com/brettwooldridge/NuProcess/commit/29bc09de561bf00ff9bf77123756363a9709f868",
        "https://github.com/brettwooldridge/NuProcess/security/advisories/GHSA-cxgf-v2p8-7ph7",
        "https://github.com/brettwooldridge/NuProcess/pull/143",
        "https://www.cve.org/CVERecord?id=CVE-2022-39243"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-39243",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 357027,
  "published_at": "2022-09-26T14:15:00+00:00"
}