Skip to content
Heist/ feed
Back to feed
High

singular — security advisory

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

In Singular before 4.3.1, a predictable /tmp pathname is used (e.g., by sdb.cc), which allows local users to gain the privileges of other users via a procedure in a file under /tmp. NOTE: this CVE Record is about sdb.cc and similar files in the Singular interface that have predictable /tmp pathnames; this CVE Record is not about the lack of a safe temporary-file creation capability in the Singular language.

Products
singular
Affected versions
1:4.1.0-p3+ds-2, 1:4.1.0-p3+ds-2build1, 1:4.1.1-p2+ds-3build1, 1:4.1.1-p2+ds-4, 1:4.1.1-p2+ds-4build1, 1:4.1.1-p2+ds-4build2, 1:4.1.1-p2+ds-4build3, 1:4.2.1-p3+ds-1, 1:4.3.2-p10+ds-1, 1:4.3.2-p10+ds-1.1, 1:4.3.2-p10+ds-1.1build1, 1:4.3.2-p10+ds-1build1, 1:4.3.2-p7+ds-1, 1:4.3.2-p8+ds-1, 1:4.4.1+ds-2, 1:4.4.1-p3+ds-1, 1:4.4.1-p5+ds-1, 1:4.4.1-p5+ds-1build1, 1:4.4.1.5+ds-2, 1:4.4.1.5+ds-2build1, 4.0.2-p2+ds-2, 4.0.2-p2+ds-3, 4.0.3+ds-1
Fixed versions
Not specified
CVEs
CVE-2022-40299
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:43 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-40299

core-osv · Original source

Published 9 Sept 2022, 01:15 UTC

In Singular before 4.3.1, a predictable /tmp pathname is used (e.g., by sdb.cc), which allows local users to gain the privileges of other users via a procedure in a file under /tmp. NOTE: this CVE Record is about sdb.cc and similar files in the Singular interface that have predictable /tmp pathnames; this CVE Record is not about the lack of a safe temporary-file creation capability in the Singular language.

osv:UBUNTU-CVE-2022-40299

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

singular

Fixed versions: Not specified

Complete source record
{
  "id": "cb17672073baeefd86eb2074db293e12b44932b10b44a8464f0dbfee5a285991",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-40299",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-40299",
    "summary": "In Singular before 4.3.1, a predictable /tmp pathname is used (e.g., by sdb.cc), which allows local users to gain the privileges of other users via a procedure in a file under /tmp. NOTE: this CVE Record is about sdb.cc and similar files in the Singular interface that have predictable /tmp pathnames; this CVE Record is not about the lack of a safe temporary-file creation capability in the Singular language.",
    "evidence": "osv:UBUNTU-CVE-2022-40299",
    "products": [
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.2-p2+ds-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.2-p2+ds-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.3+ds-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.1.0-p3+ds-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:4.1.0-p3+ds-2build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.1.1-p2+ds-3build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:4.1.1-p2+ds-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:4.1.1-p2+ds-4build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:4.1.1-p2+ds-4build2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.1.1-p2+ds-4build3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1:4.2.1-p3+ds-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.3.2-p7+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:4.3.2-p8+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:4.3.2-p10+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:4.3.2-p10+ds-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:4.3.2-p10+ds-1.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:4.3.2-p10+ds-1.1build1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.4.1+ds-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1:4.4.1-p3+ds-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.4.1-p5+ds-1build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1:4.4.1.5+ds-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1:4.4.1.5+ds-2build1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "singular",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:4.4.1-p3+ds-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1:4.4.1-p5+ds-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1:4.4.1-p5+ds-1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-40299",
      "aliases": [
        "UBUNTU-CVE-2022-40299"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "4.0.2-p2+ds-2",
            "4.0.2-p2+ds-3",
            "4.0.3+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "singular",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "4.0.3+ds-1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "4.0.3+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1:4.1.0-p3+ds-2",
            "1:4.1.0-p3+ds-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.1.0-p3+ds-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1:4.1.1-p2+ds-3build1",
            "1:4.1.1-p2+ds-4",
            "1:4.1.1-p2+ds-4build1",
            "1:4.1.1-p2+ds-4build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "libsingular4m1",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.1.1-p2+ds-4build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1:4.1.1-p2+ds-4build3",
            "1:4.2.1-p3+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "libsingular4m2n1",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.2.1-p3+ds-1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.2.1-p3+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1:4.3.2-p7+ds-1",
            "1:4.3.2-p8+ds-1",
            "1:4.3.2-p10+ds-1",
            "1:4.3.2-p10+ds-1build1",
            "1:4.3.2-p10+ds-1.1",
            "1:4.3.2-p10+ds-1.1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "libsingular4m3n0t64",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.3.2-p10+ds-1.1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1:4.4.1+ds-2",
            "1:4.4.1-p3+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "libsingular4m4n1",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.4.1-p3+ds-1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.4.1-p3+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1:4.4.1-p5+ds-1build1",
            "1:4.4.1.5+ds-2",
            "1:4.4.1.5+ds-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "libsingular4m4n1",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.4.1.5+ds-2build1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.4.1.5+ds-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "singular",
            "purl": "pkg:deb/ubuntu/singular?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1:4.4.1-p3+ds-1",
            "1:4.4.1-p5+ds-1",
            "1:4.4.1-p5+ds-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40299.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libsingular4-dev-common",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "libsingular4m4n1",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "singular",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "singular-data",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "singular-modules",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "singular-ui",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "singular-ui-emacs",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              },
              {
                "binary_name": "singular-ui-xterm",
                "binary_version": "1:4.4.1-p5+ds-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:59.220490189Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-40299"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-40299",
        "https://github.com/Singular/Singular/commit/5f28fbf066626fa9c4a8f0e6408c0bb362fb386c",
        "https://github.com/Singular/Singular/issues/1137",
        "https://www.cve.org/CVERecord?id=CVE-2022-40299"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-40299",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354475,
  "published_at": "2022-09-09T01:15:00+00:00"
}