ubuntu-cve-2022-40299
Vulnerability from osv_ubuntu
Published
2022-09-09 01:15
Modified
2026-05-20 14:56
Summary
Details

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.


{
  "affected": [
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@4.0.3+ds-1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.0.2-p2+ds-2",
        "4.0.2-p2+ds-3",
        "4.0.3+ds-1"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@1:4.1.0-p3+ds-2build1?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:4.1.0-p3+ds-2",
        "1:4.1.0-p3+ds-2build1"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@1:4.1.1-p2+ds-4build2?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@1:4.2.1-p3+ds-1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:4.1.1-p2+ds-4build3",
        "1:4.2.1-p3+ds-1"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@1:4.3.2-p10+ds-1.1build1?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@1:4.4.1-p3+ds-1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:4.4.1+ds-2",
        "1:4.4.1-p3+ds-1"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "singular",
        "purl": "pkg:deb/ubuntu/singular@1:4.4.1-p5+ds-1build1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:4.4.1-p3+ds-1",
        "1:4.4.1-p5+ds-1",
        "1:4.4.1-p5+ds-1build1"
      ]
    }
  ],
  "aliases": [],
  "details": "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.",
  "id": "UBUNTU-CVE-2022-40299",
  "modified": "2026-05-20T14:56:10Z",
  "published": "2022-09-09T01:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-40299"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/Singular/Singular/commit/5f28fbf066626fa9c4a8f0e6408c0bb362fb386c"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/Singular/Singular/issues/1137"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2022-40299"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "low",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2022-40299"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…