GHSA-VW2V-G4X7-XCQG

Vulnerability from github – Published: 2026-11-25 19:46 – Updated: 2026-11-25 19:46
VLAI
Summary
fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service)
Details

fulgur converts untrusted HTML/CSS into PDF, commonly on a server that processes input supplied by many tenants. In versions from 0.4.4 up to (but not including) the patched release, the CSS string-set named-string values resolved from a document were accumulated per element with no memory budget, letting a small crafted document amplify into large retained memory (and the CPU to copy it) — a denial of service.

A string-set value is attacker-controlled: it is resolved from an element's own text (content(text)), from one of its attributes (attr(...)), or from a CSS string literal. fulgur accumulated these values per element in two unbounded places:

  1. Store (default path). For every element that matches a string-set rule, fulgur pushes a copy of the resolved value into a store that is retained for the whole render and cloned again downstream into a per-node lookup map. This happens on the ordinary render path with no opt-in. A single literal reused across many elements therefore expands from one copy in the input to N copies in memory:

```html
p { string-set: title "……a large literal value……" }

```

The store grows to roughly value_size × N bytes (and ~3× that across the downstream clones) from an input whose large part appears only once — a breadth-unbounded amplification.

  1. Per-node snapshot (bookmark / cross-reference path). When PDF bookmarks (bookmark-label: string(...)) or CSS target-* references are in play, fulgur additionally cloned the full running name → value map at every visited element so string() can resolve at that position. One large value is then re-cloned at each of N following elements — an O(N × value_size) retained-memory sink. This is the string counterpart of the counter-snapshot sink fixed in GHSA-395p-pj7r-jm42; that fix bounded the counter snapshots but did not bound this string twin.

An attacker able to submit HTML/CSS to a fulgur-based conversion service can trigger memory and CPU exhaustion with a trivially small payload, denying service to the host and any co-tenants.

Patches

Fixed in 0.28.0. The aggregate of each sink is now separately bounded: the resolved string-set store (MAX_STRING_SET_STORE_BYTES) and the retained per-node named-string snapshots (MAX_STRING_SNAPSHOT_BYTES). In addition, the snapshot is no longer recorded for target-*-only renders — those snapshots are consumed only by bookmark-label: string(...), so recording them when no bookmarks are emitted was both wasted work and the only path that let inline target-* CSS enable the snapshot clone with no bookmark opt-in. The caps are kept far above any realistic document (short named strings, even thousands of them); past the cap a string() reference degrades to its last recorded value, which only occurs under adversarial input.

Workarounds

Upgrade to 0.28.0 or later. If upgrading is not immediately possible, validate or constrain untrusted CSS — in particular a string-set rule with a large literal (or content(text) / attr(...)) value matched by many elements — before passing HTML to fulgur, and bound the size and element count of accepted input.

Attack Vector rationale

