{
  "cveId": "CVE-2023-41039",
  "url": "https://patchblox.com/security/cve/CVE-2023-41039",
  "summary": "CVE-2023-41039 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2023-41039, released August 30, 2023. It is not reported as exploited. Patch Radar priority: High.",
  "title": "restrictedpython: RestrictedPython is a restricted execution environment for Python to run untrusted code",
  "description": "RestrictedPython is a restricted execution environment for Python to run untrusted code. Python\u0027s \u0022format\u0022 functionality allows someone controlling the format string to \u0022read\u0022 all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure. With \u0060RestrictedPython\u0060, the format functionality is available via the \u0060format\u0060 and \u0060format_map\u0060 methods of \u0060str\u0060 (and \u0060unicode\u0060) (accessed either via the class or its instances) and via \u0060string.Formatter\u0060. All known versions of \u0060RestrictedPython\u0060 are vulnerable. This issue has been addressed in commit \u00604134aedcff1\u0060 which has been included in the 5.4 and 6.2 releases. Users are advised to upgrade. There are no known workarounds for this vulnerability.",
  "published": "2023-08-30T11:15:00Z",
  "severity": "high",
  "cvss": 7.7,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N",
  "epss": 0.00683,
  "epssPercentile": 0.52788,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "python3-restrictedpython",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "4.0~b3-2ubuntu0.1~esm1",
      "fix": "python3-restrictedpython 4.0~b3-2ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-python3-restrictedpython-4.0-b3-2ubuntu0.1-esm1",
      "released": "2024-09-30T09:15:00Z"
    },
    {
      "platform": "linux",
      "product": "python3-restrictedpython",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "4.0~b3-3ubuntu0.1~esm1",
      "fix": "python3-restrictedpython 4.0~b3-3ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-python3-restrictedpython-4.0-b3-3ubuntu0.1-esm1",
      "released": "2024-09-30T09:15:00Z"
    },
    {
      "platform": "linux",
      "product": "restrictedpython",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.2-1",
      "fix": "DEBIAN-CVE-2023-41039",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2023-41039",
      "released": "2023-08-30T18:15:09Z"
    },
    {
      "platform": "linux",
      "product": "restrictedpython",
      "release": "Debian 14",
      "fixedVersion": "6.2-1",
      "fix": "DEBIAN-CVE-2023-41039",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2023-41039",
      "released": "2023-08-30T18:15:09Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T19:38:12Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}