{
  "results": [
    {
      "source": {
        "path": "/home/runner/work/cnpg-extensions.github.io/cnpg-extensions.github.io/static/reports/pg-durable/trixie-pg18-amd64.spdx.json",
        "type": "sbom"
      },
      "packages": [
        {
          "package": {
            "name": "anyhow",
            "version": "1.0.102",
            "ecosystem": "crates.io",
            "purl": "pkg:cargo/anyhow@1.0.102"
          },
          "groups": [
            {
              "ids": [
                "RUSTSEC-2026-0190"
              ],
              "aliases": [
                "RUSTSEC-2026-0190"
              ],
              "max_severity": ""
            }
          ],
          "vulnerabilities": [
            {
              "affected": [
                {
                  "database_specific": {
                    "categories": [
                      "memory-corruption"
                    ],
                    "cvss": null,
                    "informational": "unsound",
                    "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0190.json"
                  },
                  "ecosystem_specific": {
                    "affected_functions": null,
                    "affects": {
                      "arch": [],
                      "functions": [
                        "anyhow::Error::downcast_mut"
                      ],
                      "os": []
                    }
                  },
                  "package": {
                    "ecosystem": "crates.io",
                    "name": "anyhow",
                    "purl": "pkg:cargo/anyhow"
                  },
                  "ranges": [
                    {
                      "events": [
                        {
                          "introduced": "0.0.0-0"
                        },
                        {
                          "fixed": "1.0.103"
                        }
                      ],
                      "type": "SEMVER"
                    }
                  ]
                }
              ],
              "database_specific": {
                "license": "CC0-1.0"
              },
              "details": "Affected versions of this crate violate borrow rules, resulting in undefined behavior, when the user adds context to an error via `Error::context` and then later calls `Error::downcast_mut` on the returned `Error`.\n\nThe flaw was corrected in commit `6e8c000` by revising how the mutable reference is constructed, avoiding inclusion of a shared reference in the resulting borrow chain.\n\n## Example\n\n```rust\nuse anyhow::Error;\nuse std::fmt;\n\n#[derive(Debug)]\nstruct ErrorContext(&'static str);\n\nimpl fmt::Display for ErrorContext {\n    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {\n        fmt::Display::fmt(&self.0, f)\n    }\n}\n\nfn main() {\n    let mut error = Error::msg(\"inner error\").context(ErrorContext(\"old context\"));\n    let context: &mut ErrorContext = error.downcast_mut().unwrap();\n    context.0 = \"new context\";\n    println!(\"{:?}\", error);\n}\n```\n\n## Miri output\n\n```\nerror: Undefined Behavior: trying to retag from <1538> for Unique permission at alloc602[0x38], but that tag only grants SharedReadOnly permission for this location\n   --> src/ptr.rs:170:18\n    |\n170 |         unsafe { &mut *self.ptr.as_ptr() }\n    |                  ^^^^^^^^^^^^^^^^^^^^^^^ this error occurs as part of retag at alloc602[0x38..0x48]\n    |\n    = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental\n    = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information\nhelp: <1538> was created by a SharedReadOnly retag at offsets [0x38..0x48]\n   --> src/ptr.rs:89:18\n    |\n 89 |             ptr: NonNull::from(ptr),\n    |                  ^^^^^^^^^^^^^^^^^^\n    = note: stack backtrace:\n            0: anyhow::ptr::Mut::<'_, ErrorContext>::deref_mut\n                at src/ptr.rs:170:18: 170:41\n            1: anyhow::error::<impl anyhow::Error>::downcast_mut::<ErrorContext>\n                at src/error.rs:560:18: 560:46\n            2: main\n                at examples/downcast_mut.rs:15:38: 15:58\n```",
              "id": "RUSTSEC-2026-0190",
              "modified": "2026-06-29T14:15:03.650725453Z",
              "published": "2026-06-25T12:00:00Z",
              "references": [
                {
                  "type": "PACKAGE",
                  "url": "https://crates.io/crates/anyhow"
                },
                {
                  "type": "ADVISORY",
                  "url": "https://rustsec.org/advisories/RUSTSEC-2026-0190.html"
                },
                {
                  "type": "REPORT",
                  "url": "https://github.com/dtolnay/anyhow/issues/451"
                }
              ],
              "schema_version": "1.7.5",
              "summary": "Unsoundness in `Error::downcast_mut()`"
            }
          ]
        },
        {
          "package": {
            "name": "chrono",
            "version": "0.4.45",
            "ecosystem": "crates.io",
            "purl": "pkg:cargo/chrono@0.4.45"
          },
          "groups": [
            {
              "ids": [
                "RUSTSEC-2026-0543"
              ],
              "aliases": [
                "RUSTSEC-2026-0543"
              ],
              "max_severity": ""
            }
          ],
          "vulnerabilities": [
            {
              "affected": [
                {
                  "database_specific": {
                    "categories": [],
                    "cvss": null,
                    "informational": "unmaintained",
                    "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0543.json"
                  },
                  "ecosystem_specific": {
                    "affected_functions": null,
                    "affects": {
                      "arch": [],
                      "functions": [],
                      "os": []
                    }
                  },
                  "package": {
                    "ecosystem": "crates.io",
                    "name": "chrono",
                    "purl": "pkg:cargo/chrono"
                  },
                  "ranges": [
                    {
                      "events": [
                        {
                          "introduced": "0.0.0-0"
                        }
                      ],
                      "type": "SEMVER"
                    }
                  ]
                }
              ],
              "database_specific": {
                "license": "CC0-1.0"
              },
              "details": "The chrono crate is unmaintained; all versions are affected.\n\nRecommended alternatives:\n\n- [jiff](https://crates.io/crates/jiff)\n- [time](https://crates.io/crates/time)",
              "id": "RUSTSEC-2026-0543",
              "modified": "2026-11-17T10:15:02.344223779Z",
              "published": "2026-09-14T12:00:00Z",
              "references": [
                {
                  "type": "PACKAGE",
                  "url": "https://crates.io/crates/chrono"
                },
                {
                  "type": "ADVISORY",
                  "url": "https://rustsec.org/advisories/RUSTSEC-2026-0543.html"
                },
                {
                  "type": "REPORT",
                  "url": "https://github.com/chronotope/chrono/issues/1768"
                }
              ],
              "schema_version": "1.9.2",
              "summary": "chrono is unmaintained"
            }
          ]
        },
        {
          "package": {
            "name": "event-listener",
            "version": "5.4.1",
            "ecosystem": "crates.io",
            "purl": "pkg:cargo/event-listener@5.4.1"
          },
          "groups": [
            {
              "ids": [
                "RUSTSEC-2026-0221"
              ],
              "aliases": [
                "RUSTSEC-2026-0221"
              ],
              "max_severity": ""
            }
          ],
          "vulnerabilities": [
            {
              "affected": [
                {
                  "database_specific": {
                    "categories": [
                      "memory-corruption",
                      "thread-safety"
                    ],
                    "cvss": null,
                    "informational": "unsound",
                    "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0221.json"
                  },
                  "ecosystem_specific": {
                    "affected_functions": null,
                    "affects": {
                      "arch": [],
                      "functions": [],
                      "os": []
                    }
                  },
                  "package": {
                    "ecosystem": "crates.io",
                    "name": "event-listener",
                    "purl": "pkg:cargo/event-listener"
                  },
                  "ranges": [
                    {
                      "events": [
                        {
                          "introduced": "5.1.0"
                        },
                        {
                          "fixed": "5.4.2"
                        }
                      ],
                      "type": "SEMVER"
                    }
                  ]
                }
              ],
              "database_specific": {
                "license": "CC0-1.0"
              },
              "details": "Affected versions of `event-listener` unconditionally implement `Send` and\n`Sync` for `StackSlot<'_, T>`, the stack-allocated listener type created\nby the `listener!` macro.\n\nThis allows a `!Send` tag type set via `Event::with_tag` to be moved to\nanother thread and accessed via `StackSlot::wait`, causing a data race in safe\ncode.",
              "id": "RUSTSEC-2026-0221",
              "modified": "2026-07-31T12:15:04.629484145Z",
              "published": "2026-07-13T12:00:00Z",
              "references": [
                {
                  "type": "PACKAGE",
                  "url": "https://crates.io/crates/event-listener"
                },
                {
                  "type": "ADVISORY",
                  "url": "https://rustsec.org/advisories/RUSTSEC-2026-0221.html"
                },
                {
                  "type": "WEB",
                  "url": "https://github.com/smol-rs/event-listener/pull/163"
                }
              ],
              "schema_version": "1.7.5",
              "summary": "`event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`"
            }
          ]
        },
        {
          "package": {
            "name": "serde_cbor",
            "version": "0.11.2",
            "ecosystem": "crates.io",
            "purl": "pkg:cargo/serde_cbor@0.11.2"
          },
          "groups": [
            {
              "ids": [
                "RUSTSEC-2021-0127"
              ],
              "aliases": [
                "RUSTSEC-2021-0127"
              ],
              "max_severity": ""
            }
          ],
          "vulnerabilities": [
            {
              "affected": [
                {
                  "database_specific": {
                    "categories": [],
                    "cvss": null,
                    "informational": "unmaintained",
                    "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0127.json"
                  },
                  "ecosystem_specific": {
                    "affected_functions": null,
                    "affects": {
                      "arch": [],
                      "functions": [],
                      "os": []
                    }
                  },
                  "package": {
                    "ecosystem": "crates.io",
                    "name": "serde_cbor",
                    "purl": "pkg:cargo/serde_cbor"
                  },
                  "ranges": [
                    {
                      "events": [
                        {
                          "introduced": "0.0.0-0"
                        }
                      ],
                      "type": "SEMVER"
                    }
                  ]
                }
              ],
              "database_specific": {
                "license": "CC0-1.0"
              },
              "details": "The `serde_cbor` crate is unmaintained. The author has archived the github repository.\n\nAlternatives proposed by the author:\n\n * [`ciborium`](https://crates.io/crates/ciborium)\n * [`minicbor`](https://crates.io/crates/minicbor)",
              "id": "RUSTSEC-2021-0127",
              "modified": "2021-12-01T14:04:55Z",
              "published": "2021-08-15T12:00:00Z",
              "references": [
                {
                  "type": "PACKAGE",
                  "url": "https://crates.io/crates/serde_cbor"
                },
                {
                  "type": "ADVISORY",
                  "url": "https://rustsec.org/advisories/RUSTSEC-2021-0127.html"
                },
                {
                  "type": "WEB",
                  "url": "https://github.com/pyfisch/cbor"
                }
              ],
              "schema_version": "1.7.3",
              "summary": "serde_cbor is unmaintained"
            }
          ]
        },
        {
          "package": {
            "name": "tokio",
            "version": "1.53.1",
            "ecosystem": "crates.io",
            "purl": "pkg:cargo/tokio@1.53.1"
          },
          "groups": [
            {
              "ids": [
                "RUSTSEC-2026-0386"
              ],
              "aliases": [
                "RUSTSEC-2026-0386"
              ],
              "max_severity": ""
            }
          ],
          "vulnerabilities": [
            {
              "affected": [
                {
                  "database_specific": {
                    "categories": [
                      "memory-corruption"
                    ],
                    "cvss": null,
                    "informational": "unsound",
                    "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0386.json"
                  },
                  "ecosystem_specific": {
                    "affected_functions": null,
                    "affects": {
                      "arch": [],
                      "functions": [
                        "tokio::io::unix::AsyncFd::new",
                        "tokio::io::unix::AsyncFd::try_new",
                        "tokio::io::unix::AsyncFd::try_with_interest",
                        "tokio::io::unix::AsyncFd::with_interest"
                      ],
                      "os": []
                    }
                  },
                  "package": {
                    "ecosystem": "crates.io",
                    "name": "tokio",
                    "purl": "pkg:cargo/tokio"
                  },
                  "ranges": [
                    {
                      "events": [
                        {
                          "introduced": "0.3.2"
                        },
                        {
                          "fixed": "1.51.6"
                        },
                        {
                          "introduced": "1.52.0"
                        },
                        {
                          "fixed": "1.53.3"
                        }
                      ],
                      "type": "SEMVER"
                    }
                  ]
                }
              ],
              "database_specific": {
                "license": "CC0-1.0"
              },
              "details": "`tokio::io::unix::AsyncFd` provides safe constructors (`new`, `with_interest`, `try_new`, and `try_with_interest`) that accept any `T: AsRawFd` rather than requiring proof of ownership or validity of the file descriptor. Because `RawFd` implements `AsRawFd`, safe code can construct an `AsyncFd` from an arbitrary or closed file descriptor, or close/replace the underlying file descriptor while the `AsyncFd` is still alive.\n\nThis violates I/O safety in two ways:\n\n1. `AsyncFd<T>` implements `AsFd` for all `T: AsRawFd` by calling `BorrowedFd::borrow_raw(self.as_raw_fd())`, allowing safe code to obtain an arbitrary `BorrowedFd<'_>` without owning the file descriptor.\n2. Tokio's I/O driver stores a pointer to an internal allocation in the `epoll`/`kqueue` user data for registered file descriptors. If the underlying file descriptor is duplicated and then closed while an `AsyncFd` is alive, and the OS reuses that file descriptor number for a another IO resource on the same runtime, dropping the first `AsyncFd` deregisters the reused file descriptor number and frees the first while the original file description remains registered in `epoll`, leading to a use-after-free when a readiness event fires.\n\nStarting in Tokio 1.51.6, 1.53.3, and 1.54.0, `AsyncFd::new`, `AsyncFd::with_interest`, `AsyncFd::try_new`, and `AsyncFd::try_with_interest` are deprecated in favor of the `unsafe` constructors `AsyncFd::register` and `AsyncFd::register_with_interest`. Callers must ensure that the file descriptor remains valid, open, and unchanged for the lifetime of the `AsyncFd`.",
              "id": "RUSTSEC-2026-0386",
              "modified": "2026-10-23T14:45:03.847864944Z",
              "published": "2026-10-13T12:00:00Z",
              "references": [
                {
                  "type": "PACKAGE",
                  "url": "https://crates.io/crates/tokio"
                },
                {
                  "type": "ADVISORY",
                  "url": "https://rustsec.org/advisories/RUSTSEC-2026-0386.html"
                },
                {
                  "type": "WEB",
                  "url": "https://github.com/tokio-rs/tokio/pull/8587"
                },
                {
                  "type": "REPORT",
                  "url": "https://github.com/tokio-rs/tokio/issues/8538"
                },
                {
                  "type": "REPORT",
                  "url": "https://github.com/tokio-rs/tokio/issues/8539"
                }
              ],
              "schema_version": "1.9.0",
              "summary": "`AsyncFd::new` and related constructors violate I/O safety"
            }
          ]
        }
      ]
    }
  ],
  "experimental_config": {
    "licenses": {
      "summary": false,
      "allowlist": null
    }
  }
}