fulgur performs no network I/O of its own; it renders HTML/CSS handed to it by the embedding application. This advisory scores the crate independent of any specific adopting program, so per the CVSS v3.1 User Guide §3.7 (scoring library vulnerabilities related to incoming data) the Attack Vector is assessed as Network for the reasonable worst-case deployment — a network-facing service that renders untrusted, attacker-supplied HTML without user interaction. A concrete system that receives the HTML in one component and passes it to fulgur in a separate component may assess a lower environmental Attack Vector (Local, per §3.10).

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "fulgur"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.4.4"
            },
            {
              "fixed": "0.28.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-68539"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-400",
      "CWE-770"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-25T19:46:45Z",
    "nvd_published_at": "2026-11-11T22:17:30Z",
    "severity": "HIGH"
  },
  "details": "`fulgur` converts untrusted HTML/CSS into PDF, commonly on a server that\nprocesses input supplied by many tenants. In versions from 0.4.4 up to (but not\nincluding) the patched release, the CSS `string-set` named-string values\nresolved from a document were accumulated per element with no memory budget,\nletting a small crafted document amplify into large retained memory (and the CPU\nto copy it) \u2014 a denial of service.\n\nA `string-set` value is attacker-controlled: it is resolved from an element\u0027s\nown text (`content(text)`), from one of its attributes (`attr(...)`), or from a\nCSS string literal. fulgur accumulated these values per element in two unbounded\nplaces:\n\n1. **Store (default path).** For every element that matches a `string-set` rule,\n   fulgur pushes a copy of the resolved value into a store that is retained for\n   the whole render and cloned again downstream into a per-node lookup map. This\n   happens on the ordinary render path with no opt-in. A single literal reused\n   across many elements therefore expands from one copy in the input to N copies\n   in memory:\n\n   ```html\n   \u003cstyle\u003e\n     p { string-set: title \"\u2026\u2026a large literal value\u2026\u2026\" }\n   \u003c/style\u003e\n   \u003cp\u003e\u003c/p\u003e  \u003c!-- repeated N times --\u003e\n   ```\n\n   The store grows to roughly `value_size \u00d7 N` bytes (and ~3\u00d7 that across the\n   downstream clones) from an input whose large part appears only once \u2014 a\n   breadth-unbounded amplification.\n\n2. **Per-node snapshot (bookmark / cross-reference path).** When PDF bookmarks\n   (`bookmark-label: string(...)`) or CSS `target-*` references are in play,\n   fulgur additionally cloned the full running `name \u2192 value` map at every\n   visited element so `string()` can resolve at that position. One large value\n   is then re-cloned at each of N following elements \u2014 an `O(N \u00d7 value_size)`\n   retained-memory sink. This is the string counterpart of the counter-snapshot\n   sink fixed in\n   [GHSA-395p-pj7r-jm42](https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-395p-pj7r-jm42);\n   that fix bounded the counter snapshots but did not bound this string twin.\n\nAn attacker able to submit HTML/CSS to a fulgur-based conversion service can\ntrigger memory and CPU exhaustion with a trivially small payload, denying\nservice to the host and any co-tenants.\n\n## Patches\n\nFixed in **0.28.0**. The aggregate of each sink is now separately bounded: the\nresolved `string-set` store (`MAX_STRING_SET_STORE_BYTES`) and the retained\nper-node named-string snapshots (`MAX_STRING_SNAPSHOT_BYTES`). In addition, the\nsnapshot is no longer recorded for `target-*`-only renders \u2014 those snapshots are\nconsumed only by `bookmark-label: string(...)`, so recording them when no\nbookmarks are emitted was both wasted work and the only path that let inline\n`target-*` CSS enable the snapshot clone with no bookmark opt-in. The caps are\nkept far above any realistic document (short named strings, even thousands of\nthem); past the cap a `string()` reference degrades to its last recorded value,\nwhich only occurs under adversarial input.\n\n## Workarounds\n\nUpgrade to 0.28.0 or later. If upgrading is not immediately possible, validate\nor constrain untrusted CSS \u2014 in particular a `string-set` rule with a large\nliteral (or `content(text)` / `attr(...)`) value matched by many elements \u2014\nbefore passing HTML to fulgur, and bound the size and element count of accepted\ninput.\n\n## Attack Vector rationale\n\n`fulgur` performs no network I/O of its own; it renders HTML/CSS handed to it by\nthe embedding application. This advisory scores the crate independent of any\nspecific adopting program, so per the CVSS v3.1 User Guide \u00a73.7 (scoring library\nvulnerabilities related to incoming data) the Attack Vector is assessed as\n**Network** for the reasonable worst-case deployment \u2014 a network-facing service\nthat renders untrusted, attacker-supplied HTML without user interaction. A\nconcrete system that receives the HTML in one component and passes it to fulgur\nin a separate component may assess a lower environmental Attack Vector (Local,\nper \u00a73.10).",
  "id": "GHSA-vw2v-g4x7-xcqg",
  "modified": "2026-11-25T19:46:45Z",
  "published": "2026-11-25T19:46:45Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-vw2v-g4x7-xcqg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-68539"
    },
    {
      "type": "WEB",
      "url": "https://github.com/fulgur-rs/fulgur/pull/582"
    },
    {
      "type": "WEB",
      "url": "https://github.com/fulgur-rs/fulgur/pull/584"
    },
    {
      "type": "WEB",
      "url": "https://github.com/fulgur-rs/fulgur/commit/1c4cdad003daef7c9dc6ef1362c50bcfaac13ea9"
    },
    {
      "type": "WEB",
      "url": "https://github.com/fulgur-rs/fulgur/commit/9248fbfd91a2ba8fc3dbd9e44ba681f52ed1ecd0"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/fulgur-rs/fulgur"
    },
    {
      "type": "WEB",
      "url": "https://github.com/fulgur-rs/fulgur/releases/tag/v0.29.0"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.